Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DRedeclarable.h213 decl_type *getFirstDecl() { return First; } in getFirstDecl() function
217 const decl_type *getFirstDecl() const { return First; } in getFirstDecl() function
224 return getFirstDecl()->getNextRedeclaration(); in getMostRecentDecl()
229 return getFirstDecl()->getNextRedeclaration(); in getMostRecentDecl()
317 decl_type *getFirstDecl() { in getFirstDecl() function
326 const decl_type *getFirstDecl() const { in getFirstDecl() function
334 bool isFirstDecl() const { return getFirstDecl() == this; } in isFirstDecl()
H A DDeclTemplate.h827 return getFirstDecl(); in getCanonicalDecl()
830 return getFirstDecl(); in getCanonicalDecl()
2188 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2198 auto *First = cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2220 cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2226 auto *First = cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
2963 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2969 auto *First = cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2991 cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
2997 auto *First = cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
[all …]
H A DDeclCXX.h3245 return getFirstDecl(); in getCanonicalDecl()
3248 return getFirstDecl(); in getCanonicalDecl()
3446 return getFirstDecl(); in getCanonicalDecl()
3449 return getFirstDecl(); in getCanonicalDecl()
3648 return cast<UsingDecl>(getFirstDecl()); in getCanonicalDecl()
3651 return cast<UsingDecl>(getFirstDecl()); in getCanonicalDecl()
3839 return cast<UsingEnumDecl>(getFirstDecl()); in getCanonicalDecl()
3842 return cast<UsingEnumDecl>(getFirstDecl()); in getCanonicalDecl()
3912 UsingPackDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3913 const UsingPackDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
[all …]
H A DDecl.h158 TranslationUnitDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
159 const TranslationUnitDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
655 return getFirstDecl()->AnonymousNamespace; in getAnonymousNamespace()
659 getFirstDecl()->AnonymousNamespace = D; in setAnonymousNamespace()
663 NamespaceDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
664 const NamespaceDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
3375 FieldDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3376 const FieldDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
3424 EnumConstantDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
3425 const EnumConstantDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
[all …]
H A DDeclObjC.h1912 ObjCInterfaceDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
1913 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/ByteCode/
H A DRecord.cpp41 auto It = FieldMap.find(FD->getFirstDecl()); in getField()
H A DProgram.cpp362 FD = FD->getFirstDecl(); in getOrCreateRecord()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExternalASTMerger.cpp358 if (T1->getFirstDecl() == T2->getFirstDecl()) in IsSameDC()
H A DComputeDependence.cpp589 !Var->getFirstDecl()->hasInit()) { in computeDependence()
590 const VarDecl *First = Var->getFirstDecl(); in computeDependence()
H A DDecl.cpp575 const T *First = D->getFirstDecl(); in isFirstInExternCContext()
2256 VarDecl *VarDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
2284 (getFirstDecl()->isOutOfLine() in isThisDeclarationADefinition()
2366 VarDecl *First = getFirstDecl(); in getDefinition()
2377 const VarDecl *First = getFirstDecl(); in hasDefinition()
3680 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
4829 TagDecl *TagDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
H A DDeclBase.cpp1489 return static_cast<TranslationUnitDecl *>(this)->getFirstDecl(); in getPrimaryContext()
1491 return static_cast<NamespaceDecl *>(this)->getFirstDecl(); in getPrimaryContext()
H A DDeclCXX.cpp3112 auto *First = cast<CXXDestructorDecl>(getFirstDecl()); in setOperatorDelete()
3208 Used = NS->getFirstDecl(); in Create()
3287 Namespace = NS->getFirstDecl(); in Create()
H A DTextNodeDumper.cpp38 const T *First = D->getFirstDecl(); in dumpPreviousDeclImpl()
2549 dumpDeclRef(D->getFirstDecl(), "original"); in VisitNamespaceDecl()
H A DASTContext.cpp7845 NNS->getAsNamespace()->getFirstDecl()); in getCanonicalNestedNameSpecifier()
7852 NNS->getAsNamespaceAlias()->getNamespace()->getFirstDecl()); in getCanonicalNestedNameSpecifier()
8672 !VD->getFirstDecl()->isOutOfLine() && VD->getFirstDecl()->hasInit(); in isMSStaticDataMemberInlineDefinition()
8681 auto *First = VD->getFirstDecl(); in getInlineVariableDefinitionKind()
13343 cast<CXXRecordDecl>(RD->getFirstDecl())); in getCopyConstructorForExceptionObject()
13349 cast<CXXRecordDecl>(RD->getFirstDecl()), in addCopyConstructorForExceptionObject()
13350 cast<CXXConstructorDecl>(CD->getFirstDecl())); in addCopyConstructorForExceptionObject()
H A DMicrosoftMangle.cpp636 FD = FD->getFirstDecl(); in mangleFunctionEncoding()
3003 ->getFirstDecl() in mangleFunctionType()
H A DJSONNodeDumper.cpp889 JOS.attribute("originalNamespace", createBareDeclRef(ND->getFirstDecl())); in VisitNamespaceDecl()
H A DRecordLayoutBuilder.cpp3496 assert(Method == Method->getFirstDecl() && in setNonKeyFunction()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterDecl.cpp622 D->getFirstDecl() == D->getMostRecentDecl() && in VisitTypedefDecl()
701 D->getFirstDecl() == D->getMostRecentDecl() && in VisitEnumDecl()
743 D->getFirstDecl() == D->getMostRecentDecl() && in VisitRecordDecl()
1355 !D->hasExtInfo() && D->getFirstDecl() == D->getMostRecentDecl() && in VisitVarDecl()
1621 D->getFirstDecl() == D->getMostRecentDecl() && !D->hasAttrs() && in VisitUsingShadowDecl()
1740 D->getFirstDecl() == D->getMostRecentDecl() && !D->isInvalidDecl() && in VisitCXXMethodDecl()
2229 T *First = D->getFirstDecl(); in VisitRedeclarable()
H A DASTWriter.cpp7710 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
7722 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
7734 if (!TD->getFirstDecl()->isFromASTFile()) in AddedCXXTemplateSpecialization()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp529 SemaRef.InstantiateFunctionDefinition(Loc, CD->getFirstDecl()); in isEmptyConstructor()
571 SemaRef.InstantiateFunctionDefinition(Loc, DD->getFirstDecl()); in isEmptyDestructor()
H A DSemaTemplateInstantiateDecl.cpp2333 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine()) in VisitClassTemplateDecl()
2416 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine()) in VisitVarTemplateDecl()
5928 FromVar = FromVar->getFirstDecl(); in BuildVarTemplateInstantiation()
6154 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer()
6199 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
H A DSemaDecl.cpp1913 const FunctionDecl *First = FD->getFirstDecl(); in MarkUnusedFileScopedDecl()
1919 const VarDecl *First = VD->getFirstDecl(); in MarkUnusedFileScopedDecl()
3340 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
3766 FunctionDecl *First = Old->getFirstDecl(); in MergeFunctionDecl()
4051 } else if (OldMethod->getFirstDecl()->isExplicitlyDefaulted() && !isFriend) { in MergeFunctionDecl()
4091 Diag(Old->getFirstDecl()->getLocation(), in MergeFunctionDecl()
8619 Prev = FD->getFirstDecl(); in checkGlobalOrExternCConflict()
8621 Prev = cast<VarDecl>(Prev)->getFirstDecl(); in checkGlobalOrExternCConflict()
14987 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext()); in FinalizeDeclaration()
H A DSemaCast.cpp2199 SourceLocation NameLoc = FD->getFirstDecl()->getNameInfo().getLoc(); in DiagnoseCallingConvCast()
H A DSemaExpr.cpp207 const FunctionDecl *First = Cur->getFirstDecl(); in MaybeSuggestAddingStaticToDecl()
18370 Constructor = cast<CXXConstructorDecl>(Constructor->getFirstDecl()); in MarkFunctionReferenced()
18387 Destructor = cast<CXXDestructorDecl>(Destructor->getFirstDecl()); in MarkFunctionReferenced()
18398 MethodDecl = cast<CXXMethodDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()
18408 cast<CXXConversionDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()

12