| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | Redeclarable.h | 216 decl_type *getFirstDecl() { return First; } in getFirstDecl() function 220 const decl_type *getFirstDecl() const { return First; } in getFirstDecl() function 227 return getFirstDecl()->getNextRedeclaration(); in getMostRecentDecl() 232 return getFirstDecl()->getNextRedeclaration(); in getMostRecentDecl() 320 decl_type *getFirstDecl() { in getFirstDecl() function 329 const decl_type *getFirstDecl() const { in getFirstDecl() function 337 bool isFirstDecl() const { return getFirstDecl() == this; } in isFirstDecl()
|
| H A D | DeclCXX.h | 3075 return getFirstDecl(); in getCanonicalDecl() 3078 return getFirstDecl(); in getCanonicalDecl() 3276 return getFirstDecl(); in getCanonicalDecl() 3279 return getFirstDecl(); in getCanonicalDecl() 3478 return cast<UsingDecl>(getFirstDecl()); in getCanonicalDecl() 3481 return cast<UsingDecl>(getFirstDecl()); in getCanonicalDecl() 3654 return cast<UsingEnumDecl>(getFirstDecl()); in getCanonicalDecl() 3821 return getFirstDecl(); in getCanonicalDecl() 3824 return getFirstDecl(); in getCanonicalDecl() 3910 return getFirstDecl(); in getCanonicalDecl() [all …]
|
| H A D | DeclTemplate.h | 875 return getFirstDecl(); in getCanonicalDecl() 878 return getFirstDecl(); in getCanonicalDecl() 2203 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl()); 2213 auto *First = cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl()); 2235 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl()); 3049 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl()); 3055 auto *First = cast<VarTemplatePartialSpecializationDecl>(getFirstDecl()); 3077 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl()); 3083 auto *First = cast<VarTemplatePartialSpecializationDecl>(getFirstDecl()); 3366 return getFirstDecl(); [all …]
|
| H A D | Decl.h | 3076 FieldDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() 3077 const FieldDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() 3117 EnumConstantDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() 3118 const EnumConstantDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() 3167 IndirectFieldDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() 3168 const IndirectFieldDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() 3290 TypedefNameDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() 3291 const TypedefNameDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() 4684 First = PrevDecl->getFirstDecl(); in setPreviousDecl()
|
| H A D | DeclObjC.h | 1893 ObjCInterfaceDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() 1894 const ObjCInterfaceDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() 2246 ObjCProtocolDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() 2247 const ObjCProtocolDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
|
| H A D | JSONNodeDumper.h | 173 const T *First = D->getFirstDecl(); in writePreviousDeclImpl()
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | LibASTImporter.rst | 110 auto *From = getFirstDecl<CXXRecordDecl>(Matcher, FromUnit); 208 Node *getFirstDecl(Matcher M, const std::unique_ptr<ASTUnit> &Unit) { 232 auto *From = getFirstDecl<CXXRecordDecl>(Matcher, FromUnit); 315 auto *From = getFirstDecl<ClassTemplateSpecializationDecl>(Matcher, FromUnit); 316 auto *To = getFirstDecl<ClassTemplateSpecializationDecl>(Matcher, ToUnit); 388 auto *From = getFirstDecl<FieldDecl>(Matcher, FromUnit); 401 auto *FromSpec = getFirstDecl<ClassTemplateSpecializationDecl>( 448 auto *From = getFirstDecl<CXXRecordDecl>(Matcher, FromUnit); 449 auto *To = getFirstDecl<CXXRecordDecl>(Matcher, ToUnit); 467 auto *ToYDef = getFirstDecl<CXXRecordDecl>(
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | TriviallyDestructibleCheck.cpp | 56 const auto *FirstDecl = cast<CXXMethodDecl>(MatchedDecl->getFirstDecl()); in check()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExternalASTMerger.cpp | 363 if (T1->getFirstDecl() == T2->getFirstDecl()) in IsSameDC()
|
| H A D | ComputeDependence.cpp | 541 !Var->getFirstDecl()->hasInit()) { in computeDependence() 542 const VarDecl *First = Var->getFirstDecl(); in computeDependence()
|
| H A D | Decl.cpp | 572 const T *First = D->getFirstDecl(); in isFirstInExternCContext() 2165 VarDecl *VarDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl() 2193 (getFirstDecl()->isOutOfLine() in isThisDeclarationADefinition() 2275 VarDecl *First = getFirstDecl(); in getDefinition() 2286 const VarDecl *First = getFirstDecl(); in hasDefinition() 3372 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl() 4394 TagDecl *TagDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
|
| H A D | DeclBase.cpp | 1257 return static_cast<TranslationUnitDecl *>(this)->getFirstDecl(); in getPrimaryContext()
|
| H A D | ASTContext.cpp | 7506 !VD->getFirstDecl()->isOutOfLine() && VD->getFirstDecl()->hasInit(); in isMSStaticDataMemberInlineDefinition() 7515 auto *First = VD->getFirstDecl(); in getInlineVariableDefinitionKind() 11906 cast<CXXRecordDecl>(RD->getFirstDecl())); in getCopyConstructorForExceptionObject() 11912 cast<CXXRecordDecl>(RD->getFirstDecl()), in addCopyConstructorForExceptionObject() 11913 cast<CXXConstructorDecl>(CD->getFirstDecl())); in addCopyConstructorForExceptionObject()
|
| H A D | TextNodeDumper.cpp | 35 const T *First = D->getFirstDecl(); in dumpPreviousDeclImpl()
|
| H A D | DeclCXX.cpp | 2773 auto *First = cast<CXXDestructorDecl>(getFirstDecl()); in setOperatorDelete()
|
| H A D | RecordLayoutBuilder.cpp | 3381 assert(Method == Method->getFirstDecl() && in setNonKeyFunction()
|
| H A D | MicrosoftMangle.cpp | 585 FD = FD->getFirstDecl(); in mangleFunctionEncoding()
|
| /llvm-project-15.0.7/clang/lib/Interpreter/ |
| H A D | IncrementalParser.cpp | 283 TranslationUnitDecl *FirstTU = MostRecentTU->getFirstDecl(); in CleanUpPTU()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaCUDA.cpp | 465 InstantiateFunctionDefinition(Loc, CD->getFirstDecl()); in isEmptyCudaConstructor() 507 InstantiateFunctionDefinition(Loc, DD->getFirstDecl()); in isEmptyCudaDestructor()
|
| H A D | SemaTemplateInstantiateDecl.cpp | 1707 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine()) in VisitClassTemplateDecl() 1790 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine()) in VisitVarTemplateDecl() 5135 FromVar = FromVar->getFirstDecl(); in BuildVarTemplateInstantiation() 5365 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer() 5425 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
|
| H A D | SemaDecl.cpp | 1923 const FunctionDecl *First = FD->getFirstDecl(); in MarkUnusedFileScopedDecl() 1929 const VarDecl *First = VD->getFirstDecl(); in MarkUnusedFileScopedDecl() 3255 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes() 3694 FunctionDecl *First = Old->getFirstDecl(); in MergeFunctionDecl() 3939 } else if (OldMethod->getFirstDecl()->isExplicitlyDefaulted() && !isFriend) { in MergeFunctionDecl() 3966 Diag(Old->getFirstDecl()->getLocation(), in MergeFunctionDecl() 8277 Prev = FD->getFirstDecl(); in checkGlobalOrExternCConflict() 8279 Prev = cast<VarDecl>(Prev)->getFirstDecl(); in checkGlobalOrExternCConflict() 13927 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext()); in FinalizeDeclaration()
|
| H A D | SemaCast.cpp | 2111 SourceLocation NameLoc = FD->getFirstDecl()->getNameInfo().getLoc(); in DiagnoseCallingConvCast()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | ArgumentCommentCheck.cpp | 271 Callee = Callee->getFirstDecl(); in checkCallArgs()
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTWriterDecl.cpp | 393 D->getFirstDecl() == D->getMostRecentDecl() && in VisitTypedefDecl() 461 D->getFirstDecl() == D->getMostRecentDecl() && in VisitEnumDecl() 498 D->getFirstDecl() == D->getMostRecentDecl() && in VisitRecordDecl() 1078 D->getFirstDecl() == D->getMostRecentDecl() && in VisitVarDecl() 1407 D->getFirstDecl() == D->getMostRecentDecl() && in VisitCXXMethodDecl() 1810 T *First = D->getFirstDecl(); in VisitRedeclarable()
|
| H A D | ASTWriter.cpp | 6143 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization() 6155 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization() 6167 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
|