Aaron Ballman
fdd783a501
Unify __declspec attribute argument parsing with the common attribute argument parsing code.
...
This removes a diagnostic that is no longer required (the semantic engine now properly handles attribute syntax so __declspec and __attribute__ spellings no longer get mismatched). This caused several testcases to need updating for a slightly different wording.
llvm-svn: 205234
2014-03-31 18:18:43 +00:00
Aaron Ballman
17046b8506
Automated checking for C++ when determining what argument to send to the diagnostic for attribute subjects. In turn, this allows the Subjects to be enabled for some more attributes and improves diagnostics. Updated a test case based on the improved diagnostic.
...
llvm-svn: 195864
2013-11-27 19:16:55 +00:00
Aaron Ballman
b80f94b41c
There is no such thing as __declspec(ms_struct), this is a GNU attribute. Switched the attribute to have the proper spelling, gave it a subject, updated the warning to be more accurate, and updated the test case as appropriate.
...
llvm-svn: 195277
2013-11-20 22:22:04 +00:00
Eli Friedman
9ee2d04753
Make -mms-bitfields behave consistently.
...
Patch by Jeremiah Zanin.
llvm-svn: 165849
2012-10-12 23:29:20 +00:00
Fariborz Jahanian
0586df4a00
Fixes a bug in calculation of field offsets of ms_struct
...
fields by just following what comment says.
// rdar://10513599
llvm-svn: 146414
2011-12-12 21:16:36 +00:00
Fariborz Jahanian
6b4e26bee2
Add ms_struct attribute on record typee
...
(and ignore it for now) - wip.
llvm-svn: 130224
2011-04-26 17:54:40 +00:00
Fariborz Jahanian
743dda49d9
Recognize gcc's ms_struct pragma (and ignore for now).
...
This is wip.
llvm-svn: 130138
2011-04-25 18:49:15 +00:00