Hello,
I'm using CCS 12.1.
Code analysis flags up a problem in a file that is not included in the build. Is that intentional and if so, is there a way to configure CCS to analyse only relevant build files please?

Thank you.
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.
Hello,
I'm using CCS 12.1.
Code analysis flags up a problem in a file that is not included in the build. Is that intentional and if so, is there a way to configure CCS to analyse only relevant build files please?

Thank you.
Code analysis flags up a problem in a file that is not included in the build. Is that intentional
The default CCS behavior is to have CODAN disabled due to the propensity of false positives. However sometimes it gets enabled for a project.
is there a way to configure CCS to analyse only relevant build files please?
CODAN settings can be set at the workspace and project level, not at an individual file level
https://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_project-management.html#code-analysis
Thanks
ki
The default CCS behavior is to have CODAN disabled due to the propensity of false positives. However sometimes it gets enabled for a project.
Thank you but this misses the point. Should a file excluded from the build be included in the code analysis? I would expect not, so the fact that it is suggests a problem. If this is expected behaviour, what would be the rationale?
The default CCS behavior is to have CODAN disabled due to the propensity of false positives.
I couldn't find a global enable/disable control. Also if I create a new workspace and New project, code analysis is enabled by default since some of the items are selected:

How is CODAN globally disabled/enabled and how is it disabled by default please?
I think I found the answer to this question. I'm guessing that deselecting both items under Launching effectively disables CODAN.
I think I found the answer to this question. I'm guessing that deselecting both items under Launching effectively disables CODAN.
That is correct.
https://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_project-management.html#code-analysis
Should a file excluded from the build be included in the code analysis? I would expect not, so the fact that it is suggests a problem.
I would make sense for the indexer to not parse excluded files. There is a way to do this to a degree but it is not very user friendly:
Thanks
ki