This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Code Completion in XDAIS Projects

CCS 4.1.1

I have a "standard make" project that builds an IUNIVERSAL algorithm.  In my C code I have something like:

inArgs->base.size

Where inArgs is of type IALPHABLEND_inArgs.  Here's the definition of IALPHABLEND_inArgs from the included alphablend_brad.h:

typedef struct IALPHABLEND_InArgs {
    /* This must be the first field */
    IUNIVERSAL_InArgs base;

    /* ... add any extended fields here ... */
} IALPHABLEND_InArgs;

As you can see, it contains a structure of type IUNIVERSAL_InArgs which is defined by the included iuniversal.h (which resides in xdais):

typedef struct IUNIVERSAL_InArgs {
    XDAS_Int32 size;            /**< @sizeField */
} IUNIVERSAL_InArgs;

So my question is, how do I get the code completion to work such that it will pop us "size" when I type "base."?

Thanks,
Brad

 

  • Figured it out...

    1. Right-click on the project and select "Properties".
    2. Click on "C/C++ Include Paths & Symbols".
    3. Click "Add External Include Path".
    4. Click "Browse" and navigate to the appropriate source directory.  In my case it was the xdais/packages directory.

    Here's a screenshot: