/external/clang/lib/Analysis/ |
PseudoConstantAnalysis.cpp | 10 // This file tracks the usage of variables in a Decl body to see if they are 17 #include "clang/AST/Decl.h" 68 // Returns a Decl from a (Block)DeclRefExpr (if any) 69 const Decl *PseudoConstantAnalysis::getDecl(const Expr *E) { 95 // Look for a Decl on the LHS 96 const Decl *LHSDecl = getDecl(BO->getLHS()->IgnoreParenCasts()); 101 // for any of the assignment operators, implying that this Decl is being 107 const Decl *RHSDecl = getDecl(BO->getRHS()->IgnoreParenCasts()); 142 const Decl *D = getDecl(UO->getSubExpr()->IgnoreParenCasts()); 173 // Iterate over each decl and see if any of them contain reference decl [all...] |
/external/clang/include/clang/Analysis/ |
AnalysisContext.h | 18 #include "clang/AST/Decl.h" 30 class Decl; 75 const Decl * const D; 96 const Decl *D); 99 const Decl *D, 105 const Decl *getDecl() const { return D; } 144 /// \brief Checks if the body of the Decl is generated by the BodyFarm. 235 const Decl *getDecl() const { return getAnalysisDeclContext()->getDecl(); } 401 typedef llvm::DenseMap<const Decl*, AnalysisDeclContext*> ContextMap; 421 AnalysisDeclContext *getContext(const Decl *D) [all...] |
/external/clang/include/clang/ASTMatchers/ |
ASTMatchers.h | 111 typedef internal::Matcher<Decl> DeclarationMatcher; 147 const internal::VariadicAllOfMatcher<Decl> decl; member in namespace:clang::ast_matchers 160 const internal::VariadicDynCastAllOfMatcher<Decl, NamedDecl> namedDecl; 171 const internal::VariadicDynCastAllOfMatcher<Decl, NamespaceDecl> namespaceDecl; 181 Decl, 191 Decl, 205 Decl, 217 const internal::VariadicDynCastAllOfMatcher<Decl, DeclaratorDecl> 228 const internal::VariadicDynCastAllOfMatcher<Decl, ParmVarDecl> parmVarDecl [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
PathDiagnostic.h | 34 class Decl; 132 const Decl *D; 170 PathDiagnosticLocation(const Decl *d, const SourceManager &sm) 188 static PathDiagnosticLocation create(const Decl *D, 194 static PathDiagnosticLocation createBegin(const Decl *D, 274 const Decl *asDecl() const { assert(isValid()); return D; } 544 PathDiagnosticCallPiece(const Decl *callerD, 549 PathDiagnosticCallPiece(PathPieces &oldPath, const Decl *caller) 553 const Decl *Caller; 554 const Decl *Callee [all...] |
/external/clang/include/clang/AST/ |
ASTContext.h | 21 #include "clang/AST/Decl.h" 271 /// wasting space in the Decl class. 272 llvm::DenseMap<const Decl*, AttrVec*> DeclAttrs; 440 /// 'NodeT' can be one of Decl, Stmt, Type, TypeLoc, 540 const Decl *getOriginalDecl() const LLVM_READONLY { 544 void setOriginalDecl(const Decl *Orig) { 550 const Decl *OriginalDecl; 558 mutable llvm::DenseMap<const Decl *, RawCommentAndCacheFlags> RedeclComments; 562 mutable llvm::DenseMap<const Decl *, comments::FullComment *> ParsedComments; 566 RawComment *getRawCommentForDeclNoCache(const Decl *D) const [all...] |
DeclContextInternals.h | 17 #include "clang/AST/Decl.h" 93 assert(I != Vec.end() && "list does not contain decl"); 97 == Vec.end() && "list still contains decl"); 111 std::mem_fun(&Decl::isFromASTFile)), 139 /// HandleRedeclaration - If this is a redeclaration of an existing decl, 164 /// AddSubsequentDecl - This is called on the second and later decl when it is 168 // If this is the second decl added to the list, convert this to vector 193 else if (D->getIdentifierNamespace() & Decl::IDNS_Using) { 195 if (D->getIdentifierNamespace() != Decl::IDNS_Using) { 197 (*I)->getIdentifierNamespace() == Decl::IDNS_Using [all...] |
DeclTemplate.h | 237 // Construct a template decl with the given name and parameters. 243 // Construct a template decl with name, parameters, and templated element. 246 NamedDecl *Decl) 247 : NamedDecl(DK, DC, L, Name), TemplatedDecl(Decl), 259 static bool classof(const Decl *D) { return classofKind(D->getKind()); } 624 // Construct a template decl with name, parameters, and templated element. 627 NamedDecl *Decl) 628 : TemplateDecl(DK, DC, L, Name, Params, Decl), Common() { } 720 static bool classof(const Decl *D) { return classofKind(D->getKind()); } 772 TemplateParameterList *Params, NamedDecl *Decl) [all...] |
ExternalASTSource.h | 86 /// passes back decl sets as VisibleDeclaration objects. 89 virtual Decl *GetExternalDecl(uint32_t ID); 105 /// \brief Resolve the offset of a statement in the decl stream into 115 /// \brief Resolve the offset of a set of C++ base specifiers in the decl 154 bool (*isKindWeWant)(Decl::Kind), 155 SmallVectorImpl<Decl*> &Result); 162 SmallVectorImpl<Decl*> &Result) { 168 SmallVectorImpl<Decl*> &Result) { 176 SmallVectorImpl<Decl *> &Decls) {} 194 /// a decl or type so until FinishedDeserializing is called there may b [all...] |
/external/clang/lib/AST/ |
InheritViz.cpp | 17 #include "clang/AST/Decl.h" 94 const CXXRecordDecl *Decl 96 for (CXXRecordDecl::base_class_const_iterator Base = Decl->bases_begin(); 97 Base != Decl->bases_end(); ++Base) {
|
ASTImporter.cpp | 29 public DeclVisitor<ASTNodeImporter, Decl *>, 37 using DeclVisitor<ASTNodeImporter, Decl *>::Visit; 84 void ImportDefinitionIfNeeded(Decl *FromD, Decl *ToD = 0); 131 Decl *VisitDecl(Decl *D); 132 Decl *VisitTranslationUnitDecl(TranslationUnitDecl *D); 133 Decl *VisitNamespaceDecl(NamespaceDecl *D); 134 Decl *VisitTypedefNameDecl(TypedefNameDecl *D, bool IsAlias); 135 Decl *VisitTypedefDecl(TypedefDecl *D) [all...] |
/external/clang/lib/Parse/ |
ParseAST.cpp | 102 Decl::EnableStatistics(); 148 for (SmallVectorImpl<Decl *>::iterator 160 Decl::PrintStats();
|
/external/clang/tools/libclang/ |
CIndexHigh.cpp | 24 const Decl *D, 25 SmallVectorImpl<const Decl *> &Methods) { 49 const Decl *Dcl; 53 typedef SmallVector<const Decl *, 8> TopMethodsTy; 57 const Decl *D, int selectorIdIdx, 77 /// we consider the canonical decl of the constructor decl to be the class 79 const Decl *getCanonical(const Decl *D) const { 97 bool isHit(const Decl *D) const [all...] |
IndexingContext.cpp | 63 AttrListInfo::AttrListInfo(const Decl *D, IndexingContext &IdxCtx) 116 AttrListInfo::create(const Decl *D, IndexingContext &IdxCtx) { 206 bool IndexingContext::isFunctionLocalDecl(const Decl *D) { 660 CXCursor Cursor = E ? MakeCXCursor(E, cast<Decl>(DC), CXTU) 739 CXIdxClientEntity IndexingContext::getClientEntity(const Decl *D) const { 748 void IndexingContext::setClientEntity(const Decl *D, CXIdxClientEntity client) { 835 IndexingContext::getEntityContainer(const Decl *D) const { [all...] |
CIndex.cpp | 167 const Decl *D = getCursorDecl(Cursor); 265 static bool isInLexicalContext(Decl *D, DeclContext *DC) { 283 SmallVector<Decl *, 16> Decls; 311 SmallVectorImpl<Decl *>::iterator DIt = Decls.begin(); 312 for (SmallVectorImpl<Decl *>::iterator DE = Decls.end(); DIt != DE; ++DIt) { 313 Decl *D = *DIt; 356 Decl *D = cast<Decl>(DC); 473 Decl *D = const_cast<Decl *>(getCursorDecl(Cursor)) [all...] |
CursorVisitor.h | 73 const Decl *StmtParent; 103 SmallVectorImpl<Decl *>::iterator *FileDI_current; 104 SmallVectorImpl<Decl *>::iterator FileDE_current; 123 const Decl *&StmtParent; 127 SetParentRAII(CXCursor &Parent, const Decl *&StmtParent, 199 bool VisitAttributes(Decl *D);
|
/external/clang/include/clang/Sema/ |
Sema.h | 95 class Decl; 220 // the new decl. If the new decl has external linkage, we will 221 // link it with the hidden decl (which also has external linkage) and 252 /// \brief Generally null except when we temporarily switch decl contexts, 320 llvm::SmallPtrSet<const Decl*, 4> ParsingInitForAutoVars; 540 SmallVector<Decl*,2> WeakTopLevelDecl; 545 /// to lookup file scope declarations in the "ordinary" C decl namespace. 674 Decl *ManglingContextDecl; 694 Decl *ManglingContextDecl [all...] |
/external/clang/lib/ARCMigrate/ |
Transforms.h | 19 class Decl; 91 Decl *Dcl; 186 Decl *ParentD; 199 SaveAndRestore<Decl *> SetParent(ParentD, D);
|
/external/clang/lib/Sema/ |
DelayedDiagnostic.cpp | 31 DD.DeprecationData.Decl = D;
|
SemaTemplateInstantiateDecl.cpp | 1 //===--- SemaTemplateInstantiateDecl.cpp - C++ Template Decl Instantiation ===/ 65 const AlignedAttr *Aligned, Decl *New, bool IsPackExpansion) { 85 const AlignedAttr *Aligned, Decl *New) { 122 const Decl *Tmpl, Decl *New, 160 Decl * 165 Decl * 173 Decl * 178 Decl * 192 Decl *TemplateDeclInstantiator::InstantiateTypedefNameDecl(TypedefNameDecl *D [all...] |
SemaDeclAttr.cpp | 10 // This file implements decl-related attribute processing. 63 static const FunctionType *getFunctionType(const Decl *D, 66 if (const ValueDecl *decl = dyn_cast<ValueDecl>(D)) 67 Ty = decl->getType(); 68 else if (const FieldDecl *decl = dyn_cast<FieldDecl>(D)) 69 Ty = decl->getType(); 70 else if (const TypedefNameDecl* decl = dyn_cast<TypedefNameDecl>(D)) 71 Ty = decl->getUnderlyingType(); 86 /// isFunction - Return true if the given decl has function 88 static bool isFunction(const Decl *D) [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
DebugCheckers.cpp | 34 void checkASTCodeBody(const Decl *D, AnalysisManager& mgr, 56 void checkASTCodeBody(const Decl *D, AnalysisManager& mgr, 76 void checkASTCodeBody(const Decl *D, AnalysisManager& mgr, 96 void checkASTCodeBody(const Decl *D, AnalysisManager& mgr,
|
UndefinedArraySubscriptChecker.cpp | 44 const Decl *D = C.getLocationContext()->getDecl();
|
MallocOverflowSecurityChecker.cpp | 43 void checkASTCodeBody(const Decl *D, AnalysisManager &mgr, 52 const Decl *D, BugReporter &BR, AnalysisManager &mgr) const; 136 const Decl * EdreD = DR->getDecl(); 147 const Decl * EmeMD = dyn_cast<MemberExpr>(E)->getMemberDecl(); 201 const Decl *D, BugReporter &BR, AnalysisManager &mgr) const { 224 void MallocOverflowSecurityChecker::checkASTCodeBody(const Decl *D,
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
AnalysisConsumer.cpp | 18 #include "clang/AST/Decl.h" 223 void DisplayFunction(const Decl *D, AnalysisMode Mode, 291 getInliningModeForFunction(const Decl *D, SetOfConstDecls Visited); 303 void HandleCode(Decl *D, AnalysisMode Mode, 307 void RunPathSensitiveChecks(Decl *D, 310 void ActionExprEngine(Decl *D, bool ObjCGCEnabled, 318 bool VisitDecl(Decl *D) { 360 AnalysisMode getModeForDecl(Decl *D, AnalysisMode Mode); 392 static bool shouldSkipFunction(const Decl *D, 413 AnalysisConsumer::getInliningModeForFunction(const Decl *D [all...] |
/external/clang/include/clang/Serialization/ |
ASTReader.h | 65 class Decl; 350 std::vector<Decl *> DeclsLoaded; 411 llvm::SmallPtrSet<Decl *, 4> PendingDefinitions; 413 typedef llvm::MapVector<Decl *, uint64_t, 414 llvm::SmallDenseMap<Decl *, unsigned, 4>, 415 SmallVector<std::pair<Decl *, uint64_t>, 4> > 483 Decl *D; 490 HiddenName(Decl *D) : Kind(Declaration), D(D), Id() { } 497 Decl *getDecl() const { 635 /// instantiation where the first value is the ID of the decl and the secon [all...] |