summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParsePragma.h
Commit message (Collapse)AuthorAgeFilesLines
* When we parse a pragma, keep track of how that pragma was originallyDouglas Gregor2010-09-091-6/+12
| | | | | | | | spelled (#pragma, _Pragma, __pragma). In -E mode, use that information to add appropriate newlines when translating _Pragma and __pragma into #pragma, like GCC does. Fixes <rdar://problem/8412013>. llvm-svn: 113553
* One who seeks knowledge learns something new every day.John McCall2010-08-261-16/+16
| | | | | | | | | One who seeks the Tao unlearns something new every day. Less and less remains until you arrive at non-action. When you arrive at non-action, nothing will be left undone. llvm-svn: 112244
* Implement #pragma GCC visibility.Eli Friedman2010-08-051-0/+9
| | | | llvm-svn: 110315
* Parser: Add support for #pragma align, which is just another spelling of #pragmaDaniel Dunbar2010-07-311-0/+8
| | | | | | options align. llvm-svn: 109952
* Modify the pragma handlers to accept and use StringRefs instead of ↵Argyrios Kyrtzidis2010-07-131-8/+8
| | | | | | | | | | | IdentifierInfos. When loading the PCH, IdentifierInfos that are associated with pragmas cause declarations that use these identifiers to be deserialized (e.g. the "clang" pragma causes the "clang" namespace to be loaded). We can avoid this if we just use StringRefs for the pragmas. As a bonus, since we don't have to create and pass IdentifierInfos, the pragma interfaces get a bit more simplified. llvm-svn: 108237
* Parse: Add support for '#pragma options align'.Daniel Dunbar2010-05-261-0/+9
| | | | | | Also, fix a source location bug with the rparen in #pragma pack. llvm-svn: 104784
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-9/+9
| | | | llvm-svn: 81346
* Add parser support for #pragma weak.Eli Friedman2009-06-051-0/+9
| | | | llvm-svn: 72907
* Implement '#pragma unused'.Ted Kremenek2009-03-231-0/+11
| | | | llvm-svn: 67569
* Add Parser support for #pragma packDaniel Dunbar2008-10-041-0/+33
- Uses Action::ActOnPragmaPack - Test case is XFAIL pending verifier fixes. llvm-svn: 57066
OpenPOWER on IntegriCloud