Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/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 DDeclCXX.h3075 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 DDeclTemplate.h875 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 DDecl.h3076 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 DDeclObjC.h1893 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 DJSONNodeDumper.h173 const T *First = D->getFirstDecl(); in writePreviousDeclImpl()
/llvm-project-15.0.7/clang/docs/
H A DLibASTImporter.rst110 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 DTriviallyDestructibleCheck.cpp56 const auto *FirstDecl = cast<CXXMethodDecl>(MatchedDecl->getFirstDecl()); in check()
/llvm-project-15.0.7/clang/lib/AST/
H A DExternalASTMerger.cpp363 if (T1->getFirstDecl() == T2->getFirstDecl()) in IsSameDC()
H A DComputeDependence.cpp541 !Var->getFirstDecl()->hasInit()) { in computeDependence()
542 const VarDecl *First = Var->getFirstDecl(); in computeDependence()
H A DDecl.cpp572 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 DDeclBase.cpp1257 return static_cast<TranslationUnitDecl *>(this)->getFirstDecl(); in getPrimaryContext()
H A DASTContext.cpp7506 !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 DTextNodeDumper.cpp35 const T *First = D->getFirstDecl(); in dumpPreviousDeclImpl()
H A DDeclCXX.cpp2773 auto *First = cast<CXXDestructorDecl>(getFirstDecl()); in setOperatorDelete()
H A DRecordLayoutBuilder.cpp3381 assert(Method == Method->getFirstDecl() && in setNonKeyFunction()
H A DMicrosoftMangle.cpp585 FD = FD->getFirstDecl(); in mangleFunctionEncoding()
/llvm-project-15.0.7/clang/lib/Interpreter/
H A DIncrementalParser.cpp283 TranslationUnitDecl *FirstTU = MostRecentTU->getFirstDecl(); in CleanUpPTU()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCUDA.cpp465 InstantiateFunctionDefinition(Loc, CD->getFirstDecl()); in isEmptyCudaConstructor()
507 InstantiateFunctionDefinition(Loc, DD->getFirstDecl()); in isEmptyCudaDestructor()
H A DSemaTemplateInstantiateDecl.cpp1707 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 DSemaDecl.cpp1923 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 DSemaCast.cpp2111 SourceLocation NameLoc = FD->getFirstDecl()->getNameInfo().getLoc(); in DiagnoseCallingConvCast()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DArgumentCommentCheck.cpp271 Callee = Callee->getFirstDecl(); in checkCallArgs()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTWriterDecl.cpp393 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 DASTWriter.cpp6143 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
6155 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
6167 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()

12