hanchenye-llvm-project/clang/test/Frontend
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
..
Inputs Add -isystem-prefix and -ino-system-prefix arguments, which can be used to 2012-06-13 20:27:03 +00:00
Weverything.c
Wno-everything.c
ast-codegen.c
ast-main.c
cpp-output.c
darwin-version.c
dependency-gen.c
dependency-generation-crash.c
diagnostics-option-names.c
iframework.c
ir-support-codegen.ll
ir-support-errors.ll Escape % in diagnostic message when compiling LLVM IR. 2012-03-16 22:31:42 +00:00
lit.local.cfg
macros.c
output-failures.c
preprocessed-output-macro-first-token.c
print-header-includes.c
rewrite-includes-missing.c Remove absolute path form include test. 2012-06-14 19:55:56 +00:00
rewrite-includes.c Rename -rewrite-includes to -frewrite-includes. 2012-06-14 17:36:01 +00:00
rewrite-macros.c
stdin.c
system-header-prefix.c Add -isystem-prefix and -ino-system-prefix arguments, which can be used to 2012-06-13 20:27:03 +00:00
undef.c
unknown-pragmas.c
verify-directive.h Allow -verify directives to be filtered by preprocessing. 2012-07-11 19:58:23 +00:00
verify-fatal.c Allow -verify directives to be filtered by preprocessing. 2012-07-11 19:58:23 +00:00
verify.c Allow -verify directives to be filtered by preprocessing. 2012-07-11 19:58:23 +00:00
warning-mapping-1.c
warning-mapping-2.c
warning-mapping-3.c
warning-mapping-4.c
warning-mapping-5.c