Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328384

Summary: Improve handling of MS specific modifiers with VC toolchain
Product: [Tools] CDT Reporter: Marc-AndrĂ© Laperle <malaperle>
Component: cdt-buildAssignee: Andrew Gvozdev <angvoz.dev>
Status: RESOLVED FIXED QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 7.0.2   
Hardware: PC   
OS: Windows All   
Whiteboard:
Attachments:
Description Flags
Define MS specific modifiers angvoz.dev: iplog+

Description Marc-André Laperle CLA 2010-10-21 12:51:54 EDT
Created attachment 181422 [details]
Define MS specific modifiers

I created a Hello World project with the Visual C++ toolchain and
noticed that endl was not resolved (with codan). I think some MS specific
modifiers can be defined safely as empty symbols to improve parsing:

__cdecl
__fastcall
__restrict
__sptr
__stdcall
__unaligned
__uptr
__w64

see http://msdn.microsoft.com/en-US/library/6bh0054z(v=VS.80).aspx

__based will need to be handled differently though. __declspec is already handled by the parser.

Defining these symbols brings the result of indexing from 936 unresolved names
(2.20%) to 111 unresolved names (0.26%) for a Hello World project.
Comment 1 Andrew Gvozdev CLA 2010-10-21 13:00:18 EDT
Committed on HEAD (8.0) and 7.0.2. Thanks!