summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor
Commit message (Collapse)AuthorAgeFilesLines
* 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
* fix a bug in paste avoidance which would cause us to accidentallyChris Lattner2010-03-261-0/+4
| | | | | | form a >>=. Patch by Abramo Bagnara, testcase by me. llvm-svn: 99624
* fix rdar://7683173, rejecting an invalid conditionalChris Lattner2010-02-261-0/+7
| | | | llvm-svn: 97253
* Re-applying 96173. Looks like finally I got the test case right.Sanjiv Gupta2010-02-161-4/+7
| | | | llvm-svn: 96321
* reverting back 96242 as it still causes a test failure.Sanjiv Gupta2010-02-151-5/+4
| | | | llvm-svn: 96244
* Re-applying 96173 with corresponding changes in test.Sanjiv Gupta2010-02-151-4/+5
| | | | llvm-svn: 96242
* Fix PR6282: the include guard optimization cannot happen if theChris Lattner2010-02-122-0/+20
| | | | | | | | guard macro is already defined for the first occurrence of the header. If it is, the body will be skipped and not be properly analyzed for the include guard optimization. llvm-svn: 95972
* revert my patch for rdar://7520940 that warns when a published headerChris Lattner2010-01-223-14/+0
| | | | | | | is #included with "foo.h" style syntax instead of framework syntax. It produced too much noise. llvm-svn: 94120
* Forgot to commit theseAnton Korobeynikov2010-01-142-12/+12
| | | | llvm-svn: 93458
* try to make this more stable?Chris Lattner2010-01-101-1/+1
| | | | llvm-svn: 93090
* add comment to test.Chris Lattner2010-01-101-1/+3
| | | | llvm-svn: 93085
* implement rdar://7520940: published framework headers shouldChris Lattner2010-01-103-0/+12
| | | | | | | import other headers within the same framework with the full framework path, not with a relative include. llvm-svn: 93083
* ARM: Honor -mfpu= and set __VFP_FP__ and __ARM_NEON__ "correctly".Daniel Dunbar2009-12-211-1/+0
| | | | | | | | - Correctly is in quotes, because we are following what I interpreted as GCC's intent (which diverges from practice, naturally). - Also, fix the arch define for arm1136jf-s. llvm-svn: 91855
* a really old testcase I apparently forgot to 'svn add'.Chris Lattner2009-12-201-0/+33
| | | | llvm-svn: 91800
* ARM: Fix predefines (__ARM_ARCH_..., __REGISTER_PREFIX).Daniel Dunbar2009-12-181-2/+3
| | | | | | | - This should be done leveraging the backend, but I'm a little refactored out. I'll fix it one day, I promise. llvm-svn: 91700
OpenPOWER on IntegriCloud