Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DTriviallyDestructibleCheck.cpp56 const auto *FirstDecl = cast<CXXMethodDecl>(MatchedDecl->getFirstDecl()); in check() local
58 FirstDecl->getEndLoc(), SM, getLangOpts()); in check()
67 diag(FirstDecl->getLocation(), in check()
70 << FirstDecl->getParent() in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DIsolateDeclarationCheck.cpp127 const auto *FirstDecl = dyn_cast<VarDecl>(*DS->decl_begin()); in declRanges() local
129 if (FirstDecl == nullptr) in declRanges()
134 if (typeIsMemberPointer(FirstDecl->getType().IgnoreParens().getTypePtr())) in declRanges()
142 FirstDecl->getLocation(), in declRanges()
143 countIndirections(FirstDecl->getType().IgnoreParens().getTypePtr()), SM, in declRanges()
150 if (FirstDecl->getType()->isFunctionPointerType()) in declRanges()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseAutoCheck.cpp341 const auto *FirstDecl = dyn_cast<VarDecl>(*D->decl_begin()); in replaceExpr() local
343 if (!FirstDecl) in replaceExpr()
346 const QualType FirstDeclType = FirstDecl->getType().getCanonicalType(); in replaceExpr()
388 TypeLoc Loc = FirstDecl->getTypeSourceInfo()->getTypeLoc(); in replaceExpr()
404 FirstDecl->getASTContext())) < in replaceExpr()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclBase.cpp1395 ExternalLast->NextInContextAndBits.setPointer(FirstDecl); in LoadLexicalDeclsFromExternalStorage()
1396 FirstDecl = ExternalFirst; in LoadLexicalDeclsFromExternalStorage()
1436 return decl_iterator(FirstDecl); in decls_begin()
1443 return !FirstDecl; in decls_empty()
1503 if (D == FirstDecl) { in removeDecl()
1505 FirstDecl = LastDecl = nullptr; in removeDecl()
1507 FirstDecl = D->NextInContextAndBits.getPointer(); in removeDecl()
1509 for (Decl *I = FirstDecl; true; I = I->NextInContextAndBits.getPointer()) { in removeDecl()
1557 if (FirstDecl) { in addHiddenDecl()
1561 FirstDecl = LastDecl = D; in addHiddenDecl()
[all …]
H A DDecl.cpp4707 return field_iterator(decl_iterator(FirstDecl)); in field_begin()
4732 std::tie(FirstDecl, LastDecl) = DeclContext::BuildDeclChain(Decls, false); in reorderDecls()
4759 std::tie(FirstDecl, LastDecl) = BuildDeclChain(Decls, in LoadFieldsFromExternalStorage()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLoopRotationUtils.cpp525 auto *FirstDecl = in rotateLoop() local
528 cloneAndAdaptNoAliasScopes(NoAliasDeclScopes, FirstDecl, LastInst, in rotateLoop()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReader.cpp9898 Decl *FirstDecl = nullptr, *SecondDecl = nullptr; in diagnoseOdrViolations() member
9960 DR.FirstDecl ? DifferenceSelector(DR.FirstDecl) : EndOfClass; in diagnoseOdrViolations()
9979 if (DR.FirstDecl) { in diagnoseOdrViolations()
9981 << FirstRecord << DR.FirstDecl->getSourceRange(); in diagnoseOdrViolations()
10207 bool hasFirstArg = hasDefaultArg(FirstDecl); in diagnoseOdrViolations()
10228 Diag(FirstDecl->getLocation(), in diagnoseOdrViolations()
10255 const Decl *FirstDecl = DR.FirstDecl; in diagnoseOdrViolations() local
10388 cast<FieldDecl>(FirstDecl), in diagnoseOdrViolations()
10740 cast<FunctionTemplateDecl>(FirstDecl); in diagnoseOdrViolations()
11005 Diag(FirstDecl->getLocation(), in diagnoseOdrViolations()
[all …]
H A DASTReaderDecl.cpp2611 auto *FirstDecl = cast_or_null<T>(Reader.GetDecl(FirstDeclID)); in VisitRedeclarable() local
2612 if (FirstDecl != D) { in VisitRedeclarable()
2617 D->RedeclLink = Redeclarable<T>::PreviousDeclLink(FirstDecl); in VisitRedeclarable()
2618 D->First = FirstDecl->getCanonicalDecl(); in VisitRedeclarable()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclBase.h1878 mutable Decl *FirstDecl = nullptr;
2170 decl_iterator noload_decls_begin() const { return decl_iterator(FirstDecl); }
2501 return D && (D->NextInContextAndBits.getPointer() || D == FirstDecl ||
/llvm-project-15.0.7/clang/lib/Parse/
H A DParser.cpp590 ImportState = Sema::ModuleImportState::FirstDecl; in ParseFirstTopLevelDecl()
741 if (ImportState == Sema::ModuleImportState::FirstDecl) in ParseTopLevelDecl()
2366 if (ImportState != Sema::ModuleImportState::FirstDecl) { in ParseModuleDecl()
2498 case Sema::ModuleImportState::FirstDecl: in ParseModuleImport()
H A DParseDecl.cpp2181 Decl *FirstDecl = ParseDeclarationAfterDeclaratorAndAttributes( in ParseDeclGroup() local
2184 ParseLexedAttributeList(LateParsedAttrs, FirstDecl, true, false); in ParseDeclGroup()
2185 D.complete(FirstDecl); in ParseDeclGroup()
2186 if (FirstDecl) in ParseDeclGroup()
2187 DeclsInGroup.push_back(FirstDecl); in ParseDeclGroup()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaModule.cpp154 bool IsFirstDecl = ImportState == ModuleImportState::FirstDecl; in ActOnModuleDecl()
H A DSemaDecl.cpp973 NamedDecl *FirstDecl = Corrected.getFoundDecl(); in ClassifyName() local
1009 if (FirstDecl) in ClassifyName()
1010 Result.addDecl(FirstDecl); in ClassifyName()
1163 NamedDecl *FirstDecl = (*Result.begin())->getUnderlyingDecl(); in ClassifyName() local
1164 if (TypeDecl *Type = dyn_cast<TypeDecl>(FirstDecl)) { in ClassifyName()
1174 dyn_cast<ObjCCompatibleAliasDecl>(FirstDecl)) in ClassifyName()
1192 if (isa<ConceptDecl>(FirstDecl)) in ClassifyName()
1194 TemplateName(cast<TemplateDecl>(FirstDecl))); in ClassifyName()
1202 if (isa<TemplateDecl>(FirstDecl) && !isa<FunctionTemplateDecl>(FirstDecl) && in ClassifyName()
1203 !isa<VarTemplateDecl>(FirstDecl)) in ClassifyName()
[all …]
/llvm-project-15.0.7/clang/docs/
H A DInternalsManual.rst2388 list, the head is ``DeclContext::FirstDecl``) could be empty. However, member
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h3080 FirstDecl, ///< Parsing the first decl in a TU. enumerator