summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaAttr.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-19/+19
| | | | llvm-svn: 81346
* Per advice that Doug Gregor gave me several months ago, clean up theTed Kremenek2009-08-031-31/+24
| | | | | | | | | | | | | implementation of '#pragma unused' by not constructing intermediate DeclRefExprs, but instead do the name lookup directly. The implementation is greatly simplified. Along the way, degrade '#pragma unused(undeclaredvariable)' to a warning instead of being a hard error. This implements: <rdar://problem/6761874> [sema] allow #pragma unused to reference undefined variable (with warning) llvm-svn: 78019
* Remove the ASTContext parameter from the attribute-related methods of Decl.Argyrios Kyrtzidis2009-06-301-1/+1
| | | | | | | | | The implementations of these methods can Use Decl::getASTContext() to get the ASTContext. This commit touches a lot of files since call sites for these methods are everywhere. I used pre-tokenized "carbon.h" and "cocoa.h" headers to do some timings, and there was no real time difference between before the commit and after it. llvm-svn: 74501
* Move the static DeclAttrs map into ASTContext. Fixes <rdar://problem/6983177>.Douglas Gregor2009-06-181-1/+1
| | | | llvm-svn: 73702
* Deallocate 'DeclRefExpr's in correctly formed '#pragma unused'Ted Kremenek2009-03-231-0/+1
| | | | llvm-svn: 67573
* Implement '#pragma unused'.Ted Kremenek2009-03-231-0/+38
| | | | llvm-svn: 67569
* Handle #pragma pack(0). I left this out of diagnostic because users shouldDaniel Dunbar2009-03-061-2/+4
| | | | | | | really use pack() instead. - <rdar://problem/6650243> clang warns about '#pragma pack(0)' llvm-svn: 66287
* Make PragmaPackStack be a private class in SemaAttr and make itsChris Lattner2009-02-171-31/+91
| | | | | | instance in Sema be a pimpl. llvm-svn: 64718
* move attribute(packed) sema support out of SemaDecl into a new SemaAttr.cpp ↵Chris Lattner2009-02-171-0/+110
file. llvm-svn: 64711
OpenPOWER on IntegriCloud