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.
Tool/software: Code Composer Studio
I'm having a problem with CCS V7 where the "Search Text>Project" on the editor context menu will not search headers. If i highlight the function name in a function declaration within a .c file, I can press F3 to jump to the function prototype in the header. But when I then right click the function name in that prototype and select "Search Text>Project" to find all the places this function is called, nothing happens. If I go back to the .c file and do the same thing on the function name in the declaration, CCS only shows me references to the function that are in .c files, no header files. This is particularly frustrating for inline functions that are declared in headers and only referenced in other header inline function declarations.
I'm a relatively new user to CCS v7 so I've probably just got setting wrong somewhere, but I have not been able to figure out what it is. Any insight into what is going on would be greatly appreciated. Thanks.
Tom
Tom,
Is the header file physically in the project or is it a file that is referenced and resides somewhere else?
In the example below I have a call to Timer_init() in a C file. If I do an F3 it will open Timer.h where the declaration is. I have added another declaration to MSP_EXP432P401R.h which is physically in my project folder structure.
When I perform the same text search as you it finds the call in the C file and only the declaration in the second H file.
This is because this search is limiting the scope to the project. And for a plain text search it defines project as the files that are physically in the project. This is because it is a plain text search and not a language based search.
If instead I do a this search:
If actually finds the declaration in the correct header file. This search is a language based search.
If you click on the search button on the tool bar you can tune the search even more. Click on the button and then select the C/C++ search tab. Here I can control what matches I want. I can control if I want references, declarations...
When I run this search I get:
Regards,
John