/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | TriviallyDestructibleCheck.cpp | 56 const auto *FirstDecl = cast<CXXMethodDecl>(MatchedDecl->getFirstDecl()); in check() local 58 FirstDecl->getEndLoc(), SM, getLangOpts()); in check() 67 diag(FirstDecl->getLocation(), in check() 70 << FirstDecl->getParent() in check()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | IsolateDeclarationCheck.cpp | 127 const auto *FirstDecl = dyn_cast<VarDecl>(*DS->decl_begin()); in declRanges() local 129 if (FirstDecl == nullptr) in declRanges() 134 if (typeIsMemberPointer(FirstDecl->getType().IgnoreParens().getTypePtr())) in declRanges() 142 FirstDecl->getLocation(), in declRanges() 143 countIndirections(FirstDecl->getType().IgnoreParens().getTypePtr()), SM, in declRanges() 150 if (FirstDecl->getType()->isFunctionPointerType()) in declRanges()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | UseAutoCheck.cpp | 342 const auto *FirstDecl = dyn_cast<VarDecl>(*D->decl_begin()); in replaceExpr() local 344 if (!FirstDecl) in replaceExpr() 347 const QualType FirstDeclType = FirstDecl->getType().getCanonicalType(); in replaceExpr() 389 TypeLoc Loc = FirstDecl->getTypeSourceInfo()->getTypeLoc(); in replaceExpr() 405 FirstDecl->getASTContext())) < in replaceExpr()
|
/external/clang/lib/AST/ |
D | DeclBase.cpp | 1135 ExternalLast->NextInContextAndBits.setPointer(FirstDecl); in LoadLexicalDeclsFromExternalStorage() 1136 FirstDecl = ExternalFirst; in LoadLexicalDeclsFromExternalStorage() 1209 return decl_iterator(FirstDecl); in decls_begin() 1216 return !FirstDecl; in decls_empty() 1231 if (D == FirstDecl) { in removeDecl() 1233 FirstDecl = LastDecl = nullptr; in removeDecl() 1235 FirstDecl = D->NextInContextAndBits.getPointer(); in removeDecl() 1237 for (Decl *I = FirstDecl; true; I = I->NextInContextAndBits.getPointer()) { in removeDecl() 1276 if (FirstDecl) { in addHiddenDecl() 1280 FirstDecl = LastDecl = D; in addHiddenDecl() [all …]
|
D | Decl.cpp | 3770 return field_iterator(decl_iterator(FirstDecl)); in field_begin() 3809 std::tie(FirstDecl, LastDecl) = BuildDeclChain(Decls, in LoadFieldsFromExternalStorage()
|
/external/llvm-project/clang/lib/AST/ |
D | DeclBase.cpp | 1368 ExternalLast->NextInContextAndBits.setPointer(FirstDecl); in LoadLexicalDeclsFromExternalStorage() 1369 FirstDecl = ExternalFirst; in LoadLexicalDeclsFromExternalStorage() 1441 return decl_iterator(FirstDecl); in decls_begin() 1448 return !FirstDecl; in decls_empty() 1508 if (D == FirstDecl) { in removeDecl() 1510 FirstDecl = LastDecl = nullptr; in removeDecl() 1512 FirstDecl = D->NextInContextAndBits.getPointer(); in removeDecl() 1514 for (Decl *I = FirstDecl; true; I = I->NextInContextAndBits.getPointer()) { in removeDecl() 1561 if (FirstDecl) { in addHiddenDecl() 1565 FirstDecl = LastDecl = D; in addHiddenDecl() [all …]
|
D | Decl.cpp | 4542 return field_iterator(decl_iterator(FirstDecl)); in field_begin() 4581 std::tie(FirstDecl, LastDecl) = BuildDeclChain(Decls, in LoadFieldsFromExternalStorage()
|
/external/clang/include/clang/AST/ |
D | DeclBase.h | 1179 mutable Decl *FirstDecl; 1203 LookupPtr(nullptr), FirstDecl(nullptr), LastDecl(nullptr) {} in DeclContext() 1464 decl_iterator noload_decls_begin() const { return decl_iterator(FirstDecl); } in noload_decls_begin() 1779 return D && (D->NextInContextAndBits.getPointer() || D == FirstDecl || in isDeclInLexicalTraversal()
|
/external/llvm-project/clang/lib/Serialization/ |
D | ASTReader.cpp | 1529 const DeclID *FirstDecl = F->FileSortedDecls + Record[6]; in ReadSLocEntry() local 1531 FileDeclIDs[FID] = FileDeclsInfo(F, llvm::makeArrayRef(FirstDecl, in ReadSLocEntry() 10031 Decl *FirstDecl = nullptr, *SecondDecl = nullptr; in diagnoseOdrViolations() member 10051 DR.FirstDecl = FirstIt == FirstHashes.end() ? nullptr : FirstIt->first; in diagnoseOdrViolations() 10056 DR.FirstDecl ? DifferenceSelector(DR.FirstDecl) : EndOfClass; in diagnoseOdrViolations() 10075 if (DR.FirstDecl) { in diagnoseOdrViolations() 10076 Diag(DR.FirstDecl->getLocation(), diag::note_first_module_difference) in diagnoseOdrViolations() 10077 << FirstRecord << DR.FirstDecl->getSourceRange(); in diagnoseOdrViolations() 10099 FirstLoc = DR.FirstDecl->getLocation(); in diagnoseOdrViolations() 10100 FirstRange = DR.FirstDecl->getSourceRange(); in diagnoseOdrViolations() [all …]
|
D | ASTReaderDecl.cpp | 2483 auto *FirstDecl = cast_or_null<T>(Reader.GetDecl(FirstDeclID)); in VisitRedeclarable() local 2484 if (FirstDecl != D) { in VisitRedeclarable() 2489 D->RedeclLink = Redeclarable<T>::PreviousDeclLink(FirstDecl); in VisitRedeclarable() 2490 D->First = FirstDecl->getCanonicalDecl(); in VisitRedeclarable()
|
/external/llvm-project/clang/include/clang/AST/ |
D | DeclBase.h | 1789 mutable Decl *FirstDecl = nullptr; variable 2075 decl_iterator noload_decls_begin() const { return decl_iterator(FirstDecl); } in noload_decls_begin() 2406 return D && (D->NextInContextAndBits.getPointer() || D == FirstDecl || in isDeclInLexicalTraversal()
|
/external/clang/lib/Parse/ |
D | ParseDecl.cpp | 1844 Decl *FirstDecl = ParseDeclarationAfterDeclaratorAndAttributes( in ParseDeclGroup() local 1847 ParseLexedAttributeList(LateParsedAttrs, FirstDecl, true, false); in ParseDeclGroup() 1848 D.complete(FirstDecl); in ParseDeclGroup() 1849 if (FirstDecl) in ParseDeclGroup() 1850 DeclsInGroup.push_back(FirstDecl); in ParseDeclGroup()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaDecl.cpp | 961 NamedDecl *FirstDecl = Corrected.getFoundDecl(); in ClassifyName() local 997 if (FirstDecl) in ClassifyName() 998 Result.addDecl(FirstDecl); in ClassifyName() 1130 NamedDecl *FirstDecl = (*Result.begin())->getUnderlyingDecl(); in ClassifyName() local 1131 if (TypeDecl *Type = dyn_cast<TypeDecl>(FirstDecl)) { in ClassifyName() 1140 ObjCInterfaceDecl *Class = dyn_cast<ObjCInterfaceDecl>(FirstDecl); in ClassifyName() 1144 dyn_cast<ObjCCompatibleAliasDecl>(FirstDecl)) in ClassifyName() 1162 if (isa<ConceptDecl>(FirstDecl)) in ClassifyName() 1164 TemplateName(cast<TemplateDecl>(FirstDecl))); in ClassifyName() 1167 if (isa<TemplateDecl>(FirstDecl) && !isa<FunctionTemplateDecl>(FirstDecl) && in ClassifyName() [all …]
|
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 860 NamedDecl *FirstDecl = Corrected.getFoundDecl(); in ClassifyName() local 896 if (FirstDecl) in ClassifyName() 897 Result.addDecl(FirstDecl); in ClassifyName() 1014 NamedDecl *FirstDecl = (*Result.begin())->getUnderlyingDecl(); in ClassifyName() local 1015 if (TypeDecl *Type = dyn_cast<TypeDecl>(FirstDecl)) { in ClassifyName() 1024 ObjCInterfaceDecl *Class = dyn_cast<ObjCInterfaceDecl>(FirstDecl); in ClassifyName() 1028 dyn_cast<ObjCCompatibleAliasDecl>(FirstDecl)) in ClassifyName() 1047 if (isa<TemplateDecl>(FirstDecl) && !isa<FunctionTemplateDecl>(FirstDecl)) in ClassifyName() 1049 TemplateName(cast<TemplateDecl>(FirstDecl))); in ClassifyName() 1056 FirstDecl->getUnderlyingDecl()->isFunctionOrFunctionTemplate())) && in ClassifyName() [all …]
|
/external/clang/lib/Serialization/ |
D | ASTReaderDecl.cpp | 2276 T *FirstDecl = cast_or_null<T>(Reader.GetDecl(FirstDeclID)); in VisitRedeclarable() local 2277 if (FirstDecl != D) { in VisitRedeclarable() 2282 D->RedeclLink = Redeclarable<T>::PreviousDeclLink(FirstDecl); in VisitRedeclarable() 2283 D->First = FirstDecl->getCanonicalDecl(); in VisitRedeclarable()
|
D | ASTReader.cpp | 1286 const DeclID *FirstDecl = F->FileSortedDecls + Record[6]; in ReadSLocEntry() local 1290 FileDeclIDs[FID] = FileDeclsInfo(F, llvm::makeArrayRef(FirstDecl, in ReadSLocEntry()
|
/external/llvm-project/clang/lib/Parse/ |
D | ParseDecl.cpp | 2038 Decl *FirstDecl = ParseDeclarationAfterDeclaratorAndAttributes( in ParseDeclGroup() local 2041 ParseLexedAttributeList(LateParsedAttrs, FirstDecl, true, false); in ParseDeclGroup() 2042 D.complete(FirstDecl); in ParseDeclGroup() 2043 if (FirstDecl) in ParseDeclGroup() 2044 DeclsInGroup.push_back(FirstDecl); in ParseDeclGroup()
|
/external/llvm-project/clang/docs/ |
D | InternalsManual.rst | 1827 list, the head is ``DeclContext::FirstDecl``) could be empty. However, member
|