summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor
Commit message (Collapse)AuthorAgeFilesLines
* PR9772: Fix the definition of WINT_MIN and WINT_MAX on Linux -ffreestanding.Eli Friedman2011-04-211-0/+6
| | | | llvm-svn: 129907
* fix a bunch of comment typos found by codespell. Patch byChris Lattner2011-04-151-1/+1
| | | | | | Luis Felipe Strano Moraes! llvm-svn: 129559
* Change Clang's __VERSION__ to include the same basic info as in clang -v.Daniel Dunbar2011-03-311-1/+1
| | | | | | - Please never ever ever ever write a tool that sniffs this. llvm-svn: 128599
* Diagnose uninitialized uses of a variable within its own initializer.Chandler Carruth2011-03-271-4/+4
| | | | | | | | | | | This is basically the same idea as the warning on uninitialized uses of fields within an initializer list. As such, it is on by default and under -Wuninitialized. Original patch by Richard Trieu, with some massaging from me on the wording and grouping of the diagnostics. llvm-svn: 128376
* Lexer: Add extremely limited support for -traditional-cpp, ignoring BCPLDaniel Dunbar2011-03-181-0/+12
| | | | | | comments. llvm-svn: 127910
* Rename tok::eom to tok::eod.Peter Collingbourne2011-02-281-1/+1
| | | | | | | | The previous name was inaccurate as this token in fact appears at the end of every preprocessing directive, not just macro definitions. No functionality change, except for a diagnostic tweak. llvm-svn: 126631
* Make LexOnOffSwitch a Preprocessor member functionPeter Collingbourne2011-02-141-1/+1
| | | | llvm-svn: 125473
* Merge -Wuninitialized-experimental into -Wuninitialized.Ted Kremenek2011-01-261-1/+1
| | | | llvm-svn: 124279
* When redefining a macro don't warn twice if it's not used and don't warn for ↵Argyrios Kyrtzidis2011-01-181-0/+5
| | | | | | | | duplicate definition by command line options. Fixes rdar://8875916. llvm-svn: 123767
* wint_t is defined as 'unsigned int' on Linux. Fixes PR8938.Douglas Gregor2011-01-121-0/+204
| | | | llvm-svn: 123320
* fix rdar://8823139, a crash on a comment in a preprocessed .s fileChris Lattner2011-01-061-0/+5
| | | | | | that contains the ## operator. llvm-svn: 122946
* Handle locations coming from macro instantiations properly in ↵Argyrios Kyrtzidis2010-12-241-0/+10
| | | | | | | | SourceManager::isBeforeInTranslationUnit(). Fixes rdar://8790245 and http://llvm.org/PR8821. llvm-svn: 122536
* Fix diagnostic pragmas.Argyrios Kyrtzidis2010-12-151-0/+70
| | | | | | | | | | | | Diagnostic pragmas are broken because we don't keep track of the diagnostic state changes and we only check the current/latest state. Problems manifest if a diagnostic is emitted for a source line that has different diagnostic state than the current state; this can affect a lot of places, like C++ inline methods, template instantiations, the lexer, etc. Fix the issue by having the Diagnostic object keep track of the source location of the pragmas so that it is able to know what is the diagnostic state at any given source location. Fixes rdar://8365684. llvm-svn: 121873
* This really seems like a boring set of fixes to our tests to make them moreChandler Carruth2010-11-164-20/+20
| | | | | | | independent of the underlying system. Let me know if any of these are too aggressive. llvm-svn: 119345
* Split out -Wconversion warnings about constant precision into theirJohn McCall2010-11-091-3/+3
| | | | | | | | | | | own subcategory, -Wconstant-conversion, which is on by default. Tweak the constant folder to give better results in the invalid case of a negative shift amount. Implements rdar://problem/6792488 llvm-svn: 118636
* Add test for Windows predefined macros.Michael J. Spencer2010-10-211-0/+12
| | | | llvm-svn: 117000
* 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
* Per discussion with Sanjiv, remove the PIC16 target from mainline. When/ifChris Lattner2010-10-112-200/+0
| | | | | | | it comes back, it will be largely a rewrite, so keeping the old codebase in tree isn't helping anyone. llvm-svn: 116191
* Revert r114316, -Wunused-value enabled by default was intended.Argyrios Kyrtzidis2010-09-191-1/+1
| | | | llvm-svn: 114318
* Make -Wunused-value off by default, matching GCC. Fixes rdar://7126194.Argyrios Kyrtzidis2010-09-191-1/+1
| | | | llvm-svn: 114316
* Fix this test to use -cc1.Daniel Dunbar2010-09-171-1/+1
| | | | llvm-svn: 114156
* Handle '#line' in '-E' that has an empty file name. Fixes ↵Ted Kremenek2010-09-171-0/+12
| | | | | | <rdar://problem/8439412>. llvm-svn: 114142
* tests: Use -ffreestanding when including stdint.h, to avoid platform ↵Daniel Dunbar2010-09-071-1/+1
| | | | | | dependencies. llvm-svn: 113301
* Now that GCC will have #pragma push/pop (in GCC 4.6), allow theDouglas Gregor2010-08-302-3/+2
| | | | | | | #pragma without requiring it to be in the "clang" namespace, from Louis Gerbarg! llvm-svn: 112484
* Add support for Microsoft's __pragma in the preprocessor.John McCall2010-08-281-0/+20
| | | | | | Patch by Francois Pichet! llvm-svn: 112391
* filecheckize testChris Lattner2010-08-211-9/+11
| | | | llvm-svn: 111702
* fix PR7943, a corner case with the GNU __VA_ARGS__ comma Chris Lattner2010-08-211-0/+5
| | | | | | swallowing extension. llvm-svn: 111701
* Implement #pragma push_macro, patch by Francois Pichet!Chris Lattner2010-08-171-0/+33
| | | | llvm-svn: 111234
* Push location through the MacroUndefined PPCallback and use it to print ↵Benjamin Kramer2010-08-071-0/+8
| | | | | | #undefs in -dD mode. (PR7818) llvm-svn: 110523
* Define _INTEGRAL_MAX_BITS for the win32 and win64 targets, from Per Lindén!Douglas Gregor2010-08-061-1/+2
| | | | llvm-svn: 110442
* PR7795: Fix the definition of __WCHAR_MAX__ with -fshort-wchar.Eli Friedman2010-08-031-0/+7
| | | | llvm-svn: 110126
* Add another terrible VC++ compatibility hack: allow users toChris Lattner2010-07-171-0/+8
| | | | | | | allow invalid token pastes (when in -fms-extensions mode) with -Wno-invalid-token-paste llvm-svn: 108624
* rename testChris Lattner2010-07-171-0/+0
| | | | llvm-svn: 108623
* Headers: Define __INT64_TYPE__ in terms of getInt64Type(), which isn't alwaysDaniel Dunbar2010-06-302-9/+9
| | | | | | | | 'long'. The practical upshot is so that the uint64_t we define in our stdint.h ends up being compatible with that defined by gcc (at least on Darwin), which otherwise could lead to type incompatibilities with other system headers. llvm-svn: 107255
* Headers: Change [u]intmax_t to be defined in terms of __[U]INTMAX_TYPE__, ↵Daniel Dunbar2010-06-301-25/+25
| | | | | | instead of intN_t. llvm-svn: 107254
* clang: Derive version name from LLVM unless specified explicitly. This meansDaniel Dunbar2010-06-251-3/+3
| | | | | | clang is now clang 2.8. llvm-svn: 106914
* fix PR7360: -P mode turns off line markers, but not blank space.Chris Lattner2010-06-121-2/+2
| | | | | | | Apparently some programs which abuse the preprocessor depend on this. llvm-svn: 105889
* Add several more predefines from modern versions of GCC.Dan Gohman2010-05-281-0/+160
| | | | llvm-svn: 104906
* Fix pasto in this testDouglas Gregor2010-04-301-1/+1
| | | | llvm-svn: 102687
* Add Clang version inspection macros. Fixes PR6681.Douglas Gregor2010-04-301-0/+4
| | | | llvm-svn: 102686
* Add test case for __has_feature(objc_weak_class).Ted Kremenek2010-04-291-0/+4
| | | | llvm-svn: 102639
* emit warn_char_constant_too_large at most once per literal, fixing PR6852Chris Lattner2010-04-161-0/+6
| | | | llvm-svn: 101580
* Only predefine the macro _GNU_SOURCE in C++ mode when we're on aDouglas Gregor2010-04-161-3/+3
| | | | | | | platform that typically uses glibc. Fixes a Boost.Thread compilation failure. llvm-svn: 101450
* Improve line marker directive locations, patch by Jordy RoseChris Lattner2010-04-141-1/+1
| | | | llvm-svn: 101226
* make the token paste avoidance logic turn "..." into ".. ." instead of ". . ."Chris Lattner2010-04-141-1/+4
| | | | | | when avoiding paste. Patch by David Peixotto! llvm-svn: 101218
* make the preprocessor listen to linemarker directives in -E mode,Chris Lattner2010-04-131-0/+71
| | | | | | PR6101. This is based on a patch and testcase by Jordy Rose! llvm-svn: 101097
* convert to -verify mode.Chris Lattner2010-04-071-2/+3
| | | | llvm-svn: 100674
* add support for -MQ flag to quote targets in dependency file,Chris Lattner2010-03-291-0/+26
| | | | | | PR6661, patch by Ori Avtalion! llvm-svn: 99821
* fix a case where macro expansion should be disabled, patch by Chris Lattner2010-03-261-1/+7
| | | | | | Abramo Bagnara! llvm-svn: 99626
* merge all the macro disable tests by using filecheck.Chris Lattner2010-03-264-26/+26
| | | | llvm-svn: 99625
OpenPOWER on IntegriCloud