llvm-project/clang/test/Lexer
Jordan Rose b13eb8dca5 Allow -verify directives to be filtered by preprocessing.
This is accomplished by making VerifyDiagnosticsConsumer a CommentHandler,
which then only reads the -verify directives that are actually in live
blocks of code. It also makes it simpler to handle -verify directives that
appear in header files, though we still have to manually reparse some files
depending on how they are generated.

This requires some test changes. In particular, all PCH tests now have their
-verify directives outside the "header" portion of the file, using the @line
syntax added in r159978. Other tests have been modified mostly to make it
clear what is being tested, and to prevent polluting the expected output with
the directives themselves.

Patch by Andy Gibbs! (with slight modifications)

The new Frontend/verify-* tests exercise the functionality of this commit,
as well as r159978, r159979, and r160053 (Andy's other -verify enhancements).

llvm-svn: 160068
2012-07-11 19:58:23 +00:00
..
11-27-2007-FloatLiterals.c
badstring_in_if0.c
bcpl-escaped-newline.c Allow -verify directives to be filtered by preprocessing. 2012-07-11 19:58:23 +00:00
block_cmt_end.c
c90.c PR12717: Clang supports hexadecimal floating-point literals in all language 2012-06-15 05:07:49 +00:00
char-escapes.c
char-literal-encoding-error.c
char-literal.cpp Fix off-by-one error in UTF-16 encoding: don't try to use a surrogate pair for U+FFFF. 2012-06-13 05:41:29 +00:00
clang-keywords.cpp
comment-escape.c
conflict-marker.c Allow -verify directives to be filtered by preprocessing. 2012-07-11 19:58:23 +00:00
constants.c
counter.c
cxx0x_keyword.cpp
cxx0x_keyword_as_cxx98.cpp
cxx0x_raw_string_delim_length.cpp
cxx0x_raw_string_unterminated.cpp
digraph.c
dollar-idents.c
escape_newline.c
gnu_keywords.c
has_extension.c
has_extension_cxx.cpp Add feature check "cxx_local_type_template_args" describing support 2012-04-04 00:48:39 +00:00
has_feature_address_sanitizer.cpp
has_feature_c1x.c
has_feature_cxx0x.cpp Add a query macro for C++11 N3276, decltype does not require complete 2012-04-10 20:00:33 +00:00
has_feature_exceptions.cpp
has_feature_modules.m
has_feature_objc_arc.m
has_feature_rtti.cpp
has_feature_type_traits.cpp
hexfloat.cpp PR12717: Clang supports hexadecimal floating-point literals in all language 2012-06-15 05:07:49 +00:00
ms-extensions.c
ms-extensions.cpp ext_reserved_user_defined_literal must not default to Error in MicrosoftMode. Hence create ext_ms_reserved_user_defined_literal that doesn't default to Error; otherwise MSVC headers won't parse. 2012-04-07 23:09:23 +00:00
msdos-cpm-eof.c
multiple-include.c
newline-eof-c++11.cpp C++11 no longer requires files to end with a newline 2012-04-13 01:00:34 +00:00
newline-eof-c++98-compat.cpp %clang -cc1 -> %clang_cc1 2012-04-15 04:41:49 +00:00
newline-eof.c Fix the location of the fixit for -Wnewline-eof. 2012-06-19 03:09:38 +00:00
numeric-literal-trash.c
pragma-mark.c
pragma-message.c
pragma-operators.cpp [-E] Emit a rewritten _Pragma on its own line. 2012-06-15 23:33:51 +00:00
preamble.c
rdar-8914293.c
rdr-6096838-2.c
rdr-6096838.c
string-literal-encoding.c
string_concat.cpp
token-concat-2.c
token-concat.c
token-concat.cpp
unknown-char.c
utf-16.c Fix tests that weren't actually verifying anything. 2012-04-15 22:09:44 +00:00
utf-16.c.txt
utf8-char-literal.cpp
wchar-signedness.c Add a predefine __WINT_UNSIGNED__, similar to __WCHAR_UNSIGNED__, and test them both for ARM and X86. 2012-05-04 11:23:40 +00:00
wchar.c