Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DODRDiagsEmitter.cpp636 DR.FirstDecl = FirstIt == FirstHashes.end() ? nullptr : FirstIt->first; in FindTypeDiffs()
640 DR.FirstDecl ? DifferenceSelector(DR.FirstDecl) : EndOfClass; in FindTypeDiffs()
655 if (DR.FirstDecl) { in diagnoseSubMismatchUnexpected()
656 Diag(DR.FirstDecl->getLocation(), diag::note_first_module_difference) in diagnoseSubMismatchUnexpected()
657 << FirstRecord << DR.FirstDecl->getSourceRange(); in diagnoseSubMismatchUnexpected()
692 GetMismatchedDeclLoc(FirstRecord, DR.FirstDiffType, DR.FirstDecl); in diagnoseSubMismatchDifferentDeclKinds()
832 const NamedDecl *FirstDecl = std::get<0>(Pair); in diagnoseMismatch() local
834 if (computeODRHash(FirstDecl) == computeODRHash(SecondDecl)) in diagnoseMismatch()
837 assert(FirstDecl->getKind() == SecondDecl->getKind() && in diagnoseMismatch()
857 bool hasFirstArg = hasDefaultArg(FirstDecl); in diagnoseMismatch()
[all …]
H A DDeclBase.cpp1627 ExternalLast->NextInContextAndBits.setPointer(FirstDecl); in LoadLexicalDeclsFromExternalStorage()
1628 FirstDecl = ExternalFirst; in LoadLexicalDeclsFromExternalStorage()
1668 return decl_iterator(FirstDecl); in decls_begin()
1675 return !FirstDecl; in decls_empty()
1735 if (D == FirstDecl) { in removeDecl()
1737 FirstDecl = LastDecl = nullptr; in removeDecl()
1739 FirstDecl = D->NextInContextAndBits.getPointer(); in removeDecl()
1741 for (Decl *I = FirstDecl; true; I = I->NextInContextAndBits.getPointer()) { in removeDecl()
1789 if (FirstDecl) { in addHiddenDecl()
1793 FirstDecl = LastDecl = D; in addHiddenDecl()
[all …]
H A DDecl.cpp5175 return field_iterator(decl_iterator(FirstDecl)); in field_begin()
5206 std::tie(FirstDecl, LastDecl) = DeclContext::BuildDeclChain(Decls, false); in reorderDecls()
5236 ExternalLast->NextInContextAndBits.setPointer(FirstDecl); in LoadFieldsFromExternalStorage()
5237 FirstDecl = ExternalFirst; in LoadFieldsFromExternalStorage()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DODRDiagsEmitter.h122 const Decl *FirstDecl = nullptr, *SecondDecl = nullptr; member
H A DDeclBase.h2083 mutable Decl *FirstDecl = nullptr;
2388 decl_iterator noload_decls_begin() const { return decl_iterator(FirstDecl); }
2719 return D && (D->NextInContextAndBits.getPointer() || D == FirstDecl ||
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopRotationUtils.cpp748 auto *FirstDecl = in rotateLoop() local
751 cloneAndAdaptNoAliasScopes(NoAliasDeclScopes, FirstDecl, LastInst, in rotateLoop()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParser.cpp600 ImportState = Sema::ModuleImportState::FirstDecl; in ParseFirstTopLevelDecl()
749 if (ImportState == Sema::ModuleImportState::FirstDecl) in ParseTopLevelDecl()
2364 if (ImportState != Sema::ModuleImportState::FirstDecl || in ParseModuleDecl()
2487 case Sema::ModuleImportState::FirstDecl: in ParseModuleImport()
H A DParseDecl.cpp2352 Decl *FirstDecl = in ParseDeclGroup() local
2355 ParseLexedAttributeList(LateParsedAttrs, FirstDecl, true, false); in ParseDeclGroup()
2356 D.complete(FirstDecl); in ParseDeclGroup()
2357 if (FirstDecl) in ParseDeclGroup()
2358 DeclsInGroup.push_back(FirstDecl); in ParseDeclGroup()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp987 NamedDecl *FirstDecl = Corrected.getFoundDecl(); in ClassifyName() local
1023 if (FirstDecl) in ClassifyName()
1024 Result.addDecl(FirstDecl); in ClassifyName()
1165 NamedDecl *FirstDecl = (*Result.begin())->getUnderlyingDecl(); in ClassifyName() local
1166 if (TypeDecl *Type = dyn_cast<TypeDecl>(FirstDecl)) { in ClassifyName()
1172 ObjCInterfaceDecl *Class = dyn_cast<ObjCInterfaceDecl>(FirstDecl); in ClassifyName()
1176 dyn_cast<ObjCCompatibleAliasDecl>(FirstDecl)) in ClassifyName()
1194 if (isa<ConceptDecl>(FirstDecl)) { in ClassifyName()
1199 TemplateName(cast<TemplateDecl>(FirstDecl))); in ClassifyName()
1202 if (auto *EmptyD = dyn_cast<UnresolvedUsingIfExistsDecl>(FirstDecl)) { in ClassifyName()
[all …]
H A DSemaModule.cpp271 bool IsFirstDecl = ImportState == ModuleImportState::FirstDecl; in ActOnModuleDecl()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp2835 auto *FirstDecl = cast_or_null<T>(Reader.GetDecl(FirstDeclID)); in VisitRedeclarable() local
2836 if (FirstDecl != D) { in VisitRedeclarable()
2841 D->RedeclLink = Redeclarable<T>::PreviousDeclLink(FirstDecl); in VisitRedeclarable()
2842 D->First = FirstDecl->getCanonicalDecl(); in VisitRedeclarable()
H A DASTReader.cpp1880 const unaligned_decl_id_t *FirstDecl = F->FileSortedDecls + Record[6]; in ReadSLocEntry() local
1883 FileDeclsInfo(F, llvm::ArrayRef(FirstDecl, NumFileDecls)); in ReadSLocEntry()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h9822 FirstDecl, ///< Parsing the first decl in a TU. enumerator