summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/pragma_sysheader.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix off-by-one error in #pragma clang system_header.Jordan Rose2013-04-171-1/+1
| | | | | | | | | | | The system_header pragma (from GCC) is implemented using line notes in the source manager. However, a line note's line number specifies the number not for the current line, but for the next line. This was making all line numbers appear off by one after the pragma. Reported by Andy Gibbs, uncovered during r179677. llvm-svn: 179709
* Prior to adding the new "expected-no-diagnostics" directive to ↵Andy Gibbs2012-10-191-1/+2
| | | | | | VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280
* Fix tests that weren't actually verifying anything.David Blaikie2012-04-151-1/+1
| | | | | | | | | | | | | | Passing -verify to clang without -cc1 or -Xclang silently passes (with a printed warning, but lit doesn't care about that). This change adds -cc1 or, as is necessary in one case, -Xclang to fix this so that these tests are actually verifying as intended. I'd like to change the driver so this kind of mistake could not be made, but I'm not entirely sure how. Further, since the driver only warns about unknown flags in general, we could have similar bugs with a misspellings of arguments that would be nice to find. llvm-svn: 154776
* attempt to fix windows testers, which generate #line by default.Chris Lattner2011-05-221-1/+1
| | | | llvm-svn: 131882
* Invoke the FileChanged callback before pushing the linemarker for a systemChris Lattner2011-05-221-0/+9
| | | | | | | | | | | | | | | | | | | | | | header. Getting it in the wrong order generated incorrect line markers in -E mode. In the testcase from PR9861 we used to generate: # 1 "test.c" 2 # 1 "./foobar.h" 1 # 0 "./foobar.h" # 0 "./foobar.h" 3 # 2 "test.c" 2 now we properly produce: # 1 "test.c" 2 # 1 "./foobar.h" 1 # 1 "./foobar.h" 3 # 2 "test.c" 2 This fixes PR9861. llvm-svn: 131871
* Update tests to use %clang instead of 'clang', and forcibly disable use of 'Daniel Dunbar2009-12-151-1/+1
| | | | | | | clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to garbage). llvm-svn: 91460
* Fix #pragma GCC system_header by making it insert a virtual linemarker intoChris Lattner2009-06-151-0/+3
the file at the point of the pragma. This allows clang to know that all sourcelocations after the pragma are in a system header. llvm-svn: 73376
OpenPOWER on IntegriCloud