summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/has_include.c
Commit message (Collapse)AuthorAgeFilesLines
* Factor out repeated code parsing and concatenating header-names fromRichard Smith2019-03-191-1/+1
| | | | | | | | | | | tokens. We now actually form an angled_string_literal token for a header name by concatenation rather than just working out what its contents would be. This substantially simplifies downstream processing and is necessary for C++20 header unit imports. llvm-svn: 356433
* Fix some handling of AST nodes with diagnostics.Richard Trieu2018-03-281-6/+6
| | | | | | | | | The diagnostic system for Clang can already handle many AST nodes. Instead of converting them to strings first, just hand the AST node directly to the diagnostic system and let it handle the output. Minor changes in some diagnostic output. llvm-svn: 328688
* [lex] Don't create a garbage token if parsing of __has_include fails.Benjamin Kramer2015-03-291-0/+12
| | | | | | It will crash downstream somewhere. Found by afl-fuzz. llvm-svn: 233493
* PR15539: Record "evaluating if/elif condition" flag in the right placeDavid Blaikie2013-03-181-0/+9
| | | | | | | The previous implementation missed the case where the elif condition was evaluated from the context of an #ifdef that was false causing PR15539. llvm-svn: 177345
* Add a test to make sure __has_include works from inside a macro.Argyrios Kyrtzidis2013-02-271-0/+6
| | | | llvm-svn: 176152
* No longer crashing with an assert when __has_include or __has_include_next ↵Aaron Ballman2013-01-161-1/+23
| | | | | | is used outside of a preprocessor directive. This fixes PR14837. llvm-svn: 172639
* Make __has_include a bit more resilient in the presence of macros. ↵Eli Friedman2013-01-091-0/+27
| | | | | | <rdar://problem/12748859>. llvm-svn: 171939
* Fix for PR13334. This prevents crashes that result from badly formedRichard Trieu2012-10-221-9/+23
| | | | | | expressions involving __has_include llvm-svn: 166438
* Start testing some commented-out cases of badly-formed __has_include.Jordan Rose2012-07-111-11/+37
| | | | | | | Filed PR13334 for the cases that cause the compiler to crash, and PR13335 for the cases where we should be recovering more gracefully. llvm-svn: 160070
* This really seems like a boring set of fixes to our tests to make them moreChandler Carruth2010-11-161-16/+16
| | | | | | | independent of the underlying system. Let me know if any of these are too aggressive. llvm-svn: 119345
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - 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
* Added __has_include and __has_include_next.John Thompson2009-11-021-0/+83
llvm-svn: 85834
OpenPOWER on IntegriCloud