llvm-project/clang/test/ASTMerge
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 Fix crash at @implementation with a forward reference as base class. 2012-03-13 01:09:36 +00:00
category.m Fix two thinkos and add a test for importing the AST of a category 2010-12-08 16:41:55 +00:00
class-template.cpp Implement AST import support for class template specializations. 2010-12-01 01:36:18 +00:00
class.cpp Read/write to/from PCH DeclarationNameLocs, DeclarationNameInfos and QualifierInfos (rdar://8513756). 2010-10-15 18:21:24 +00:00
enum.c Instead of counting totally diagnostics, split the count into a count 2010-04-07 18:47:42 +00:00
exprs.c AST import for character literals 2010-02-18 02:21:22 +00:00
function.c Update VerifyDiagnosticConsumer to only get directives during parsing. 2012-08-10 01:06:16 +00:00
interface.m Improve location fidelity of objc decls. 2011-10-04 04:48:02 +00:00
namespace.cpp Add test for AST importing of C++ namespaces, missing from a prior commit 2010-02-24 21:53:36 +00:00
property.m Implement AST import for Objective-C property implementations 2010-12-07 18:32:03 +00:00
struct.c Instead of counting totally diagnostics, split the count into a count 2010-04-07 18:47:42 +00:00
typedef.c Instead of counting totally diagnostics, split the count into a count 2010-04-07 18:47:42 +00:00
var.c Flip the default for showing include stacks on notes to false. This 2011-03-27 20:00:08 +00:00