Home
last modified time | relevance | path

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

/external/clang/lib/CodeGen/
DCoverageMappingGen.cpp40 Optional<SourceLocation> LocStart; member in __anonb1e50e330111::SourceMappingRegion
46 SourceMappingRegion(Counter Count, Optional<SourceLocation> LocStart, in SourceMappingRegion() argument
48 : Count(Count), LocStart(LocStart), LocEnd(LocEnd) {} in SourceMappingRegion()
54 bool hasStartLoc() const { return LocStart.hasValue(); } in hasStartLoc()
56 void setStartLoc(SourceLocation Loc) { LocStart = Loc; } in setStartLoc()
59 assert(LocStart && "Region has no start location"); in getStartLoc()
60 return *LocStart; in getStartLoc()
218 auto LocStart = I.getBegin(); in gatherSkippedRegions() local
220 assert(SM.isWrittenInSameFile(LocStart, LocEnd) && in gatherSkippedRegions()
223 auto CovFileID = getCoverageFileID(LocStart); in gatherSkippedRegions()
[all …]
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp731 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() local
748 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
947 SourceLocation LocStart = Method->getLocStart(); in RewriteMethodDeclaration() local
951 SM->getExpansionLineNumber(LocStart)) { in RewriteMethodDeclaration()
952 InsertText(LocStart, "#if 0\n"); in RewriteMethodDeclaration()
955 InsertText(LocStart, "// "); in RewriteMethodDeclaration()
967 SourceLocation LocStart = CatDecl->getLocStart(); in RewriteCategoryDecl() local
970 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
985 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl() local
989 ReplaceText(LocStart, 0, "// "); in RewriteProtocolDecl()
[all …]
DRewriteModernObjC.cpp812 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() local
829 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
1119 SourceLocation LocStart = Method->getLocStart(); in RewriteMethodDeclaration() local
1123 SM->getExpansionLineNumber(LocStart)) { in RewriteMethodDeclaration()
1124 InsertText(LocStart, "#if 0\n"); in RewriteMethodDeclaration()
1127 InsertText(LocStart, "// "); in RewriteMethodDeclaration()
1139 SourceLocation LocStart = CatDecl->getLocStart(); in RewriteCategoryDecl() local
1143 ReplaceText(LocStart, 1, "/** "); in RewriteCategoryDecl()
1147 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
1164 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl() local
[all …]
/external/clang/include/clang/AST/
DDecl.h362 SourceLocation LocStart; variable
369 LocStart(StartL) {} in LabelDecl()
382 bool isGnuLocal() const { return LocStart != getLocation(); } in isGnuLocal()
383 void setLocStart(SourceLocation L) { LocStart = L; } in setLocStart()
386 return SourceRange(LocStart, getLocation()); in getSourceRange()
406 SourceLocation LocStart; variable
505 return SourceRange(LocStart, RBraceLoc); in getSourceRange()
508 SourceLocation getLocStart() const LLVM_READONLY { return LocStart; } in getLocStart()
510 void setLocStart(SourceLocation L) { LocStart = L; } in setLocStart()
2560 SourceLocation LocStart; variable
[all …]
/external/clang/lib/Parse/
DParseExpr.cpp1954 Comps.back().LocStart = Comps.back().LocEnd = ConsumeToken(); in ParseBuiltinPrimaryExpression()
1962 Comps.back().LocStart = ConsumeToken(); in ParseBuiltinPrimaryExpression()
1981 Comps.back().LocStart = ST.getOpenLocation(); in ParseBuiltinPrimaryExpression()
/external/clang/lib/Sema/
DSemaExpr.cpp11193 << SourceRange(Components[1].LocStart, Components.back().LocEnd); in BuildBuiltinOffsetOf()
11226 Comps.push_back(OffsetOfNode(OC.LocStart, Exprs.size(), OC.LocEnd)); in BuildBuiltinOffsetOf()
11235 Comps.push_back(OffsetOfNode(OC.LocStart, OC.U.IdentInfo, OC.LocEnd)); in BuildBuiltinOffsetOf()
11241 if (RequireCompleteType(OC.LocStart, CurrentType, in BuildBuiltinOffsetOf()
11268 << SourceRange(Components[0].LocStart, OC.LocEnd) in BuildBuiltinOffsetOf()
11274 LookupResult R(*this, OC.U.IdentInfo, OC.LocStart, LookupMemberName); in BuildBuiltinOffsetOf()
11285 << OC.U.IdentInfo << RD << SourceRange(OC.LocStart, in BuildBuiltinOffsetOf()
11307 if (IsDerivedFrom(OC.LocStart, CurrentType, Context.getTypeDeclType(Parent), in BuildBuiltinOffsetOf()
11324 Comps.push_back(OffsetOfNode(OC.LocStart, in BuildBuiltinOffsetOf()
11328 Comps.push_back(OffsetOfNode(OC.LocStart, MemberDecl, OC.LocEnd)); in BuildBuiltinOffsetOf()
DSemaDeclCXX.cpp12180 FriendDecl *Sema::CheckFriendTypeDecl(SourceLocation LocStart, in CheckFriendTypeDecl() argument
12238 if (getLangOpts().CPlusPlus11 && LocStart != FriendLoc) in CheckFriendTypeDecl()
DTreeTransform.h8067 Comp.LocStart = ON.getSourceRange().getBegin(); in TransformOffsetOfExpr()
/external/clang/lib/AST/
DDeclCXX.cpp1999 redeclarable_base(C), LocStart(StartLoc), RBraceLoc(), in NamespaceDecl()
/external/clang/include/clang/Sema/
DSema.h3987 SourceLocation LocStart, LocEnd; member
5328 FriendDecl *CheckFriendTypeDecl(SourceLocation LocStart,
/external/clang/lib/Serialization/
DASTReaderDecl.cpp1307 D->LocStart = ReadSourceLocation(Record, Idx); in VisitNamespaceDecl()