News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

CodeCompletion Questions

Started by jayatk, February 03, 2006, 02:03:53 PM

Previous topic - Next topic

jayatk

Is the CodeCompletion code geared more towards just C++? Or is it still supposed to incorporate C as well?

I'm asking, because I'm working in a C project right now, and the code completion is missing a lot of structures that are declared using old C-style structures.  The problem could also be because there are some preprocessor define words mixed into the structure declarations that might be throwing off the code completion.

Here's an example:

typedef struct cmd_connect_ctrl_s
{
  /** State */
  INT8  state;
  /** Rsvd */
  UINT8  rsvd1;
  /** Rsvd */
  UINT16  rsvd2;
} __PACKED__ cmd_connect_ctrl_t;


The "__PACKED__" is a macro for inserting compiler directives for packing structures.

Here's one that doesn't show up either:
   
typedef struct
   {
      /** header */
      CCT_MSG_HEADER          header;
      /** interface ID */
      UINT32                  ifId;
      /** min job ID handled by these interface */
      UINT32                  minUserId;
      /** max job ID handled by these interface */
      UINT32                  maxUserId;
      /** interface name, pipe or socket ip addr */
      CHAR                    ifName[64];
   }
   CCT_MSG_OPEN_USER_IF;


rickg22

AFAIK, It was designed with C++ in mind.

jayatk

Any chance C support can be implemented in the future, since you advertise C::B as a C/C++ IDE? :)

It would certainly be nice to be able to use with existing C projects I have.  I can still use it for our newer projects running a C++ OS.


thomas

Actually this has nothing to do with C or C++. The parser does not handle the typedef keyword properly.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."