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? Many thanks.
Juggernaught,
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.
Regards,
John
If my reply answers your question please mark the thread as answered
Hi,
I was able to find this quick workaround to this issue.
http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg17873.html
martin
Thank You for your answer. I use 5.0.1 too and the problem still persists.
My code:
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.
Thanks.
P.S. This problem persists in C++ (.cpp), but in C (.c) all is clear.
I'll try soluton advised by Martin.
Thanks :)
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
Hi, John!
The "far" keyword has the same behavior.
Hi Martin,
What is the workaround? Could you please post here? It is so hard to search in that link.
Charmaine