summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/pragma-pushpop-macro.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed a problem with #pragma push_macro/pop_macro implementation.Alexander Kornienko2012-08-291-1/+18
| | | | | | | | | | | | | | | | | | | | Summary: The problem was with the following sequence: #pragma push_macro("long") #undef long #pragma pop_macro("long") in case when "long" didn't represent a macro. Fixed crash and removed code duplication for #undef/pop_macro case. Added regression tests. Reviewers: doug.gregor, klimek Reviewed By: doug.gregor CC: cfe-commits, chapuni Differential Revision: http://llvm-reviews.chandlerc.com/D31 llvm-svn: 162845
* fix a bunch of comment typos found by codespell. Patch byChris Lattner2011-04-151-1/+1
| | | | | | Luis Felipe Strano Moraes! llvm-svn: 129559
* In ~Preprocessor(), also cleanup the MacroInfo objects left-over from stray ↵Ted Kremenek2010-10-191-0/+8
| | | | | | | | "#pragma push_macro" uses. This fixes a potential memory leak. llvm-svn: 116826
* Implement #pragma push_macro, patch by Francois Pichet!Chris Lattner2010-08-171-0/+33
llvm-svn: 111234
OpenPOWER on IntegriCloud