summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Update tests to use %clang instead of 'clang', and forcibly disable use of 'Daniel Dunbar2009-12-158-14/+14
| | | | | | | clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to garbage). llvm-svn: 91460
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-15112-223/+223
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Make tests use the new clang -cc1 flag.Fariborz Jahanian2009-12-143-3/+3
| | | | llvm-svn: 91303
* this was a couple bugzillas tooChris Lattner2009-12-141-1/+1
| | | | llvm-svn: 91267
* fix rdar://7466570 - Be more bug compatible with GCC when it comes to Chris Lattner2009-12-141-0/+20
| | | | | | | | expanding directives withing macro expansions. This is undefined behavior according to 6.10.3p11, so we might as well be undefined in ways similar to GCC. llvm-svn: 91266
* filecheckizeChris Lattner2009-12-141-5/+4
| | | | llvm-svn: 91265
* Improve test portability; I can't figure out how to get the regexp library toDaniel Dunbar2009-12-091-2/+2
| | | | | | match $ correctly with \r\n, unfortunately. llvm-svn: 90907
* Don't use MS extensions in this test, we expect header include markers.Daniel Dunbar2009-12-081-1/+1
| | | | llvm-svn: 90880
* fix -dM with variadic macros, PR5699Chris Lattner2009-12-071-0/+9
| | | | llvm-svn: 90735
* rename names for consistencyChris Lattner2009-12-071-11/+10
| | | | llvm-svn: 90734
* filecheckizeChris Lattner2009-12-071-11/+10
| | | | llvm-svn: 90733
* Drop Preprocessor/open-failure test, it breaks running the test suite as root,Daniel Dunbar2009-12-061-11/+0
| | | | | | and I can't figure out how to write it more portably. llvm-svn: 90705
* Unbreak and add test case for r90276, a situation in which getBuffer is ↵Daniel Dunbar2009-12-061-0/+11
| | | | | | | | expected to fail. Also, update SourceManager.h doxyments for getBuffer() to reflect reality. llvm-svn: 90701
* Use '-FOO' 'BAR' instead of '-FOO=BAR' in tests.Daniel Dunbar2009-11-301-2/+2
| | | | llvm-svn: 90122
* Normalize options to use '-FOO' instead of '--FOO'.Daniel Dunbar2009-11-291-2/+2
| | | | llvm-svn: 90071
* Use '-x' 'foo' instead of '-x=foo'.Daniel Dunbar2009-11-292-10/+10
| | | | llvm-svn: 90069
* Remove unnecessary -fms-extensions=0 from tests (this command line syntax is ↵Daniel Dunbar2009-11-293-4/+4
| | | | | | going away). llvm-svn: 90066
OpenPOWER on IntegriCloud