llvm-project/clang/lib/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
..
ASTConsumers.cpp Added -ast-list option to dump filterable AST decl node names. 2012-07-31 09:37:40 +00:00
ASTMerge.cpp Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST). 2012-03-11 07:00:24 +00:00
ASTUnit.cpp Introduce a flag in SourceManager to treat non-system source files 2012-07-11 20:59:04 +00:00
CMakeLists.txt clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
CacheTokens.cpp Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST). 2012-03-11 07:00:24 +00:00
ChainedDiagnosticConsumer.cpp Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch 2011-12-20 02:48:34 +00:00
ChainedIncludesSource.cpp Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST). 2012-03-11 07:00:24 +00:00
CompilerInstance.cpp Add a new libclang completion API to get brief documentation comment that is 2012-07-02 17:35:10 +00:00
CompilerInvocation.cpp Preprocessor: fix __OPTIMIZE_SIZE__ and -Oz 2012-08-08 16:09:15 +00:00
CreateInvocationFromCommandLine.cpp [driver] When creating the compiler invocation out of command-line 2012-05-21 20:11:54 +00:00
DependencyFile.cpp Delete the depfile if we could not open a header file. We cannot 2011-11-21 00:01:14 +00:00
DependencyGraph.cpp Rename -dependency-graphviz to -dependencncy-dot 2012-02-02 23:45:13 +00:00
DiagnosticRenderer.cpp Move a few static functions from DiagnosticRenderer.cpp into SourceManager. 2012-06-18 20:12:05 +00:00
FrontendAction.cpp Make sure to call EndSourceFile even if we can't continue compiling. 2012-08-10 01:06:08 +00:00
FrontendActions.cpp Added -ast-list option to dump filterable AST decl node names. 2012-07-31 09:37:40 +00:00
FrontendOptions.cpp remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports 2011-07-23 10:55:15 +00:00
HeaderIncludeGen.cpp Basic: import SmallString<> into clang namespace 2012-02-05 02:13:05 +00:00
InitHeaderSearch.cpp clang support for Bitrig (an OpenBSD fork); patch by David Hill. 2012-08-08 23:57:20 +00:00
InitPreprocessor.cpp Frontend: further document __BYTE_ORDER__ 2012-08-08 16:09:12 +00:00
LangStandards.cpp Remove unnecessary default cases in switches over enums. 2012-01-17 02:30:50 +00:00
LayoutOverrideSource.cpp Revert Decl's iterators back to pointer value_type rather than reference value_type 2012-06-06 20:45:41 +00:00
LogDiagnosticPrinter.cpp Basic: import SmallString<> into clang namespace 2012-02-05 02:13:05 +00:00
Makefile BUILD_ARCHIVE is the default for libraries, no need to set it. 2010-07-18 00:14:47 +00:00
MultiplexConsumer.cpp Replace MarkVarRequired with a more generic 2012-03-08 15:51:03 +00:00
PrintPreprocessedOutput.cpp [-E] Emit a rewritten _Pragma on its own line. 2012-06-15 23:33:51 +00:00
SerializedDiagnosticPrinter.cpp Fix an assertion hit when the serialized diagnostics writer receive a diagnostic 2012-05-10 05:03:45 +00:00
TextDiagnostic.cpp Remove unused variables. 2012-08-08 09:26:28 +00:00
TextDiagnosticBuffer.cpp Basic: import SmallString<> into clang namespace 2012-02-05 02:13:05 +00:00
TextDiagnosticPrinter.cpp Fix a typo (the the => the) 2012-07-23 08:59:39 +00:00
VerifyDiagnosticConsumer.cpp Update VerifyDiagnosticConsumer to only get directives during parsing. 2012-08-10 01:06:16 +00:00
Warnings.cpp Add template type diffing to Clang. This feature will provide a better 2012-06-26 18:18:47 +00:00