/external/clang/lib/Analysis/ |
CallGraph.cpp | 15 #include "clang/AST/Decl.h" 41 Decl *getDeclFromCall(CallExpr *CE) { 55 void addCalledDecl(Decl *D) { 63 if (Decl *D = getDeclFromCall(CE)) 73 Decl *D = nullptr; 111 bool CallGraph::includeInGraph(const Decl *D) { 136 void CallGraph::addNodeForDecl(Decl* D, bool IsGlobal) { 148 CallGraphNode *CallGraph::getNode(const Decl *F) const { 154 CallGraphNode *CallGraph::getOrInsertNode(Decl *F) {
|
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/unittests/AST/ |
ASTContextParentMapTest.cpp | 29 MatchVerifier<Decl> Verifier; 41 MatchVerifier<Decl> DeclVerifier;
|
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
PathDiagnostic.h | 34 class Decl; 134 const Decl *D; 172 PathDiagnosticLocation(const Decl *d, const SourceManager &sm) 191 static PathDiagnosticLocation create(const Decl *D, 197 static PathDiagnosticLocation createBegin(const Decl *D, 280 const Decl *asDecl() const { assert(isValid()); return D; } 548 PathDiagnosticCallPiece(const Decl *callerD, 553 PathDiagnosticCallPiece(PathPieces &oldPath, const Decl *caller) 557 const Decl *Caller; 558 const Decl *Callee [all...] |
/external/clang/tools/libclang/ |
IndexingContext.h | 248 AttrListInfo(const Decl *D, IndexingContext &IdxCtx); 250 static IntrusiveRefCntPtr<AttrListInfo> create(const Decl *D, 283 typedef llvm::DenseMap<const Decl *, CXIdxClientEntity> EntityMapTy; 289 typedef std::pair<const FileEntry *, const Decl *> RefFileOccurrence; 357 static bool isFunctionLocalDecl(const Decl *D); 374 void indexDecl(const Decl *D); 445 void indexTopLevelDecl(const Decl *D); 459 CXIdxClientEntity getClientEntity(const Decl *D) const; 460 void setClientEntity(const Decl *D, CXIdxClientEntity client); 462 static bool isTemplateImplicitInstantiation(const Decl *D) [all...] |
IndexingContext.cpp | 64 AttrListInfo::AttrListInfo(const Decl *D, IndexingContext &IdxCtx) 117 AttrListInfo::create(const Decl *D, IndexingContext &IdxCtx) { 205 bool IndexingContext::isFunctionLocalDecl(const Decl *D) { 661 CXCursor Cursor = E ? MakeCXCursor(E, cast<Decl>(DC), CXTU) 740 CXIdxClientEntity IndexingContext::getClientEntity(const Decl *D) const { 749 void IndexingContext::setClientEntity(const Decl *D, CXIdxClientEntity client) { 836 IndexingContext::getEntityContainer(const Decl *D) const { [all...] |
CIndex.cpp | 186 const Decl *D = getCursorDecl(Cursor); 284 static bool isInLexicalContext(Decl *D, DeclContext *DC) { 302 SmallVector<Decl *, 16> Decls; 330 SmallVectorImpl<Decl *>::iterator DIt = Decls.begin(); 331 for (SmallVectorImpl<Decl *>::iterator DE = Decls.end(); DIt != DE; ++DIt) { 332 Decl *D = *DIt; 375 Decl *D = cast<Decl>(DC); 492 Decl *D = const_cast<Decl *>(getCursorDecl(Cursor)) [all...] |
/external/lldb/source/Symbol/ |
ClangASTImporter.cpp | 10 #include "clang/AST/Decl.h" 29 log->Printf(" Number of visible Decl queries by name : %" PRIu64, counters.m_visible_query_count); 30 log->Printf(" Number of lexical Decl queries : %" PRIu64, counters.m_lexical_query_count); 70 clang::Decl * 73 clang::Decl *decl) 81 clang::Decl *result = minion_sp->Import(decl); 90 ClangASTMetadata *metadata = GetDeclMetadata(decl); 94 if (NamedDecl *named_decl = dyn_cast<NamedDecl>(decl)) 474 NamedDecl *decl = *m_decls_to_deport->begin(); local [all...] |
/external/clang/include/clang/Analysis/ |
AnalysisContext.h | 18 #include "clang/AST/Decl.h" 70 const Decl * const D; 91 const Decl *D); 94 const Decl *D, 100 const Decl *getDecl() const { return D; } 139 /// \brief Checks if the body of the Decl is generated by the BodyFarm. 230 const Decl *getDecl() const { return getAnalysisDeclContext()->getDecl(); } 396 typedef llvm::DenseMap<const Decl*, AnalysisDeclContext*> ContextMap; 417 AnalysisDeclContext *getContext(const Decl *D); 440 const StackFrameContext *getStackFrame(const Decl *D) [all...] |
/external/clang/include/clang/Serialization/ |
ASTReader.h | 64 class Decl; 402 std::vector<Decl *> DeclsLoaded; 422 llvm::SmallVector<std::pair<serialization::GlobalDeclID, Decl*>, 16> 468 llvm::SmallPtrSet<Decl *, 4> PendingDefinitions; 470 typedef llvm::MapVector<Decl *, uint64_t, 471 llvm::SmallDenseMap<Decl *, unsigned, 4>, 472 SmallVector<std::pair<Decl *, uint64_t>, 4> > 544 Decl *D; 551 HiddenName(Decl *D) : Kind(Declaration), D(D), Id() { } 558 Decl *getDecl() const [all...] |
/external/clang/lib/AST/ |
ASTImporter.cpp | 29 public DeclVisitor<ASTNodeImporter, Decl *>, 37 using DeclVisitor<ASTNodeImporter, Decl *>::Visit; 84 void ImportDefinitionIfNeeded(Decl *FromD, Decl *ToD = nullptr); 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 | 103 Decl::EnableStatistics(); 149 for (SmallVectorImpl<Decl *>::iterator 161 Decl::PrintStats();
|
/external/lldb/include/lldb/Symbol/ |
ClangExternalASTSourceCallbacks.h | 62 virtual clang::Decl * 66 // passes back decl sets as VisibleDeclaration objects. 107 bool (*isKindWeWant)(clang::Decl::Kind), 108 llvm::SmallVectorImpl<clang::Decl*> &decls)
|
/external/lldb/source/Expression/ |
ASTDumper.cpp | 18 ASTDumper::ASTDumper (clang::Decl *decl) 20 clang::DeclContext *decl_ctx = llvm::dyn_cast<clang::DeclContext>(decl); 34 decl->print (os); 52 if (clang::Decl *decl = llvm::dyn_cast<clang::Decl>(decl_ctx)) 55 decl->print (os); 60 m_dump.assign("<DeclContext is not a Decl>");
|
/external/clang/lib/Sema/ |
SemaDeclAttr.cpp | 10 // This file implements decl-related attribute processing. 47 /// isFunctionOrMethod - Return true if the given decl has function 50 static bool isFunctionOrMethod(const Decl *D) { 54 /// Return true if the given decl has a declarator that should have 56 static bool hasDeclarator(const Decl *D) { 62 /// hasFunctionProto - Return true if the given decl has a argument 63 /// information. This decl should have already passed 65 static bool hasFunctionProto(const Decl *D) { 74 static unsigned getFunctionOrMethodNumParams(const Decl *D) { 82 static QualType getFunctionOrMethodParamType(const Decl *D, unsigned Idx) [all...] |
/external/clang/include/clang/Sema/ |
Sema.h | 97 class Decl; 223 // the new decl. If the new decl has external linkage, we will 224 // link it with the hidden decl (which also has external linkage) and 255 /// \brief Generally null except when we temporarily switch decl contexts, 398 llvm::SmallPtrSet<const Decl*, 4> ParsingInitForAutoVars; 619 SmallVector<Decl*,2> WeakTopLevelDecl; 624 /// to lookup file scope declarations in the "ordinary" C decl namespace. 753 Decl *ManglingContextDecl; 773 Decl *ManglingContextDecl [all...] |
/external/clang/include/clang/AST/ |
ASTContext.h | 21 #include "clang/AST/Decl.h" 272 /// wasting space in the Decl class. 273 llvm::DenseMap<const Decl*, AttrVec*> DeclAttrs; 278 llvm::DenseMap<Decl*, Decl*> MergedDecls; 453 /// 'NodeT' can be one of Decl, Stmt, Type, TypeLoc, 564 const Decl *getOriginalDecl() const LLVM_READONLY { 568 void setOriginalDecl(const Decl *Orig) { 574 const Decl *OriginalDecl; 582 mutable llvm::DenseMap<const Decl *, RawCommentAndCacheFlags> RedeclComments [all...] |
LambdaCapture.h | 18 #include "clang/AST/Decl.h" 39 llvm::PointerIntPair<Decl *, 2> DeclAndBits;
|
DeclTemplate.h | 238 // Construct a template decl with the given name and parameters. 245 // Construct a template decl with name, parameters, and templated element. 248 NamedDecl *Decl) 249 : NamedDecl(DK, DC, L, Name), TemplatedDecl(Decl), 261 static bool classof(const Decl *D) { return classofKind(D->getKind()); } 624 // Construct a template decl with name, parameters, and templated element. 627 TemplateParameterList *Params, NamedDecl *Decl) 628 : TemplateDecl(DK, DC, L, Name, Params, Decl), redeclarable_base(C), 726 static bool classof(const Decl *D) { return classofKind(D->getKind()); } 779 NamedDecl *Decl) [all...] |
/external/chromium_org/tools/clang/blink_gc_plugin/ |
Config.h | 139 static bool IsAnnotated(clang::Decl* decl, const std::string& anno) { 140 clang::AnnotateAttr* attr = decl->getAttr<clang::AnnotateAttr>(); 144 static bool IsStackAnnotated(clang::Decl* decl) { 145 return IsAnnotated(decl, "blink_stack_allocated"); 148 static bool IsIgnoreAnnotated(clang::Decl* decl) { 149 return IsAnnotated(decl, "blink_gc_plugin_ignore"); 152 static bool IsIgnoreCycleAnnotated(clang::Decl* decl) [all...] |
/external/clang/lib/ARCMigrate/ |
Transforms.h | 19 class Decl; 91 Decl *Dcl; 188 Decl *ParentD; 201 SaveAndRestore<Decl *> SetParent(ParentD, D);
|
/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();
|
/external/lldb/include/lldb/Expression/ |
ASTStructExtractor.h | 134 /// Hunt the given Decl for FunctionDecls named the same as the wrapper 139 /// The Decl to hunt. 142 ExtractFromTopLevelDecl(clang::Decl* D);
|
/external/clang/unittests/Frontend/ |
FrontendActionTest.cpp | 55 virtual bool VisitNamedDecl(NamedDecl *Decl) { 56 decl_names_.push_back(Decl->getQualifiedNameAsString());
|