Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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.cpp1425 ExternalLast->NextInContextAndBits.setPointer(FirstDecl); in LoadLexicalDeclsFromExternalStorage()
1426 FirstDecl = ExternalFirst; in LoadLexicalDeclsFromExternalStorage()
1466 return decl_iterator(FirstDecl); in decls_begin()
1473 return !FirstDecl; in decls_empty()
1533 if (D == FirstDecl) { in removeDecl()
1535 FirstDecl = LastDecl = nullptr; in removeDecl()
1537 FirstDecl = D->NextInContextAndBits.getPointer(); in removeDecl()
1539 for (Decl *I = FirstDecl; true; I = I->NextInContextAndBits.getPointer()) { in removeDecl()
1587 if (FirstDecl) { in addHiddenDecl()
1591 FirstDecl = LastDecl = D; in addHiddenDecl()
[all …]
H A DDecl.cpp4774 return field_iterator(decl_iterator(FirstDecl)); in field_begin()
4799 std::tie(FirstDecl, LastDecl) = DeclContext::BuildDeclChain(Decls, false); in reorderDecls()
4826 std::tie(FirstDecl, LastDecl) = BuildDeclChain(Decls, in LoadFieldsFromExternalStorage()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DODRDiagsEmitter.h122 const Decl *FirstDecl = nullptr, *SecondDecl = nullptr; member
H A DDeclBase.h1897 mutable Decl *FirstDecl = nullptr;
2193 decl_iterator noload_decls_begin() const { return decl_iterator(FirstDecl); }
2524 return D && (D->NextInContextAndBits.getPointer() || D == FirstDecl ||
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLoopRotationUtils.cpp531 auto *FirstDecl = in rotateLoop() local
534 cloneAndAdaptNoAliasScopes(NoAliasDeclScopes, FirstDecl, LastInst, in rotateLoop()
/openbsd-src/gnu/llvm/clang/lib/Parse/
H A DParser.cpp590 ImportState = Sema::ModuleImportState::FirstDecl; in ParseFirstTopLevelDecl()
747 if (ImportState == Sema::ModuleImportState::FirstDecl) in ParseTopLevelDecl()
2410 if (ImportState != Sema::ModuleImportState::FirstDecl) { in ParseModuleDecl()
2544 case Sema::ModuleImportState::FirstDecl: in ParseModuleImport()
H A DParseDecl.cpp2196 Decl *FirstDecl = ParseDeclarationAfterDeclaratorAndAttributes( in ParseDeclGroup() local
2199 ParseLexedAttributeList(LateParsedAttrs, FirstDecl, true, false); in ParseDeclGroup()
2200 D.complete(FirstDecl); in ParseDeclGroup()
2201 if (FirstDecl) in ParseDeclGroup()
2202 DeclsInGroup.push_back(FirstDecl); in ParseDeclGroup()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaModule.cpp185 bool IsFirstDecl = ImportState == ModuleImportState::FirstDecl; in ActOnModuleDecl()
H A DSemaDecl.cpp1010 NamedDecl *FirstDecl = Corrected.getFoundDecl(); in ClassifyName() local
1046 if (FirstDecl) in ClassifyName()
1047 Result.addDecl(FirstDecl); in ClassifyName()
1190 NamedDecl *FirstDecl = (*Result.begin())->getUnderlyingDecl(); in ClassifyName() local
1191 if (TypeDecl *Type = dyn_cast<TypeDecl>(FirstDecl)) { in ClassifyName()
1197 ObjCInterfaceDecl *Class = dyn_cast<ObjCInterfaceDecl>(FirstDecl); in ClassifyName()
1201 dyn_cast<ObjCCompatibleAliasDecl>(FirstDecl)) in ClassifyName()
1219 if (isa<ConceptDecl>(FirstDecl)) in ClassifyName()
1221 TemplateName(cast<TemplateDecl>(FirstDecl))); in ClassifyName()
1223 if (auto *EmptyD = dyn_cast<UnresolvedUsingIfExistsDecl>(FirstDecl)) { in ClassifyName()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Serialization/
H A DASTReaderDecl.cpp2699 auto *FirstDecl = cast_or_null<T>(Reader.GetDecl(FirstDeclID)); in VisitRedeclarable() local
2700 if (FirstDecl != D) { in VisitRedeclarable()
2705 D->RedeclLink = Redeclarable<T>::PreviousDeclLink(FirstDecl); in VisitRedeclarable()
2706 D->First = FirstDecl->getCanonicalDecl(); in VisitRedeclarable()
H A DASTReader.cpp1549 const DeclID *FirstDecl = F->FileSortedDecls + Record[6]; in ReadSLocEntry() local
1552 FileDeclsInfo(F, llvm::ArrayRef(FirstDecl, NumFileDecls)); in ReadSLocEntry()
/openbsd-src/gnu/llvm/clang/docs/
H A DInternalsManual.rst2391 list, the head is ``DeclContext::FirstDecl``) could be empty. However, member
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DSema.h3150 FirstDecl, ///< Parsing the first decl in a TU. enumerator