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.
I have a makefile based project that was generated using CMake for C28. I imported it into CCS 12.4 as an existing project and setup the preprocessor include paths.
The indexer is not recognizing enum symbols from .h files. From the parser log file, I see the indexer visited the .h files and the parser picked up the #define macros, but not the enum definitions.
For example:
I've tried enabling everything in the "indexer" properties. Any other suggestions?
Regards
Lori
Hi Lori,
I'm assuming when you hit F3 in the code that references these symbols, the ones defined via #define correctly jump to the header where they are defined while the ones defined via enum doesn't do anything. I can't reproduce this with my example. However, I'm using a CCS project. I'll need to try with a standard makefile project. Are you using a managed makefile project or a custom makefile project?
From the parser log file, I see the indexer visited the .h files and the parser picked up the #define macros, but not the enum definitions.
Even in my working case I don't see the enum definitions in the parser log.
ki
Hi Ki,
I'm assuming when you hit F3 in the code that references these symbols, the ones defined via #define correctly jump to the header where they are defined while the ones defined via enum doesn't do anything.
I think I incorrectly diagnosed the issue. I tried using F3 and both cases open up the header file to the correct location.
In the source code, for the enum case, CCS is reporting that the symbol cannot be resolved. Very odd - but clicking F3 works as expected.
Are you using a managed makefile project or a custom makefile project?
This project was created using CMake. I then imported into CCS using file--> new project --> C/C++ --> Makefile Project with Existing Code
Let me know if it would be helpful for me to .zip up my project for you.
In the source code, for the enum case, CCS is reporting that the symbol cannot be resolved.
The error in your screenshot appears to be a CODAN error:
We typically have CODAN disabled because of the number of false positives it can generate. It looks like it got enable with your project somehow.