Home
last modified time | relevance | path

Searched refs:getFirstDecl (Results 1 – 25 of 29) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DRedeclarable.h216 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 DDeclTemplate.h856 return getFirstDecl(); in getCanonicalDecl()
859 return getFirstDecl(); in getCanonicalDecl()
2169 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2179 auto *First = cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2201 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2960 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2966 auto *First = cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2988 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2994 auto *First = cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
3314 return getFirstDecl();
[all …]
H A DDeclCXX.h3168 return getFirstDecl(); in getCanonicalDecl()
3171 return getFirstDecl(); in getCanonicalDecl()
3369 return getFirstDecl(); in getCanonicalDecl()
3372 return getFirstDecl(); in getCanonicalDecl()
3571 return cast<UsingDecl>(getFirstDecl()); in getCanonicalDecl()
3574 return cast<UsingDecl>(getFirstDecl()); in getCanonicalDecl()
3762 return cast<UsingEnumDecl>(getFirstDecl()); in getCanonicalDecl()
3929 return getFirstDecl(); in getCanonicalDecl()
3932 return getFirstDecl(); in getCanonicalDecl()
4018 return getFirstDecl(); in getCanonicalDecl()
[all …]
H A DDecl.h3241 FieldDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3242 const FieldDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
3290 EnumConstantDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3291 const EnumConstantDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
3340 IndirectFieldDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3341 const IndirectFieldDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
3463 TypedefNameDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3464 const TypedefNameDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
4957 First = PrevDecl->getFirstDecl(); in setPreviousDecl()
H A DDeclObjC.h1910 ObjCInterfaceDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
1911 const ObjCInterfaceDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
2291 ObjCProtocolDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
2292 const ObjCProtocolDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
H A DJSONNodeDumper.h173 const T *First = D->getFirstDecl(); in writePreviousDeclImpl()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DExternalASTMerger.cpp360 if (T1->getFirstDecl() == T2->getFirstDecl()) in IsSameDC()
H A DComputeDependence.cpp550 !Var->getFirstDecl()->hasInit()) { in computeDependence()
551 const VarDecl *First = Var->getFirstDecl(); in computeDependence()
H A DDecl.cpp575 const T *First = D->getFirstDecl(); in isFirstInExternCContext()
2254 VarDecl *VarDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
2282 (getFirstDecl()->isOutOfLine() in isThisDeclarationADefinition()
2364 VarDecl *First = getFirstDecl(); in getDefinition()
2375 const VarDecl *First = getFirstDecl(); in hasDefinition()
3559 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
4670 TagDecl *TagDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
H A DDeclBase.cpp1378 return static_cast<TranslationUnitDecl *>(this)->getFirstDecl(); in getPrimaryContext()
H A DASTContext.cpp7618 !VD->getFirstDecl()->isOutOfLine() && VD->getFirstDecl()->hasInit(); in isMSStaticDataMemberInlineDefinition()
7627 auto *First = VD->getFirstDecl(); in getInlineVariableDefinitionKind()
12193 cast<CXXRecordDecl>(RD->getFirstDecl())); in getCopyConstructorForExceptionObject()
12199 cast<CXXRecordDecl>(RD->getFirstDecl()), in addCopyConstructorForExceptionObject()
12200 cast<CXXConstructorDecl>(CD->getFirstDecl())); in addCopyConstructorForExceptionObject()
H A DTextNodeDumper.cpp36 const T *First = D->getFirstDecl(); in dumpPreviousDeclImpl()
H A DDeclCXX.cpp2856 auto *First = cast<CXXDestructorDecl>(getFirstDecl()); in setOperatorDelete()
H A DRecordLayoutBuilder.cpp3443 assert(Method == Method->getFirstDecl() && in setNonKeyFunction()
H A DMicrosoftMangle.cpp590 FD = FD->getFirstDecl(); in mangleFunctionEncoding()
H A DASTImporter.cpp112 for (auto *R : D->getFirstDecl()->redecls()) { in getCanonicalForwardRedeclChain()
113 if (R != D->getFirstDecl()) in getCanonicalForwardRedeclChain()
116 Redecls.push_back(D->getFirstDecl()); in getCanonicalForwardRedeclChain()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp499 InstantiateFunctionDefinition(Loc, CD->getFirstDecl()); in isEmptyCudaConstructor()
541 InstantiateFunctionDefinition(Loc, DD->getFirstDecl()); in isEmptyCudaDestructor()
H A DSemaTemplateInstantiateDecl.cpp1766 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine()) in VisitClassTemplateDecl()
1849 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine()) in VisitVarTemplateDecl()
5249 FromVar = FromVar->getFirstDecl(); in BuildVarTemplateInstantiation()
5478 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer()
5538 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
H A DSemaDecl.cpp1988 const FunctionDecl *First = FD->getFirstDecl(); in MarkUnusedFileScopedDecl()
1994 const VarDecl *First = VD->getFirstDecl(); in MarkUnusedFileScopedDecl()
3383 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
3851 FunctionDecl *First = Old->getFirstDecl(); in MergeFunctionDecl()
4084 } else if (OldMethod->getFirstDecl()->isExplicitlyDefaulted() && !isFriend) { in MergeFunctionDecl()
4124 Diag(Old->getFirstDecl()->getLocation(), in MergeFunctionDecl()
8610 Prev = FD->getFirstDecl(); in checkGlobalOrExternCConflict()
8612 Prev = cast<VarDecl>(Prev)->getFirstDecl(); in checkGlobalOrExternCConflict()
14794 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext()); in FinalizeDeclaration()
H A DSemaCast.cpp2158 SourceLocation NameLoc = FD->getFirstDecl()->getNameInfo().getLoc(); in DiagnoseCallingConvCast()
H A DSemaExpr.cpp202 const FunctionDecl *First = Cur->getFirstDecl(); in MaybeSuggestAddingStaticToDecl()
18955 Constructor = cast<CXXConstructorDecl>(Constructor->getFirstDecl()); in MarkFunctionReferenced()
18972 Destructor = cast<CXXDestructorDecl>(Destructor->getFirstDecl()); in MarkFunctionReferenced()
18983 MethodDecl = cast<CXXMethodDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()
18993 cast<CXXConversionDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()
/freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterDecl.cpp430 D->getFirstDecl() == D->getMostRecentDecl() && in VisitTypedefDecl()
513 D->getFirstDecl() == D->getMostRecentDecl() && in VisitEnumDecl()
554 D->getFirstDecl() == D->getMostRecentDecl() && in VisitRecordDecl()
1154 !D->hasExtInfo() && D->getFirstDecl() == D->getMostRecentDecl() && in VisitVarDecl()
1408 D->getFirstDecl() == D->getMostRecentDecl() && !D->hasAttrs() && in VisitUsingShadowDecl()
1514 D->getFirstDecl() == D->getMostRecentDecl() && !D->isInvalidDecl() && in VisitCXXMethodDecl()
1950 T *First = D->getFirstDecl(); in VisitRedeclarable()
H A DASTWriter.cpp6453 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
6465 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
6477 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
H A DASTReaderDecl.cpp1854 D->AnonOrFirstNamespaceAndFlags.setPointer(D->getFirstDecl()); in VisitNamespaceDecl()
/freebsd-14.2/contrib/llvm-project/clang/lib/Interpreter/
H A DIncrementalParser.cpp390 TranslationUnitDecl *FirstTU = MostRecentTU->getFirstDecl(); in CleanUpPTU()

12