I use CCS v5 based on Eclipse Helios + CDT 7 and have such problem:
When I define a variable
int * restrict p;
indexer (ot it is not an indexer) marks this as a "syntax error" in the editor's window (underlines the text and places "?" marks), but this is working and useful code. Such behavior repeats on keywords "far" and "restrict".
How can I resolve this problem?
I tried this out in 5.0.1 and I don't see the issue.
I confirmed my syntax checker is on by inserting an error
I haven't changed any default options with the indexer. Could you send me the source file or just the function and I can try in my version? If you like you can send me a private message so that the code is kept confidential.
If my reply answers your question please mark the thread as answered
I was able to find this quick workaround to this issue.
Thank You for your answer. I use 5.0.1 too and the problem still persists.
Every place, that has "restrict" keyword is underlined. When a function uses restricted argument, all function code is underlined.
I've installed clear CCS 5.0.1 and imported project from 3.3. But this picture is purely new cpp-file, that I wrote after your answer.
P.S. This problem persists in C++ (.cpp), but in C (.c) all is clear.
I'll try soluton advised by Martin.
Yup I was just trying that when I saw your file was a .cpp. For me I see the problem in .cpp files as well (but not .c). I will file a defect to track this
Here is the defect #: SDSCM00039005
The "far" keyword has the same behavior.
What is the workaround? Could you please post here? It is so hard to search in that link.
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.