Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp119 std::optional<SourceLocation> LocStart; member in __anon413222f00211::SourceMappingRegion
133 SourceMappingRegion(Counter Count, std::optional<SourceLocation> LocStart, in SourceMappingRegion() argument
136 : Count(Count), LocStart(LocStart), LocEnd(LocEnd), GapRegion(GapRegion), in SourceMappingRegion()
141 std::optional<SourceLocation> LocStart, in SourceMappingRegion() argument
145 LocStart(LocStart), LocEnd(LocEnd), GapRegion(GapRegion), in SourceMappingRegion()
149 std::optional<SourceLocation> LocStart, in SourceMappingRegion() argument
151 : MCDCParams(MCDCParams), LocStart(LocStart), LocEnd(LocEnd), in SourceMappingRegion()
163 bool hasStartLoc() const { return LocStart.has_value(); } in hasStartLoc()
165 void setStartLoc(SourceLocation Loc) { LocStart = Loc; } in setStartLoc()
168 assert(LocStart && "Region has no start location"); in getBeginLoc()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp730 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() local
747 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
949 SourceLocation LocStart = Method->getBeginLoc(); in RewriteMethodDeclaration() local
953 SM->getExpansionLineNumber(LocStart)) { in RewriteMethodDeclaration()
954 InsertText(LocStart, "#if 0\n"); in RewriteMethodDeclaration()
957 InsertText(LocStart, "// "); in RewriteMethodDeclaration()
969 SourceLocation LocStart = CatDecl->getBeginLoc(); in RewriteCategoryDecl() local
972 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
987 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl() local
991 ReplaceText(LocStart, 0, "// "); in RewriteProtocolDecl()
[all …]
H A DRewriteModernObjC.cpp805 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() local
822 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
1109 SourceLocation LocStart = Method->getBeginLoc(); in RewriteMethodDeclaration() local
1113 SM->getExpansionLineNumber(LocStart)) { in RewriteMethodDeclaration()
1114 InsertText(LocStart, "#if 0\n"); in RewriteMethodDeclaration()
1117 InsertText(LocStart, "// "); in RewriteMethodDeclaration()
1129 SourceLocation LocStart = CatDecl->getBeginLoc(); in RewriteCategoryDecl() local
1133 ReplaceText(LocStart, 1, "/** "); in RewriteCategoryDecl()
1137 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
1154 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl() local
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDecl.h531 SourceLocation LocStart; variable
535 : NamedDecl(Label, DC, IdentL, II), TheStmt(S), LocStart(StartL) {} in LabelDecl()
550 bool isGnuLocal() const { return LocStart != getLocation(); } in isGnuLocal()
551 void setLocStart(SourceLocation L) { LocStart = L; } in setLocStart()
554 return SourceRange(LocStart, getLocation()); in getSourceRange()
574 SourceLocation LocStart; variable
667 return SourceRange(LocStart, RBraceLoc); in getSourceRange()
670 SourceLocation getBeginLoc() const LLVM_READONLY { return LocStart; } in getBeginLoc()
672 void setLocStart(SourceLocation L) { LocStart = L; } in setLocStart()
3492 SourceLocation LocStart; variable
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateDeductionGuide.cpp200 TypeSourceInfo *TInfo, SourceLocation LocStart, in buildDeductionGuide() argument
215 SemaRef.Context, DC, LocStart, ES, Name, TInfo->getType(), TInfo, LocEnd,
H A DSemaExpr.cpp16126 Comps.push_back(OffsetOfNode(OC.LocStart, Exprs.size(), OC.LocEnd)); in BuildBuiltinOffsetOf()
16135 Comps.push_back(OffsetOfNode(OC.LocStart, OC.U.IdentInfo, OC.LocEnd)); in BuildBuiltinOffsetOf()
16141 if (RequireCompleteType(OC.LocStart, CurrentType, in BuildBuiltinOffsetOf()
16167 << SourceRange(Components[0].LocStart, OC.LocEnd) << CurrentType; in BuildBuiltinOffsetOf()
16173 LookupResult R(*this, OC.U.IdentInfo, OC.LocStart, LookupMemberName); in BuildBuiltinOffsetOf()
16188 << OC.U.IdentInfo << RD << SourceRange(OC.LocStart, OC.LocEnd); in BuildBuiltinOffsetOf()
16211 if (IsDerivedFrom(OC.LocStart, CurrentType, Context.getTypeDeclType(Parent), in BuildBuiltinOffsetOf()
16228 Comps.push_back(OffsetOfNode(OC.LocStart, in BuildBuiltinOffsetOf()
16232 Comps.push_back(OffsetOfNode(OC.LocStart, MemberDecl, OC.LocEnd)); in BuildBuiltinOffsetOf()
H A DSemaOpenMP.cpp698 void addTargetDirLocation(SourceLocation LocStart) { in addTargetDirLocation() argument
699 TargetLocations.push_back(LocStart); in addTargetDirLocation()
H A DTreeTransform.h13083 Comp.LocStart = ON.getSourceRange().getBegin(); in TransformOffsetOfExpr()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseExpr.cpp2392 Comps.back().LocStart = Comps.back().LocEnd = ConsumeToken(); in ParseBuiltinPrimaryExpression()
2400 Comps.back().LocStart = ConsumeToken(); in ParseBuiltinPrimaryExpression()
2418 Comps.back().LocStart = ST.getOpenLocation(); in ParseBuiltinPrimaryExpression()
H A DParseExprCXX.cpp855 SourceLocation LocStart = Tok.getLocation(); in ParseLambdaIntroducer() local
1082 InitCaptureType, SourceRange(LocStart, LocEnd)); in ParseLambdaIntroducer()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclCXX.cpp3232 redeclarable_base(C), LocStart(StartLoc) { in NamespaceDecl()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp1853 D->LocStart = readSourceLocation(); in VisitNamespaceDecl()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h7499 SourceLocation LocStart, LocEnd; member