summaryrefslogtreecommitdiff
path: root/test/Lexer/Inputs
Commit message (Collapse)AuthorAge
* Lex: reduce buffer size, add a testSaleem Abdulrasool2014-03-12
| | | | | | | Reduce the stack usage as hopefully include paths are usually not too long. Add a test case for the path normalisation behaviour. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203632 91177308-0d34-0410-b5e6-96231b3b80d8
* Relax header guard mismatch warning with edit distance heuristic.Ismail Pazarbasi2013-10-12
| | | | | | If the edit distance between the two macros is more than 50%, DefinedMacro may not be header guard or can be header guard of another header file or it might be defining something completely different set by the build environment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192547 91177308-0d34-0410-b5e6-96231b3b80d8
* PR16339: Don't produce a diagnostic pointing at the whitespace between a '#if'Richard Smith2013-06-16
| | | | | | | | | and a '!defined(X)' if we find a broken header guard. This is suboptimal; we should point the diagnostic at the 'X' token not the 'if' token, but it fixes the crash. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184054 91177308-0d34-0410-b5e6-96231b3b80d8
* Introducing -Wheader-guard, a warning that checks header guards actually workRichard Trieu2013-06-12
| | | | | | | | | properly. This warning checks that the #ifndef and #define directives at the beginning of a header refer to the same macro name. Includes a fix-it hint to correct the header guard. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183867 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: Use FileCheck instead of external input; I think this test was failing onDaniel Dunbar2010-07-21
| | | | | | Win32 because of line ending differences. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109029 91177308-0d34-0410-b5e6-96231b3b80d8
* Introduce a new lexer function to compute the "preamble" of a file,Douglas Gregor2010-07-20
which is the part of the file that contains all of the initial comments, includes, and preprocessor directives that occur before any of the actual code. Added a new -print-preamble cc1 action that is only used for testing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108913 91177308-0d34-0410-b5e6-96231b3b80d8