Home
last modified time | relevance | path

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

12

/freebsd/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.h836 return getFirstDecl(); in getCanonicalDecl()
839 return getFirstDecl(); in getCanonicalDecl()
2159 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2169 auto *First = cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2191 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2197 auto *First = cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2925 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2931 auto *First = cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2953 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2959 auto *First = cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
[all …]
H A DDeclCXX.h3182 return getFirstDecl(); in getCanonicalDecl()
3185 return getFirstDecl(); in getCanonicalDecl()
3383 return getFirstDecl(); in getCanonicalDecl()
3386 return getFirstDecl(); in getCanonicalDecl()
3585 return cast<UsingDecl>(getFirstDecl()); in getCanonicalDecl()
3588 return cast<UsingDecl>(getFirstDecl()); in getCanonicalDecl()
3776 return cast<UsingEnumDecl>(getFirstDecl()); in getCanonicalDecl()
3779 return cast<UsingEnumDecl>(getFirstDecl()); in getCanonicalDecl()
3850 UsingPackDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3851 const UsingPackDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
[all …]
H A DDecl.h631 return getFirstDecl()->AnonymousNamespace; in getAnonymousNamespace()
635 getFirstDecl()->AnonymousNamespace = D; in setAnonymousNamespace()
639 NamespaceDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
640 const NamespaceDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
3254 FieldDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3255 const FieldDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
3303 EnumConstantDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3304 const EnumConstantDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
3354 IndirectFieldDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3355 const IndirectFieldDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
[all …]
H A DDeclObjC.h1913 ObjCInterfaceDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
1914 const ObjCInterfaceDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
2294 ObjCProtocolDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
2295 const ObjCProtocolDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
H A DJSONNodeDumper.h173 const T *First = D->getFirstDecl(); in writePreviousDeclImpl()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExternalASTMerger.cpp360 if (T1->getFirstDecl() == T2->getFirstDecl()) in IsSameDC()
H A DComputeDependence.cpp587 !Var->getFirstDecl()->hasInit()) { in computeDependence()
588 const VarDecl *First = Var->getFirstDecl(); in computeDependence()
H A DDecl.cpp575 const T *First = D->getFirstDecl(); in isFirstInExternCContext()
2239 VarDecl *VarDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
2267 (getFirstDecl()->isOutOfLine() in isThisDeclarationADefinition()
2349 VarDecl *First = getFirstDecl(); in getDefinition()
2360 const VarDecl *First = getFirstDecl(); in hasDefinition()
3609 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
4718 TagDecl *TagDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
H A DDeclBase.cpp1443 return static_cast<TranslationUnitDecl *>(this)->getFirstDecl(); in getPrimaryContext()
1445 return static_cast<NamespaceDecl *>(this)->getFirstDecl(); in getPrimaryContext()
H A DDeclCXX.cpp2909 auto *First = cast<CXXDestructorDecl>(getFirstDecl()); in setOperatorDelete()
2983 Used = NS->getFirstDecl(); in Create()
3062 Namespace = NS->getFirstDecl(); in Create()
H A DTextNodeDumper.cpp37 const T *First = D->getFirstDecl(); in dumpPreviousDeclImpl()
2390 dumpDeclRef(D->getFirstDecl(), "original"); in VisitNamespaceDecl()
H A DASTContext.cpp7251 NNS->getAsNamespace()->getFirstDecl()); in getCanonicalNestedNameSpecifier()
7258 NNS->getAsNamespaceAlias()->getNamespace()->getFirstDecl()); in getCanonicalNestedNameSpecifier()
8074 !VD->getFirstDecl()->isOutOfLine() && VD->getFirstDecl()->hasInit(); in isMSStaticDataMemberInlineDefinition()
8083 auto *First = VD->getFirstDecl(); in getInlineVariableDefinitionKind()
12685 cast<CXXRecordDecl>(RD->getFirstDecl())); in getCopyConstructorForExceptionObject()
12691 cast<CXXRecordDecl>(RD->getFirstDecl()), in addCopyConstructorForExceptionObject()
12692 cast<CXXConstructorDecl>(CD->getFirstDecl())); in addCopyConstructorForExceptionObject()
H A DJSONNodeDumper.cpp887 JOS.attribute("originalNamespace", createBareDeclRef(ND->getFirstDecl())); in VisitNamespaceDecl()
H A DRecordLayoutBuilder.cpp3455 assert(Method == Method->getFirstDecl() && in setNonKeyFunction()
H A DMicrosoftMangle.cpp601 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/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterDecl.cpp469 D->getFirstDecl() == D->getMostRecentDecl() && in VisitTypedefDecl()
548 D->getFirstDecl() == D->getMostRecentDecl() && in VisitEnumDecl()
589 D->getFirstDecl() == D->getMostRecentDecl() && in VisitRecordDecl()
1192 !D->hasExtInfo() && D->getFirstDecl() == D->getMostRecentDecl() && in VisitVarDecl()
1446 D->getFirstDecl() == D->getMostRecentDecl() && !D->hasAttrs() && in VisitUsingShadowDecl()
1558 D->getFirstDecl() == D->getMostRecentDecl() && !D->isInvalidDecl() && in VisitCXXMethodDecl()
2033 T *First = D->getFirstDecl(); in VisitRedeclarable()
H A DASTWriter.cpp7038 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
7050 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
7062 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp514 SemaRef.InstantiateFunctionDefinition(Loc, CD->getFirstDecl()); in isEmptyConstructor()
556 SemaRef.InstantiateFunctionDefinition(Loc, DD->getFirstDecl()); in isEmptyDestructor()
H A DSemaTemplateInstantiateDecl.cpp1805 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine()) in VisitClassTemplateDecl()
1888 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine()) in VisitVarTemplateDecl()
5253 FromVar = FromVar->getFirstDecl(); in BuildVarTemplateInstantiation()
5477 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer()
5522 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
H A DSemaDecl.cpp1896 const FunctionDecl *First = FD->getFirstDecl(); in MarkUnusedFileScopedDecl()
1902 const VarDecl *First = VD->getFirstDecl(); in MarkUnusedFileScopedDecl()
3240 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
3697 FunctionDecl *First = Old->getFirstDecl(); in MergeFunctionDecl()
3975 } else if (OldMethod->getFirstDecl()->isExplicitlyDefaulted() && !isFriend) { in MergeFunctionDecl()
4015 Diag(Old->getFirstDecl()->getLocation(), in MergeFunctionDecl()
8420 Prev = FD->getFirstDecl(); in checkGlobalOrExternCConflict()
8422 Prev = cast<VarDecl>(Prev)->getFirstDecl(); in checkGlobalOrExternCConflict()
14599 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext()); in FinalizeDeclaration()
H A DSemaCast.cpp2167 SourceLocation NameLoc = FD->getFirstDecl()->getNameInfo().getLoc(); in DiagnoseCallingConvCast()
H A DSemaExpr.cpp205 const FunctionDecl *First = Cur->getFirstDecl(); in MaybeSuggestAddingStaticToDecl()
17936 Constructor = cast<CXXConstructorDecl>(Constructor->getFirstDecl()); in MarkFunctionReferenced()
17953 Destructor = cast<CXXDestructorDecl>(Destructor->getFirstDecl()); in MarkFunctionReferenced()
17964 MethodDecl = cast<CXXMethodDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()
17974 cast<CXXConversionDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()
H A DSemaLookup.cpp2328 NamespaceDecl *ND = I->getNominatedNamespace()->getFirstDecl(); in LookupQualifiedNameInUsingDirectives()

12