Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/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 DDeclCXX.h3076 return getFirstDecl();
3079 return getFirstDecl();
3193 return getFirstDecl();
3196 return getFirstDecl();
3482 UsingDecl *getCanonicalDecl() override { return getFirstDecl(); }
3483 const UsingDecl *getCanonicalDecl() const { return getFirstDecl(); }
3553 UsingPackDecl *getCanonicalDecl() override { return getFirstDecl(); }
3646 return getFirstDecl();
3649 return getFirstDecl();
3735 return getFirstDecl();
[all …]
H A DDeclTemplate.h856 return getFirstDecl(); in getCanonicalDecl()
859 return getFirstDecl(); in getCanonicalDecl()
1986 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
1996 auto *First = cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2018 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2024 auto *First = cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2814 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2820 auto *First = cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2842 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2848 auto *First = cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
H A DDecl.h2774 FieldDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
2775 const FieldDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
2815 EnumConstantDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
2816 const EnumConstantDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
2865 IndirectFieldDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
2866 const IndirectFieldDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
2988 TypedefNameDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
2989 const TypedefNameDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
4299 First = PrevDecl->getFirstDecl(); in setPreviousDecl()
H A DDeclObjC.h1915 ObjCInterfaceDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
1916 const ObjCInterfaceDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
2250 ObjCProtocolDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
2251 const ObjCProtocolDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DExternalASTMerger.cpp278 if (T1->getFirstDecl() == T2->getFirstDecl()) in IsSameDC()
H A DDecl.cpp560 const T *First = D->getFirstDecl(); in isFirstInExternCContext()
2026 VarDecl *VarDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
2054 (getFirstDecl()->isOutOfLine() in isThisDeclarationADefinition()
2121 VarDecl *First = getFirstDecl(); in getActingDefinition()
2133 VarDecl *First = getFirstDecl(); in getDefinition()
2144 const VarDecl *First = getFirstDecl(); in hasDefinition()
2983 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
3005 dyn_cast<LinkageSpecDecl>(getFirstDecl()->getDeclContext()); in getBuiltinID()
3866 TagDecl *TagDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
H A DTextNodeDumper.cpp26 const T *First = D->getFirstDecl(); in dumpPreviousDeclImpl()
H A DASTContext.cpp6153 !VD->getFirstDecl()->isOutOfLine() && VD->getFirstDecl()->hasInit(); in isMSStaticDataMemberInlineDefinition()
6162 auto *First = VD->getFirstDecl(); in getInlineVariableDefinitionKind()
10088 cast<CXXRecordDecl>(RD->getFirstDecl())); in getCopyConstructorForExceptionObject()
10094 cast<CXXRecordDecl>(RD->getFirstDecl()), in addCopyConstructorForExceptionObject()
10095 cast<CXXConstructorDecl>(CD->getFirstDecl())); in addCopyConstructorForExceptionObject()
H A DDeclCXX.cpp2478 auto *First = cast<CXXDestructorDecl>(getFirstDecl()); in setOperatorDelete()
H A DRecordLayoutBuilder.cpp3079 assert(Method == Method->getFirstDecl() && in setNonKeyFunction()
H A DMicrosoftMangle.cpp498 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()
H A DExpr.cpp311 TypeSourceInfo *TInfo = Var->getFirstDecl()->getTypeSourceInfo(); in computeDeclRefDependence()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaCUDA.cpp396 InstantiateFunctionDefinition(Loc, CD->getFirstDecl()); in isEmptyCudaConstructor()
434 InstantiateFunctionDefinition(Loc, DD->getFirstDecl()); in isEmptyCudaDestructor()
H A DSemaTemplateInstantiateDecl.cpp1331 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine()) in VisitClassTemplateDecl()
1414 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine()) in VisitVarTemplateDecl()
4120 FromVar = FromVar->getFirstDecl(); in BuildVarTemplateInstantiation()
4311 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer()
4403 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
H A DSemaDecl.cpp1623 const FunctionDecl *First = FD->getFirstDecl(); in MarkUnusedFileScopedDecl()
1629 const VarDecl *First = VD->getFirstDecl(); in MarkUnusedFileScopedDecl()
2738 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
3119 FunctionDecl *First = Old->getFirstDecl(); in MergeFunctionDecl()
3353 } else if (OldMethod->getFirstDecl()->isExplicitlyDefaulted() && !isFriend) { in MergeFunctionDecl()
3368 Diag(Old->getFirstDecl()->getLocation(), in MergeFunctionDecl()
3380 Diag(Old->getFirstDecl()->getLocation(), in MergeFunctionDecl()
7235 Prev = FD->getFirstDecl(); in checkGlobalOrExternCConflict()
7237 Prev = cast<VarDecl>(Prev)->getFirstDecl(); in checkGlobalOrExternCConflict()
12103 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext()); in FinalizeDeclaration()
H A DSemaCast.cpp1897 SourceLocation NameLoc = FD->getFirstDecl()->getNameInfo().getLoc(); in DiagnoseCallingConvCast()
H A DSemaExpr.cpp190 const FunctionDecl *First = Cur->getFirstDecl(); in MaybeSuggestAddingStaticToDecl()
14691 Constructor = cast<CXXConstructorDecl>(Constructor->getFirstDecl()); in MarkFunctionReferenced()
14707 Destructor = cast<CXXDestructorDecl>(Destructor->getFirstDecl()); in MarkFunctionReferenced()
14718 MethodDecl = cast<CXXMethodDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()
14728 cast<CXXConversionDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()
H A DSemaTemplate.cpp8166 cast<FunctionTemplateDecl>(FunTmpl->getFirstDecl()), in CheckFunctionTemplateSpecialization()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTWriterDecl.cpp384 D->getFirstDecl() == D->getMostRecentDecl() && in VisitTypedefDecl()
452 D->getFirstDecl() == D->getMostRecentDecl() && in VisitEnumDecl()
486 D->getFirstDecl() == D->getMostRecentDecl() && in VisitRecordDecl()
1005 D->getFirstDecl() == D->getMostRecentDecl() && in VisitVarDecl()
1308 D->getFirstDecl() == D->getMostRecentDecl() && in VisitCXXMethodDecl()
1681 T *First = D->getFirstDecl(); in VisitRedeclarable()
H A DASTWriter.cpp6439 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
6451 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
6463 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
H A DASTReaderDecl.cpp1546 D->AnonOrFirstNamespaceAndInline.setPointer(D->getFirstDecl()); in VisitNamespaceDecl()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCodeGenModule.cpp3415 const SomeDecl *First = D->getFirstDecl(); in MaybeHandleStaticInExternC()