hanchenye-llvm-project/clang/lib/Sema
Eli Friedman 276dd188c4 Note when a decl is used in AST files.
When an AST file is built based on another AST file, it can use a decl from
the fist file, and therefore mark the "isUsed" bit.  We need to note this in
the AST file so that the bit is set correctly when the second AST file is
loaded.

This patch introduces the distinction between setIsUsed() and markUsed() so
that we don't call into the ASTMutationListener callback when it wouldn't
be appropriate.

Fixes PR16635.

llvm-svn: 190016
2013-09-05 00:02:25 +00:00
..
AnalysisBasedWarnings.cpp Consumed analysis: add return_typestate attribute. 2013-09-03 20:11:38 +00:00
AttributeList.cpp Factor out parsing and allocation of IdentifierLoc objects. 2013-09-03 18:01:40 +00:00
CMakeLists.txt Re-commit r183466 with a fix to make the TypeLoc casting machinery work 2013-06-07 20:31:48 +00:00
CodeCompleteConsumer.cpp Allow the computation of the base priority for a declaration code completion result to consider the completion context 2013-01-31 04:52:16 +00:00
DeclSpec.cpp "bool" should be a context-sensitive keyword in Altivec mode. 2013-07-03 20:54:09 +00:00
DelayedDiagnostic.cpp objective-C: when diagnosing deprecated/unavailable usage of 2012-09-21 20:46:37 +00:00
IdentifierResolver.cpp Delete dead code. 2013-06-19 02:07:51 +00:00
JumpDiagnostics.cpp Fix a couple of bugs where jump diagnostics would not notice that a variable 2013-06-03 01:05:37 +00:00
Makefile
MultiplexExternalSemaSource.cpp Add hooks to ExternalSemaSource for after-the-fact diagnosis of 2013-08-12 22:11:14 +00:00
Scope.cpp
ScopeInfo.cpp Sema for Captured Statements 2013-04-16 19:37:38 +00:00
Sema.cpp Revert "OpenMP: Data-sharing attributes analysis and clause 'shared'" 2013-09-03 14:33:09 +00:00
SemaAccess.cpp Use pop_back_val() instead of both back() and pop_back(). 2013-08-23 16:11:15 +00:00
SemaAttr.cpp Omit llvm:: before StringRef and SmallString. We have using directive in include/clang/Basic/LLVM.h. 2013-08-10 13:29:01 +00:00
SemaCXXScopeSpec.cpp Refactor all diagnosing of TypoCorrections through a common function, in 2013-08-17 00:46:16 +00:00
SemaCast.cpp Properly track l-paren of a CXXFucntionalCastExpr. 2013-08-15 22:02:56 +00:00
SemaChecking.cpp Switched FormatAttr to using an IdentifierArgument instead of a StringArgument since that is a more accurate modeling. 2013-09-03 21:02:22 +00:00
SemaCodeComplete.cpp Cleanup of OpaquePtr. No functionality changes. 2013-08-27 13:15:56 +00:00
SemaConsumer.cpp
SemaDecl.cpp Note when a decl is used in AST files. 2013-09-05 00:02:25 +00:00
SemaDeclAttr.cpp Switched FormatAttr to using an IdentifierArgument instead of a StringArgument since that is a more accurate modeling. 2013-09-03 21:02:22 +00:00
SemaDeclCXX.cpp Note when a decl is used in AST files. 2013-09-05 00:02:25 +00:00
SemaDeclObjC.cpp Cleanup of OpaquePtr. No functionality changes. 2013-08-27 13:15:56 +00:00
SemaExceptionSpec.cpp Make IgnoreParens() look through ChooseExprs. 2013-07-20 00:40:58 +00:00
SemaExpr.cpp Note when a decl is used in AST files. 2013-09-05 00:02:25 +00:00
SemaExprCXX.cpp Properly track l-paren of a CXXFucntionalCastExpr. 2013-08-15 22:02:56 +00:00
SemaExprMember.cpp Refactor all diagnosing of TypoCorrections through a common function, in 2013-08-17 00:46:16 +00:00
SemaExprObjC.cpp Omit llvm:: before makeArrayRef. We have using directive in this file. 2013-08-19 07:57:02 +00:00
SemaFixItUtils.cpp s/CPlusPlus0x/CPlusPlus11/g 2013-01-02 11:42:31 +00:00
SemaInit.cpp Handle init lists and _Atomic fields. 2013-08-19 22:12:56 +00:00
SemaLambda.cpp Note when a decl is used in AST files. 2013-09-05 00:02:25 +00:00
SemaLookup.cpp Removed useless default branch of switch statement. 2013-08-29 08:20:07 +00:00
SemaObjCProperty.cpp Fix recovery for missing * in objc property. 2013-07-09 01:38:07 +00:00
SemaOpenMP.cpp Revert "OpenMP: Data-sharing attributes analysis and clause 'shared'" 2013-09-03 14:33:09 +00:00
SemaOverload.cpp Improve error for assignment to incomplete class. 2013-08-28 20:35:35 +00:00
SemaPseudoObject.cpp Make IgnoreParens() look through ChooseExprs. 2013-07-20 00:40:58 +00:00
SemaStmt.cpp Note when a decl is used in AST files. 2013-09-05 00:02:25 +00:00
SemaStmtAsm.cpp [ms-inline asm] Don't diagnose an empty lookup for inline assmebly. This happen 2013-05-24 18:32:55 +00:00
SemaStmtAttr.cpp PR15300: Support C++11 attributes on base-specifiers. We don't support any such 2013-02-19 23:47:15 +00:00
SemaTemplate.cpp Simplify. This function bails out a few lines above if !Found.empty(). 2013-09-03 21:22:41 +00:00
SemaTemplateDeduction.cpp A clean-up pass, exploring the unification of traversals of class, variable and function templates. 2013-08-23 22:21:36 +00:00
SemaTemplateInstantiate.cpp Refactor for clarity and simplicity. 2013-08-22 00:59:14 +00:00
SemaTemplateInstantiateDecl.cpp Note when a decl is used in AST files. 2013-09-05 00:02:25 +00:00
SemaTemplateVariadic.cpp Refactor all diagnosing of TypoCorrections through a common function, in 2013-08-17 00:46:16 +00:00
SemaType.cpp Consolidating the notion of a GNU attribute parameter with the attribute argument list. 2013-08-31 01:11:41 +00:00
TargetAttributesSema.cpp Consolidating the notion of a GNU attribute parameter with the attribute argument list. 2013-08-31 01:11:41 +00:00
TargetAttributesSema.h Revert r170500. It over-zealously converted *ALL* things named Attributes, which is wrong here. 2012-12-20 19:22:21 +00:00
TreeTransform.h Clear LookupResult object if invalid candidate is found. 2013-09-04 04:50:29 +00:00
TypeLocBuilder.cpp Add missing file from r183563 (the recommit of 183466). 2013-06-07 20:33:10 +00:00
TypeLocBuilder.h Re-commit r183466 with a fix to make the TypeLoc casting machinery work 2013-06-07 20:31:48 +00:00