llvm-project/clang/test/Frontend
Jordan Rose b00073db80 Update VerifyDiagnosticConsumer to only get directives during parsing.
The old behavior was to re-scan any files (like modules) where we may have
directives but won't actually be parsing during the -verify invocation.
Now, we keep the old behavior in Debug builds as a sanity check (though
modules are a known entity), and expect all legitimate directives to come
from comments seen by the preprocessor.

This also affects the ARC migration tool, which captures diagnostics in
order to filter some out. This change adds an explicit cleanup to
CaptureDiagnosticsConsumer in order to let its sub-consumer handle the
real end of diagnostics.

This was originally split into four patches, but the tests do not run
cleanly without all four, so I've combined them into one commit.

Patches by Andy Gibbs, with slight modifications from me.

llvm-svn: 161650
2012-08-10 01:06:16 +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 Basic/Diagnostics: Rewrite DiagnosticIDs::getDiagnosticLevel completely to be straighter line code, use the new DiagnosticMappingInfo flags, and eliminate the odd MAP_WARNING_NO_WERROR and friend mappings. 2011-09-29 01:58:05 +00:00
Wno-everything.c Add test for -Wno-everything. 2012-01-27 07:10:14 +00:00
ast-codegen.c
ast-main.c
cpp-output.c
darwin-version.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
dependency-gen.c test/Frontend/dependency-gen.c: Relax expressions for Win32 host (mingw msys). 2011-11-17 07:21:33 +00:00
dependency-generation-crash.c Fixes a crash when generating dependency file stuff 2011-04-15 18:49:23 +00:00
diagnostics-option-names.c Basic/Diagnostics: Add an isDefaultMappingAsError method, and switch TextDiagnosticPrinter to use that instead of extracting the current mapping via getDiagnosticLevel, which fixes one class of corner cases w.r.t. printing the "-Werror" diagnostic option marker. 2011-09-29 01:01:08 +00:00
iframework.c Frontend: Support -iframework. 2011-10-18 20:40:38 +00:00
ir-support-codegen.ll These tests require particular registered targets. Declared as such. 2011-06-04 04:38:16 +00:00
ir-support-errors.ll Escape % in diagnostic message when compiling LLVM IR. 2012-03-16 22:31:42 +00:00
lit.local.cfg tests: Update Frontend config to actually run ir-support tests. 2010-06-16 20:04:36 +00:00
macros.c
output-failures.c
preprocessed-output-macro-first-token.c add a testcase, from Michael Spencer 2010-06-15 18:56:20 +00:00
print-header-includes.c Frontend: Add basic -H support. 2010-08-24 22:44:13 +00:00
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 Per discussion on cfe-dev, remove '#error' and '#warning' from diagnostic text. 2012-02-02 00:16:13 +00:00
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 The macros defined by the language standard are still available even when the 2011-06-07 06:07:12 +00:00
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 Update VerifyDiagnosticConsumer to only get directives during parsing. 2012-08-10 01:06:16 +00:00
verify2.c Update VerifyDiagnosticConsumer to only get directives during parsing. 2012-08-10 01:06:16 +00:00
verify2.h Update VerifyDiagnosticConsumer to only get directives during parsing. 2012-08-10 01:06:16 +00:00
warning-mapping-1.c tests: Add some more tests for warning mappings. 2011-09-29 01:37:40 +00:00
warning-mapping-2.c Basic/Diagnostics: Rewrite DiagnosticIDs::getDiagnosticLevel completely to be straighter line code, use the new DiagnosticMappingInfo flags, and eliminate the odd MAP_WARNING_NO_WERROR and friend mappings. 2011-09-29 01:58:05 +00:00
warning-mapping-3.c tests: Add some more tests for warning mappings. 2011-09-29 01:37:40 +00:00
warning-mapping-4.c Basic/Diagnostics: Rewrite DiagnosticIDs::getDiagnosticLevel completely to be straighter line code, use the new DiagnosticMappingInfo flags, and eliminate the odd MAP_WARNING_NO_WERROR and friend mappings. 2011-09-29 01:58:05 +00:00
warning-mapping-5.c Basic/Diagnostics: Apparently, #pragma ... diagnostic is intended to override 2011-10-04 21:17:24 +00:00