I am using CCS 5.1.0.09000. As soon as a .cpp source file is saved containing the keyword 'restrict', the C/C++ indexer starts, but it will never finish and causes 1 CPU to be loaded 100%.
Attempts to disable the indexer will fail as long as it is running, and cause the IDE to hang.
Attempts to cancel the indexer will cause the subsequent build atttempt to hang.
Both hangups can only be solved by killing CCS, removing the 'restrict' keyword from the source file (with an another editor) and start CCS again...
Is there a fix for this?
Would you mind sending a testcase that reproduces this issue? I used a simple code shown attached and the indexer runs fine.
I am using the same version as you on a Windows 7/64 bits.
I just created a new workspace containing a new project with your restrictTestcase.cpp. The indexer runs fine.
Switched back to my original workspace again, added the keyword 'restrict' to one of my source files: the indexer does NOT hang. It seems that I cannot reproduce the problem anymore ?!
Thanks so far!
Thanks for reporting this; what we usually see is that sometimes the workspace appears to be "locked" in a specific state/behaviour and either changing workspaces or "cleaning" them (invoking ccstudio.exe -clean) turns back the expected behaviour.
Just FYI, some troubleshooting ideas are shown at:
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.