hanchenye-llvm-project/clang/lib/ARCMigrate
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
..
ARCMT.cpp Update VerifyDiagnosticConsumer to only get directives during parsing. 2012-08-10 01:06:16 +00:00
ARCMTActions.cpp
CMakeLists.txt clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
FileRemapper.cpp
Internals.h [arcmt] Use CFBridgingRetain/CFBridgingRelease instead of __bridge_retained/__bridge_transfer 2012-06-01 00:10:47 +00:00
Makefile
ObjCMT.cpp Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h. 2012-07-04 20:19:54 +00:00
PlistReporter.cpp
TransAPIUses.cpp Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h. 2012-07-04 20:19:54 +00:00
TransARCAssign.cpp Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h. 2012-07-04 20:19:54 +00:00
TransAutoreleasePool.cpp Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h. 2012-07-04 20:19:54 +00:00
TransBlockObjCVariable.cpp Fix a typo (the the => the) 2012-07-23 08:59:39 +00:00
TransEmptyStatementsAndDealloc.cpp Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h. 2012-07-04 20:19:54 +00:00
TransGCAttrs.cpp Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h. 2012-07-04 20:19:54 +00:00
TransGCCalls.cpp Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h. 2012-07-04 20:19:54 +00:00
TransProperties.cpp Revert Decl's iterators back to pointer value_type rather than reference value_type 2012-06-06 20:45:41 +00:00
TransRetainReleaseDealloc.cpp Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h. 2012-07-04 20:19:54 +00:00
TransUnbridgedCasts.cpp Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h. 2012-07-04 20:19:54 +00:00
TransUnusedInitDelegate.cpp Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h. 2012-07-04 20:19:54 +00:00
TransZeroOutPropsInDealloc.cpp Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h. 2012-07-04 20:19:54 +00:00
TransformActions.cpp Drop the ASTContext.h include from Stmt.h and fix up transitive users. 2012-07-04 17:04:04 +00:00
Transforms.cpp Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h. 2012-07-04 20:19:54 +00:00
Transforms.h [arcmt] At an unbridged cast error, if we're returning a load-of-ivar from a +0 method, 2012-06-07 00:44:06 +00:00