Home
last modified time | relevance | path

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

12

/freebsd-13.1/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()
319 decl_type *getFirstDecl() { in getFirstDecl() function
328 const decl_type *getFirstDecl() const { in getFirstDecl() function
336 bool isFirstDecl() const { return getFirstDecl() == this; } in isFirstDecl()
H A DDeclTemplate.h861 return getFirstDecl(); in getCanonicalDecl()
864 return getFirstDecl(); in getCanonicalDecl()
2173 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2205 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
3018 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
3024 auto *First = cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
3046 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
3259 ConceptDecl *getCanonicalDecl() override { return getFirstDecl(); }
3260 const ConceptDecl *getCanonicalDecl() const { return getFirstDecl(); }
3329 return getFirstDecl();
[all …]
H A DDeclCXX.h3041 return getFirstDecl(); in getCanonicalDecl()
3044 return getFirstDecl(); in getCanonicalDecl()
3242 return getFirstDecl(); in getCanonicalDecl()
3245 return getFirstDecl(); in getCanonicalDecl()
3444 return cast<UsingDecl>(getFirstDecl()); in getCanonicalDecl()
3447 return cast<UsingDecl>(getFirstDecl()); in getCanonicalDecl()
3620 return cast<UsingEnumDecl>(getFirstDecl()); in getCanonicalDecl()
3787 return getFirstDecl(); in getCanonicalDecl()
3790 return getFirstDecl(); in getCanonicalDecl()
3876 return getFirstDecl(); in getCanonicalDecl()
[all …]
H A DDecl.h3025 FieldDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3026 const FieldDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
3066 EnumConstantDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3067 const EnumConstantDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
3116 IndirectFieldDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3117 const IndirectFieldDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
3239 TypedefNameDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3240 const TypedefNameDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
4595 First = PrevDecl->getFirstDecl(); in setPreviousDecl()
H A DDeclObjC.h1891 ObjCInterfaceDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
1892 const ObjCInterfaceDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
2234 ObjCProtocolDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
2235 const ObjCProtocolDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
H A DJSONNodeDumper.h173 const T *First = D->getFirstDecl(); in writePreviousDeclImpl()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DExternalASTMerger.cpp363 if (T1->getFirstDecl() == T2->getFirstDecl()) in IsSameDC()
H A DDecl.cpp560 const T *First = D->getFirstDecl(); in isFirstInExternCContext()
2125 VarDecl *VarDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
2153 (getFirstDecl()->isOutOfLine() in isThisDeclarationADefinition()
2219 VarDecl *First = getFirstDecl(); in getActingDefinition()
2231 VarDecl *First = getFirstDecl(); in getDefinition()
2242 const VarDecl *First = getFirstDecl(); in hasDefinition()
3264 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
4267 TagDecl *TagDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
H A DComputeDependence.cpp515 !Var->getFirstDecl()->hasInit()) { in computeDependence()
516 const VarDecl *First = Var->getFirstDecl(); in computeDependence()
H A DDeclBase.cpp1234 return static_cast<TranslationUnitDecl *>(this)->getFirstDecl(); in getPrimaryContext()
H A DASTContext.cpp6878 !VD->getFirstDecl()->isOutOfLine() && VD->getFirstDecl()->hasInit(); in isMSStaticDataMemberInlineDefinition()
6887 auto *First = VD->getFirstDecl(); in getInlineVariableDefinitionKind()
11253 cast<CXXRecordDecl>(RD->getFirstDecl())); in getCopyConstructorForExceptionObject()
11259 cast<CXXRecordDecl>(RD->getFirstDecl()), in addCopyConstructorForExceptionObject()
11260 cast<CXXConstructorDecl>(CD->getFirstDecl())); in addCopyConstructorForExceptionObject()
H A DTextNodeDumper.cpp35 const T *First = D->getFirstDecl(); in dumpPreviousDeclImpl()
H A DDeclCXX.cpp2758 auto *First = cast<CXXDestructorDecl>(getFirstDecl()); in setOperatorDelete()
H A DRecordLayoutBuilder.cpp3341 assert(Method == Method->getFirstDecl() && in setNonKeyFunction()
H A DMicrosoftMangle.cpp568 FD = FD->getFirstDecl(); in mangleFunctionEncoding()
H A DASTImporter.cpp114 for (auto *R : D->getFirstDecl()->redecls()) { in getCanonicalForwardRedeclChain()
115 if (R != D->getFirstDecl()) in getCanonicalForwardRedeclChain()
118 Redecls.push_back(D->getFirstDecl()); in getCanonicalForwardRedeclChain()
/freebsd-13.1/contrib/llvm-project/clang/lib/Interpreter/
H A DIncrementalParser.cpp181 TranslationUnitDecl *FirstTU = MostRecentTU->getFirstDecl(); in ParseOrWrapTopLevelDecl()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp466 InstantiateFunctionDefinition(Loc, CD->getFirstDecl()); in isEmptyCudaConstructor()
508 InstantiateFunctionDefinition(Loc, DD->getFirstDecl()); in isEmptyCudaDestructor()
H A DSemaTemplateInstantiateDecl.cpp1653 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine()) in VisitClassTemplateDecl()
1736 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine()) in VisitVarTemplateDecl()
5116 FromVar = FromVar->getFirstDecl(); in BuildVarTemplateInstantiation()
5346 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer()
5406 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
H A DSemaDecl.cpp1756 const FunctionDecl *First = FD->getFirstDecl(); in MarkUnusedFileScopedDecl()
1762 const VarDecl *First = VD->getFirstDecl(); in MarkUnusedFileScopedDecl()
3048 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
3423 FunctionDecl *First = Old->getFirstDecl(); in MergeFunctionDecl()
3668 } else if (OldMethod->getFirstDecl()->isExplicitlyDefaulted() && !isFriend) { in MergeFunctionDecl()
3683 Diag(Old->getFirstDecl()->getLocation(), in MergeFunctionDecl()
3695 Diag(Old->getFirstDecl()->getLocation(), in MergeFunctionDecl()
7905 Prev = FD->getFirstDecl(); in checkGlobalOrExternCConflict()
7907 Prev = cast<VarDecl>(Prev)->getFirstDecl(); in checkGlobalOrExternCConflict()
13429 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext()); in FinalizeDeclaration()
H A DSemaCast.cpp2109 SourceLocation NameLoc = FD->getFirstDecl()->getNameInfo().getLoc(); in DiagnoseCallingConvCast()
H A DSemaExpr.cpp194 const FunctionDecl *First = Cur->getFirstDecl(); in MaybeSuggestAddingStaticToDecl()
17125 Constructor = cast<CXXConstructorDecl>(Constructor->getFirstDecl()); in MarkFunctionReferenced()
17142 Destructor = cast<CXXDestructorDecl>(Destructor->getFirstDecl()); in MarkFunctionReferenced()
17153 MethodDecl = cast<CXXMethodDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()
17163 cast<CXXConversionDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()
/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterDecl.cpp392 D->getFirstDecl() == D->getMostRecentDecl() && in VisitTypedefDecl()
460 D->getFirstDecl() == D->getMostRecentDecl() && in VisitEnumDecl()
497 D->getFirstDecl() == D->getMostRecentDecl() && in VisitRecordDecl()
1068 D->getFirstDecl() == D->getMostRecentDecl() && in VisitVarDecl()
1397 D->getFirstDecl() == D->getMostRecentDecl() && in VisitCXXMethodDecl()
1800 T *First = D->getFirstDecl(); in VisitRedeclarable()
H A DASTWriter.cpp5948 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
5960 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
5972 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
H A DASTReaderDecl.cpp1619 D->AnonOrFirstNamespaceAndInline.setPointer(D->getFirstDecl()); in VisitNamespaceDecl()

12