Home
last modified time | relevance | path

Searched refs:FirstDecl (Results 1 – 17 of 17) sorted by relevance

/llvm-project/clang/lib/AST/
H A DODRDiagsEmitter.cpp638 DR.FirstDecl = FirstIt == FirstHashes.end() ? nullptr : FirstIt->first; in FindTypeDiffs()
642 DR.FirstDecl ? DifferenceSelector(DR.FirstDecl) : EndOfClass; in FindTypeDiffs()
657 if (DR.FirstDecl) { in diagnoseSubMismatchUnexpected()
658 Diag(DR.FirstDecl->getLocation(), diag::note_first_module_difference) in diagnoseSubMismatchUnexpected()
659 << FirstRecord << DR.FirstDecl->getSourceRange(); in diagnoseSubMismatchUnexpected()
694 GetMismatchedDeclLoc(FirstRecord, DR.FirstDiffType, DR.FirstDecl); in diagnoseSubMismatchDifferentDeclKinds()
834 const NamedDecl *FirstDecl = std::get<0>(Pair); in diagnoseMismatch() local
836 if (computeODRHash(FirstDecl) == computeODRHash(SecondDecl)) in diagnoseMismatch()
839 assert(FirstDecl->getKind() == SecondDecl->getKind() && in diagnoseMismatch()
859 bool hasFirstArg = hasDefaultArg(FirstDecl); in diagnoseMismatch()
[all …]
H A DDeclBase.cpp1598 ExternalLast->NextInContextAndBits.setPointer(FirstDecl); in SetExternalVisibleDeclsForName()
1599 FirstDecl = ExternalFirst; in SetExternalVisibleDeclsForName()
1639 return decl_iterator(FirstDecl); in shouldBeHidden()
1646 return !FirstDecl; in shouldBeHidden()
1706 if (D == FirstDecl) { in removeDecl()
1708 FirstDecl = LastDecl = nullptr; in removeDecl()
1710 FirstDecl = D->NextInContextAndBits.getPointer(); in removeDecl()
1712 for (Decl *I = FirstDecl; true; I = I->NextInContextAndBits.getPointer()) { in removeDecl()
1760 if (FirstDecl) { in addDeclInternal()
1764 FirstDecl
[all...]
H A DDecl.cpp5118 return field_iterator(decl_iterator(FirstDecl)); in LoadFieldsFromExternalStorage()
5149 std::tie(FirstDecl, LastDecl) = DeclContext::BuildDeclChain(Decls, false); in mayInsertExtraPadding()
5179 ExternalLast->NextInContextAndBits.setPointer(FirstDecl); in findFirstNamedDataMember()
5180 FirstDecl = ExternalFirst; in findFirstNamedDataMember()
/llvm-project/clang-tools-extra/clang-tidy/performance/
H A DTriviallyDestructibleCheck.cpp54 const auto *FirstDecl = cast<CXXMethodDecl>(MatchedDecl->getFirstDecl()); in check() local
56 FirstDecl->getEndLoc(), SM, getLangOpts()); in check()
65 diag(FirstDecl->getLocation(), in check()
68 << FirstDecl->getParent() in check()
/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DIsolateDeclarationCheck.cpp126 const auto *FirstDecl = dyn_cast<VarDecl>(*DS->decl_begin()); in declRanges() local
128 if (FirstDecl == nullptr) in declRanges()
133 if (typeIsMemberPointer(FirstDecl->getType().IgnoreParens().getTypePtr())) in declRanges()
141 FirstDecl->getLocation(), in declRanges()
142 countIndirections(FirstDecl->getType().IgnoreParens().getTypePtr()), SM, in declRanges()
149 if (FirstDecl->getType()->isFunctionPointerType()) in declRanges()
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DUseAutoCheck.cpp360 const auto *FirstDecl = dyn_cast<VarDecl>(*D->decl_begin()); in replaceExpr() local
362 if (!FirstDecl) in replaceExpr()
365 const QualType FirstDeclType = FirstDecl->getType().getCanonicalType(); in replaceExpr()
366 TypeSourceInfo *TSI = FirstDecl->getTypeSourceInfo(); in replaceExpr()
421 FirstDecl->getASTContext())) < in replaceExpr()
436 ShouldReplenishVariableName ? FirstDecl->getQualifiedNameAsString() : ""; in replaceExpr()
/llvm-project/clang/include/clang/AST/
H A DODRDiagsEmitter.h122 const Decl *FirstDecl = nullptr, *SecondDecl = nullptr; member
H A DDeclBase.h2074 /// FirstDecl - The first declaration stored within this declaration
2076 mutable Decl *FirstDecl = nullptr;
2377 decl_iterator noload_decls_begin() const { return decl_iterator(FirstDecl); }
2708 return D && (D->NextInContextAndBits.getPointer() || D == FirstDecl ||
/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopRotationUtils.cpp769 auto *FirstDecl = in rotateLoop() local
772 cloneAndAdaptNoAliasScopes(NoAliasDeclScopes, FirstDecl, LastInst, in rotateLoop()
/llvm-project/clang/lib/Parse/
H A DParser.cpp607 ImportState = Sema::ModuleImportState::FirstDecl; in ParseFirstTopLevelDecl()
762 if (ImportState == Sema::ModuleImportState::FirstDecl) in ParseTopLevelDecl()
2485 if (ImportState != Sema::ModuleImportState::FirstDecl) { in ParseModuleDecl()
2621 case Sema::ModuleImportState::FirstDecl: in ParseModuleImport()
H A DParseDecl.cpp2550 Decl *FirstDecl = in ParseDeclGroup()
2553 ParseLexedAttributeList(LateParsedAttrs, FirstDecl, true, false); in ParseDeclGroup()
2554 D.complete(FirstDecl); in ParseDeclGroup()
2555 if (FirstDecl) in ParseDeclGroup()
2556 DeclsInGroup.push_back(FirstDecl); in ParseDeclGroup()
2507 Decl *FirstDecl = ParseDeclGroup() local
/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp974 NamedDecl *FirstDecl = Corrected.getFoundDecl(); in ClassifyName()
1010 if (FirstDecl) in ClassifyName()
1011 Result.addDecl(FirstDecl); in ClassifyName()
1152 NamedDecl *FirstDecl = (*Result.begin())->getUnderlyingDecl(); in ClassifyName()
1153 if (TypeDecl *Type = dyn_cast<TypeDecl>(FirstDecl)) { in ClassifyName()
1159 ObjCInterfaceDecl *Class = dyn_cast<ObjCInterfaceDecl>(FirstDecl); in ClassifyName()
1163 dyn_cast<ObjCCompatibleAliasDecl>(FirstDecl)) in ClassifyName()
1181 if (isa<ConceptDecl>(FirstDecl)) { in ClassifyName()
1186 TemplateName(cast<TemplateDecl>(FirstDecl))); in ClassifyName()
1189 if (auto *EmptyD = dyn_cast<UnresolvedUsingIfExistsDecl>(FirstDecl)) { in ClassifyName()
970 NamedDecl *FirstDecl = Corrected.getFoundDecl(); ClassifyName() local
1148 NamedDecl *FirstDecl = (*Result.begin())->getUnderlyingDecl(); ClassifyName() local
[all...]
H A DSemaModule.cpp264 bool IsFirstDecl = ImportState == ModuleImportState::FirstDecl; in ActOnModuleDecl()
/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp2836 auto *FirstDecl = cast_or_null<T>(Reader.GetDecl(FirstDeclID)); in VisitRedeclarable()
2837 if (FirstDecl != D) { in VisitRedeclarable()
2842 D->RedeclLink = Redeclarable<T>::PreviousDeclLink(FirstDecl);
2843 D->First = FirstDecl->getCanonicalDecl();
2821 auto *FirstDecl = cast_or_null<T>(Reader.GetDecl(FirstDeclID)); VisitRedeclarable() local
H A DASTReader.cpp1881 const unaligned_decl_id_t *FirstDecl = F->FileSortedDecls + Record[6]; in ReadMacroRecord()
1884 FileDeclsInfo(F, llvm::ArrayRef(FirstDecl, NumFileDecls)); in ReadMacroRecord()
1702 const unaligned_decl_id_t *FirstDecl = F->FileSortedDecls + Record[6]; ReadSLocEntry() local
/llvm-project/clang/include/clang/Sema/
H A DSema.h9630 FirstDecl, ///< Parsing the first decl in a TU.
9623 FirstDecl, ///< Parsing the first decl in a TU. global() enumerator
/llvm-project/clang/docs/
H A DInternalsManual.rst2471 list, the head is ``DeclContext::FirstDecl``) could be empty. However, member