• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » Code Composer Studio » Code Composer Forum » CCS v5. Incorrect marking a code as "syntax error" in Editor
Share
Code Composer Studio
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Common Questions
  • Code Composer Studio Forum Usage Guidelines

  • Resources
  • Code Composer Studio (CCStudio) Product Folder
  • Troubleshooting CCS
  • CCS Wiki
  • Download CCS
  • Order CCS
  • Tools Insider Blog
  • Bug Tracking
  • Forums

    CCS v5. Incorrect marking a code as "syntax error" in Editor

    This question is answered
    Juggernaught
    Posted by Juggernaught
    on Jan 14 2011 10:07 AM
    Prodigy60 points

    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.

    error editor CCSv5 CCS5 CCS 5 CCS v5
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • JohnS
      Posted by JohnS
      on Jan 14 2011 10:53 AM
      Guru59105 points

      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • MartinS
      Posted by MartinS
      on Jan 14 2011 11:07 AM
      Suggested Answer
      Expert7595 points

      Hi, 

      I was able to find this quick workaround to this issue. 

      http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg17873.html

       

      martin

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Juggernaught
      Posted by Juggernaught
      on Jan 14 2011 11:18 AM
      Prodigy60 points

      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.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Juggernaught
      Posted by Juggernaught
      on Jan 14 2011 11:30 AM
      Prodigy60 points

      P.S.  This problem persists in C++ (.cpp), but in C (.c) all is clear.

      I'll try soluton advised by Martin.

       

      Thanks :)

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • JohnS
      Posted by JohnS
      on Jan 14 2011 12:09 PM
      Guru59105 points

      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

      Regards,

      John

       


      If my reply answers your question please mark the thread as answered

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • JohnS
      Posted by JohnS
      on Jan 14 2011 12:14 PM
      Verified Answer
      Verified by Ki-Soo Lee
      Guru59105 points

      Here is the defect #: SDSCM00039005  

       


      If my reply answers your question please mark the thread as answered

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Juggernaught
      Posted by Juggernaught
      on Jan 18 2011 02:38 AM
      Prodigy60 points

      Hi, John!

      The "far" keyword has the same behavior.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Charmaine Jia
      Posted by Charmaine Jia
      on Jan 08 2012 21:49 PM
      Prodigy70 points

      Hi Martin,

      What is the workaround? Could you please post here? It is so hard to search in that link.

      Thanks.

      Charmaine

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    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.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use