summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/pch-dir.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix crash on invalid if we can't find a suitable PCH file in a specifiedRichard Smith2015-09-041-2/+8
| | | | | | | directory, and our frontend action cares whether the frontend setup actually succeeded. llvm-svn: 246881
* Fix FileCheck --check-prefix lines.Tim Northover2013-08-121-4/+4
| | | | | | | | | | Various tests had sprung up over the years which had --check-prefix=ABC on the RUN line, but "CHECK-ABC:" later on. This happened to work before, but was strictly incorrect. FileCheck is getting stricter soon though. Patch by Ron Ofir. llvm-svn: 188174
* Teach the PCH validator to check the preprocessor options, especiallyDouglas Gregor2012-10-241-2/+7
| | | | | | | | | | | | | | | the macros that are #define'd or #undef'd on the command line. This checking happens much earlier than the current macro-definition checking and is far cleaner, because it does a direct comparison rather than a diff of the predefines buffers. Moreover, it allows us to use the result of this check to skip over PCH files within a directory that have non-matching -D's or -U's on the command line. Finally, it improves the diagnostics a bit for mismatches, fixing <rdar://problem/8612222>. The old predefines-buffer diff'ing will go away in a subsequent commit. llvm-svn: 166641
* Explicitly specify C++98 when building the C++ precompiled header for this ↵Douglas Gregor2012-10-241-4/+2
| | | | | | test, so that the test will work on Windows. llvm-svn: 166601
* clang/test/PCH/pch-dir.c: Update a comment for msvc. msvc(*-win32) implies ↵NAKAMURA Takumi2012-10-231-1/+1
| | | | | | -std=c++11. llvm-svn: 166478
* clang/test/PCH/pch-dir.c: Mark it as XFAIL:msvc. It doesn't fail (virtually ↵NAKAMURA Takumi2012-10-231-0/+3
| | | | | | xpass) on msvc. llvm-svn: 166473
* clang/test/PCH/pch-dir.c: Relax expressions of path separators for Win32.NAKAMURA Takumi2012-10-231-2/+2
| | | | llvm-svn: 166471
* If the precompiled header named by "-include" is actually a directory,Douglas Gregor2012-10-231-0/+22
check each of the files within that directory to determine if any of them is an AST file that matches the language and target options. If so, the first matching AST file is loaded. This fixes a longstanding discrepency with GCC's precompiled header implementation. llvm-svn: 166469
OpenPOWER on IntegriCloud