summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/line-directive.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement handling of file entry/exit notifications from GNUChris Lattner2009-02-041-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | line markers, including maintenance of the virtual include stack. For something like this: # 42 "bar.c" 1 # 142 "bar2.c" 1 #warning zappa # 92 "bar.c" 2 #warning gonzo # 102 "foo.c" 2 #warning bonkta we now produce these three warnings: #1: In file included from foo.c:3: In file included from bar.c:42: bar2.c:143:2: warning: #warning zappa #warning zappa ^ #2: In file included from foo.c:3: bar.c:92:2: warning: #warning gonzo #warning gonzo ^ #3: foo.c:102:2: warning: #warning bonkta #warning bonkta ^ llvm-svn: 63722
* # 42 doesn't change system header state either, add test.Chris Lattner2009-02-041-0/+5
| | | | llvm-svn: 63721
* make getFileCharacteristic linetable aware. line markers that Chris Lattner2009-02-041-0/+20
| | | | | | play around with the 'is system header' bit now function correctly. llvm-svn: 63720
* Add simple #line directive test.Chris Lattner2009-02-041-1/+10
| | | | llvm-svn: 63713
* add parsing and constraint enforcement for GNU line marker directives.Chris Lattner2009-01-261-0/+13
| | | | llvm-svn: 63003
* add another sanity test.Chris Lattner2009-01-261-0/+4
| | | | llvm-svn: 63001
* parse and enforce required constraints on #line directives. Right nowChris Lattner2009-01-261-0/+10
we just discard them. llvm-svn: 62999
OpenPOWER on IntegriCloud