/external/clang/lib/Index/ |
ASTLocation.cpp | 50 return NDRef.ND; 88 if (const NamedDecl *ND = dyn_cast<NamedDecl>(AsDecl())) 89 OS << *ND; 98 OS << "[NamedRef: " << AsNamedRef().ND->getDeclKindName() << " "; 99 OS << *AsNamedRef().ND;
|
DeclReferenceMap.cpp | 58 NamedDecl *ND = TL.getTypedefNameDecl(); 59 Map.insert(std::make_pair(ND, ASTLocation(CurrentDecl, ND, TL.getNameLoc()))); 63 NamedDecl *ND = TL.getIFaceDecl(); 64 Map.insert(std::make_pair(ND, ASTLocation(CurrentDecl, ND, TL.getNameLoc())));
|
/external/clang/include/clang/Index/ |
ASTLocation.h | 43 NamedDecl *ND; 46 NamedRef() : ND(0) { } 47 NamedRef(NamedDecl *nd, SourceLocation loc) : ND(nd), Loc(loc) { } 57 NamedDecl *ND; 81 NDRef.ND = ndRef; 116 return NamedRef(NDRef.ND, SourceLocation::getFromRawEncoding(NDRef.RawLoc));
|
/external/clang/lib/AST/ |
ItaniumMangle.cpp | 43 static const CXXRecordDecl *GetLocalClassDecl(const NamedDecl *ND) { 44 const DeclContext *DC = dyn_cast<DeclContext>(ND); 46 DC = ND->getDeclContext(); 124 bool getNextDiscriminator(const NamedDecl *ND, unsigned &disc) { 125 unsigned &discriminator = Uniquifier[ND]; 230 void mangleName(const NamedDecl *ND); 232 void mangleNameOrStandardSubstitution(const NamedDecl *ND); 235 bool mangleSubstitution(const NamedDecl *ND); 243 bool mangleStandardSubstitution(const NamedDecl *ND); 245 void addSubstitution(const NamedDecl *ND) { [all...] |
ASTDiagnostic.cpp | 272 const NamedDecl *ND = reinterpret_cast<const NamedDecl*>(Val); 273 ND->getNameForDiagnostic(S, Context.getPrintingPolicy(), Qualified); 299 NamedDecl *ND = cast<NamedDecl>(DC); 300 if (isa<NamespaceDecl>(ND)) 302 else if (isa<ObjCMethodDecl>(ND)) 304 else if (isa<FunctionDecl>(ND)) 308 ND->getNameForDiagnostic(S, Context.getPrintingPolicy(), true);
|
Mangle.cpp | 99 const NamedDecl *ND = cast<NamedDecl>(DC); 100 if (IdentifierInfo *II = ND->getIdentifier()) 108 mangleName(ND, Stream);
|
MicrosoftMangle.cpp | 41 void mangleName(const NamedDecl *ND); 48 void mangleUnqualifiedName(const NamedDecl *ND) { 49 mangleUnqualifiedName(ND, ND->getDeclName()); 51 void mangleUnqualifiedName(const NamedDecl *ND, DeclarationName Name); 249 void MicrosoftCXXNameMangler::mangleName(const NamedDecl *ND) { 251 const DeclContext *DC = ND->getDeclContext(); 254 mangleUnqualifiedName(ND); 258 if (isa<FunctionDecl>(DC) && ND->hasLinkage()) 293 MicrosoftCXXNameMangler::mangleUnqualifiedName(const NamedDecl *ND, [all...] |
DeclBase.cpp | 200 if (const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC)) 201 if (ND->isAnonymousNamespace()) 976 NamedDecl *ND = cast<NamedDecl>(D); 979 if (!ND->getDeclName()) return; 984 StoredDeclsMap::iterator Pos = Map->find(ND->getDeclName()); 986 Pos->second.remove(ND); 1012 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) 1013 ND->getDeclContext()->makeDeclVisibleInContext(ND); 1027 if (NamedDecl *ND = dyn_cast<NamedDecl>(*D) [all...] |
/external/clang/examples/PrintFunctionNames/ |
PrintFunctionNames.cpp | 29 if (const NamedDecl *ND = dyn_cast<NamedDecl>(D)) 30 llvm::errs() << "top-level-decl: \"" << ND->getNameAsString() << "\"\n";
|
/external/clang/lib/Sema/ |
SemaCodeComplete.cpp | 77 void Add(NamedDecl *ND, unsigned Index) { 80 DeclOrVector = ND; 95 DeclIndexPair(ND, Index)); 255 /// \param ND the declaration that we are inspecting. 259 bool isInterestingDecl(NamedDecl *ND, bool &AsNestedNameSpecifier) const; 311 bool IsOrdinaryName(NamedDecl *ND) const; 312 bool IsOrdinaryNonTypeName(NamedDecl *ND) const; 313 bool IsIntegralConstantValue(NamedDecl *ND) const; 314 bool IsOrdinaryNonValueName(NamedDecl *ND) const; 315 bool IsNestedNameSpecifier(NamedDecl *ND) const [all...] |
CodeCompleteConsumer.cpp | 280 unsigned CodeCompletionResult::getPriorityFromDecl(NamedDecl *ND) { 281 if (!ND) 285 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); 288 if (ImplicitParamDecl *ImplicitParam = dyn_cast<ImplicitParamDecl>(ND)) 299 if (isa<EnumConstantDecl>(ND)) 301 if (isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND))
|
SemaTemplateVariadic.cpp | 452 getDepthAndIndex(NamedDecl *ND) { 453 if (TemplateTypeParmDecl *TTP = dyn_cast<TemplateTypeParmDecl>(ND)) 456 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) 459 TemplateTemplateParmDecl *TTP = cast<TemplateTemplateParmDecl>(ND); 489 NamedDecl *ND = i->first.get<NamedDecl *>(); 490 if (isa<ParmVarDecl>(ND)) 493 llvm::tie(Depth, Index) = getDepthAndIndex(ND); 495 Name = ND->getIdentifier(); 589 NamedDecl *ND = Unexpanded[I].first.get<NamedDecl *>(); 590 if (isa<ParmVarDecl>(ND)) { [all...] |
SemaLookup.cpp | [all...] |
SemaCXXScopeSpec.cpp | 360 if (NamedDecl *ND = Found.getAsSingle<NamedDecl>()) 361 return isa<NamespaceDecl>(ND) || isa<NamespaceAliasDecl>(ND); 498 if (NamedDecl *ND = Corrected.getCorrectionDecl()) { 499 Diag(ND->getLocation(), diag::note_previous_decl) << CorrectedQuotedStr; 500 Found.addDecl(ND); [all...] |
/external/clang/include/clang/AST/ |
DeclContextInternals.h | 73 void setOnlyValue(NamedDecl *ND) { 75 Data = ND; 78 assert(*(NamedDecl **)&Data == ND &&
|
DeclFriend.h | 104 if (NamedDecl *ND = getFriendDecl()) 105 return SourceRange(getFriendLoc(), ND->getLocEnd());
|
/external/clang/lib/Frontend/ |
ASTMerge.cpp | 63 if (NamedDecl *ND = dyn_cast<NamedDecl>(*D)) 64 if (IdentifierInfo *II = ND->getIdentifier())
|
FrontendAction.cpp | 43 if (const NamedDecl *ND = dyn_cast<NamedDecl>(D)) 44 llvm::outs() << " - " << ND->getNameAsString(); 66 if (const NamedDecl *ND = dyn_cast<NamedDecl>(D)) 67 if (NamesToCheck.find(ND->getNameAsString()) != NamesToCheck.end()) { 72 << ND->getNameAsString();
|
ASTUnit.cpp | 154 static unsigned getDeclShowContexts(NamedDecl *ND, 159 if (isa<UsingShadowDecl>(ND)) 160 ND = dyn_cast<NamedDecl>(ND->getUnderlyingDecl()); 161 if (!ND) 165 if (isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND) || 166 isa<ClassTemplateDecl>(ND) || isa<TemplateTemplateParmDecl>(ND)) { 168 if (LangOpts.CPlusPlus || !isa<TagDecl>(ND)) [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
AnalyzerStatsChecker.cpp | 82 const NamedDecl *ND = cast<NamedDecl>(D); 83 output << *ND;
|
LLVMConventionsChecker.cpp | 42 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); 43 if (!ND) 45 const IdentifierInfo *II = ND->getIdentifier(); 48 return isa<TranslationUnitDecl>(ND->getDeclContext());
|
ObjCSelfInitChecker.cpp | 61 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND); 309 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND) { 310 if (!ND) 313 const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(ND);
|
/external/clang/include/clang/Analysis/Support/ |
BlkExprDeclBitVector.h | 120 operator()(const NamedDecl *ND, const AnalysisDataTy& AD) { 121 return getBit(AD.getIdx(ND)); 124 bool operator()(const NamedDecl *ND, const AnalysisDataTy& AD) const { 125 return getBit(AD.getIdx(ND));
|
/frameworks/compile/slang/ |
slang_rs_context.cpp | 163 clang::NamedDecl *const ND = *I; 166 switch (ND->getKind()) { 169 ND)->getCanonicalDecl()->getUnderlyingType().getTypePtr(); 173 T = static_cast<const clang::RecordDecl*>(ND)->getTypeForDecl();
|
/external/clang/tools/libclang/ |
CIndexUSRs.cpp | 157 if (const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext())) 158 return ND->isAnonymousNamespace(); 796 if (const NamedDecl *ND = dyn_cast<NamedDecl>(D)) 797 switch (ND->getLinkage()) { 808 if (isa<TagDecl>(ND) || isa<TypedefDecl>(ND) || 809 isa<EnumConstantDecl>(ND) || isa<FieldDecl>(ND) || 810 isa<VarDecl>(ND) || isa<NamespaceDecl>(ND)) [all...] |