Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328384 - Improve handling of MS specific modifiers with VC toolchain
Summary: Improve handling of MS specific modifiers with VC toolchain
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows All
: P3 normal (vote)
Target Milestone: 7.0.2   Edit
Assignee: Andrew Gvozdev CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-21 12:51 EDT by Marc-André Laperle CLA
Modified: 2010-10-21 13:23 EDT (History)
1 user (show)

See Also:


Attachments
Define MS specific modifiers (1.05 KB, patch)
2010-10-21 12:51 EDT, Marc-André Laperle CLA
angvoz.dev: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!