Lines Matching refs:SourceLocation
346 SourceLocation getLocStart() const LLVM_READONLY; in LLVM_ALIGNAS()
347 SourceLocation getLocEnd() const LLVM_READONLY; in LLVM_ALIGNAS()
433 SourceLocation StartLoc, EndLoc;
436 DeclStmt(DeclGroupRef dg, SourceLocation startLoc, in DeclStmt()
437 SourceLocation endLoc) : Stmt(DeclStmtClass), DG(dg), in DeclStmt()
456 SourceLocation getStartLoc() const { return StartLoc; } in getStartLoc()
457 void setStartLoc(SourceLocation L) { StartLoc = L; } in setStartLoc()
458 SourceLocation getEndLoc() const { return EndLoc; } in getEndLoc()
459 void setEndLoc(SourceLocation L) { EndLoc = L; } in setEndLoc()
461 SourceLocation getLocStart() const LLVM_READONLY { return StartLoc; } in getLocStart()
462 SourceLocation getLocEnd() const LLVM_READONLY { return EndLoc; } in getLocEnd()
500 SourceLocation SemiLoc;
509 NullStmt(SourceLocation L, bool hasLeadingEmptyMacro = false)
517 SourceLocation getSemiLoc() const { return SemiLoc; } in getSemiLoc()
518 void setSemiLoc(SourceLocation L) { SemiLoc = L; } in setSemiLoc()
522 SourceLocation getLocStart() const LLVM_READONLY { return SemiLoc; } in getLocStart()
523 SourceLocation getLocEnd() const LLVM_READONLY { return SemiLoc; } in getLocEnd()
541 SourceLocation LBraceLoc, RBraceLoc;
547 SourceLocation LB, SourceLocation RB);
550 explicit CompoundStmt(SourceLocation Loc) in CompoundStmt()
614 SourceLocation getLocStart() const LLVM_READONLY { return LBraceLoc; } in getLocStart()
615 SourceLocation getLocEnd() const LLVM_READONLY { return RBraceLoc; } in getLocEnd()
617 SourceLocation getLBracLoc() const { return LBraceLoc; } in getLBracLoc()
618 SourceLocation getRBracLoc() const { return RBraceLoc; } in getRBracLoc()
641 SourceLocation KeywordLoc;
642 SourceLocation ColonLoc;
644 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc) in SwitchCase()
658 SourceLocation getKeywordLoc() const { return KeywordLoc; } in getKeywordLoc()
659 void setKeywordLoc(SourceLocation L) { KeywordLoc = L; } in setKeywordLoc()
660 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
661 void setColonLoc(SourceLocation L) { ColonLoc = L; } in setColonLoc()
668 SourceLocation getLocStart() const LLVM_READONLY { return KeywordLoc; } in getLocStart()
669 SourceLocation getLocEnd() const LLVM_READONLY;
678 SourceLocation EllipsisLoc;
683 CaseStmt(Expr *lhs, Expr *rhs, SourceLocation caseLoc, in CaseStmt()
684 SourceLocation ellipsisLoc, SourceLocation colonLoc) in CaseStmt()
695 SourceLocation getCaseLoc() const { return KeywordLoc; } in getCaseLoc()
696 void setCaseLoc(SourceLocation L) { KeywordLoc = L; } in setCaseLoc()
697 SourceLocation getEllipsisLoc() const { return EllipsisLoc; } in getEllipsisLoc()
698 void setEllipsisLoc(SourceLocation L) { EllipsisLoc = L; } in setEllipsisLoc()
699 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
700 void setColonLoc(SourceLocation L) { ColonLoc = L; } in setColonLoc()
718 SourceLocation getLocStart() const LLVM_READONLY { return KeywordLoc; } in getLocStart()
719 SourceLocation getLocEnd() const LLVM_READONLY { in getLocEnd()
741 DefaultStmt(SourceLocation DL, SourceLocation CL, Stmt *substmt) : in DefaultStmt()
752 SourceLocation getDefaultLoc() const { return KeywordLoc; } in getDefaultLoc()
753 void setDefaultLoc(SourceLocation L) { KeywordLoc = L; } in setDefaultLoc()
754 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
755 void setColonLoc(SourceLocation L) { ColonLoc = L; } in setColonLoc()
757 SourceLocation getLocStart() const LLVM_READONLY { return KeywordLoc; } in getLocStart()
758 SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();} in getLocEnd()
768 inline SourceLocation SwitchCase::getLocEnd() const { in getLocEnd()
778 SourceLocation IdentLoc;
783 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt) in LabelStmt()
786 2 * sizeof(SourceLocation) + 2 * sizeof(void *), in LabelStmt()
793 SourceLocation getIdentLoc() const { return IdentLoc; } in getIdentLoc()
799 void setIdentLoc(SourceLocation L) { IdentLoc = L; } in setIdentLoc()
802 SourceLocation getLocStart() const LLVM_READONLY { return IdentLoc; } in getLocStart()
803 SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();} in getLocEnd()
820 SourceLocation AttrLoc;
825 AttributedStmt(SourceLocation Loc, ArrayRef<const Attr*> Attrs, Stmt *SubStmt) in AttributedStmt()
844 static AttributedStmt *Create(const ASTContext &C, SourceLocation Loc,
849 SourceLocation getAttrLoc() const { return AttrLoc; } in getAttrLoc()
856 SourceLocation getLocStart() const LLVM_READONLY { return AttrLoc; } in getLocStart()
857 SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();} in getLocEnd()
873 SourceLocation IfLoc;
874 SourceLocation ElseLoc;
877 IfStmt(const ASTContext &C, SourceLocation IL, VarDecl *var, Expr *cond,
878 Stmt *then, SourceLocation EL = SourceLocation(),
912 SourceLocation getIfLoc() const { return IfLoc; } in getIfLoc()
913 void setIfLoc(SourceLocation L) { IfLoc = L; } in setIfLoc()
914 SourceLocation getElseLoc() const { return ElseLoc; } in getElseLoc()
915 void setElseLoc(SourceLocation L) { ElseLoc = L; } in setElseLoc()
917 SourceLocation getLocStart() const LLVM_READONLY { return IfLoc; } in getLocStart()
918 SourceLocation getLocEnd() const LLVM_READONLY { in getLocEnd()
939 SourceLocation SwitchLoc;
985 SourceLocation getSwitchLoc() const { return SwitchLoc; } in getSwitchLoc()
986 void setSwitchLoc(SourceLocation L) { SwitchLoc = L; } in setSwitchLoc()
988 void setBody(Stmt *S, SourceLocation SL) { in setBody()
1007 SourceLocation getLocStart() const LLVM_READONLY { return SwitchLoc; } in getLocStart()
1008 SourceLocation getLocEnd() const LLVM_READONLY { in getLocEnd()
1026 SourceLocation WhileLoc;
1031 SourceLocation WL);
1060 SourceLocation getWhileLoc() const { return WhileLoc; } in getWhileLoc()
1061 void setWhileLoc(SourceLocation L) { WhileLoc = L; } in setWhileLoc()
1063 SourceLocation getLocStart() const LLVM_READONLY { return WhileLoc; } in getLocStart()
1064 SourceLocation getLocEnd() const LLVM_READONLY { in getLocEnd()
1081 SourceLocation DoLoc;
1084 SourceLocation WhileLoc;
1085 SourceLocation RParenLoc; // Location of final ')' in do stmt condition.
1088 DoStmt(Stmt *body, Expr *cond, SourceLocation DL, SourceLocation WL, in DoStmt()
1089 SourceLocation RP) in DoStmt()
1105 SourceLocation getDoLoc() const { return DoLoc; } in getDoLoc()
1106 void setDoLoc(SourceLocation L) { DoLoc = L; } in setDoLoc()
1107 SourceLocation getWhileLoc() const { return WhileLoc; } in getWhileLoc()
1108 void setWhileLoc(SourceLocation L) { WhileLoc = L; } in setWhileLoc()
1110 SourceLocation getRParenLoc() const { return RParenLoc; } in getRParenLoc()
1111 void setRParenLoc(SourceLocation L) { RParenLoc = L; } in setRParenLoc()
1113 SourceLocation getLocStart() const LLVM_READONLY { return DoLoc; } in getLocStart()
1114 SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; } in getLocEnd()
1132 SourceLocation ForLoc;
1135 SourceLocation LParenLoc, RParenLoc;
1139 Expr *Inc, Stmt *Body, SourceLocation FL, SourceLocation LP,
1140 SourceLocation RP);
1178 SourceLocation getForLoc() const { return ForLoc; } in getForLoc()
1179 void setForLoc(SourceLocation L) { ForLoc = L; } in setForLoc()
1180 SourceLocation getLParenLoc() const { return LParenLoc; } in getLParenLoc()
1181 void setLParenLoc(SourceLocation L) { LParenLoc = L; } in setLParenLoc()
1182 SourceLocation getRParenLoc() const { return RParenLoc; } in getRParenLoc()
1183 void setRParenLoc(SourceLocation L) { RParenLoc = L; } in setRParenLoc()
1185 SourceLocation getLocStart() const LLVM_READONLY { return ForLoc; } in getLocStart()
1186 SourceLocation getLocEnd() const LLVM_READONLY { in getLocEnd()
1204 SourceLocation GotoLoc;
1205 SourceLocation LabelLoc;
1207 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL) in GotoStmt()
1216 SourceLocation getGotoLoc() const { return GotoLoc; } in getGotoLoc()
1217 void setGotoLoc(SourceLocation L) { GotoLoc = L; } in setGotoLoc()
1218 SourceLocation getLabelLoc() const { return LabelLoc; } in getLabelLoc()
1219 void setLabelLoc(SourceLocation L) { LabelLoc = L; } in setLabelLoc()
1221 SourceLocation getLocStart() const LLVM_READONLY { return GotoLoc; } in getLocStart()
1222 SourceLocation getLocEnd() const LLVM_READONLY { return LabelLoc; } in getLocEnd()
1237 SourceLocation GotoLoc;
1238 SourceLocation StarLoc;
1241 IndirectGotoStmt(SourceLocation gotoLoc, SourceLocation starLoc, in IndirectGotoStmt()
1250 void setGotoLoc(SourceLocation L) { GotoLoc = L; } in setGotoLoc()
1251 SourceLocation getGotoLoc() const { return GotoLoc; } in getGotoLoc()
1252 void setStarLoc(SourceLocation L) { StarLoc = L; } in setStarLoc()
1253 SourceLocation getStarLoc() const { return StarLoc; } in getStarLoc()
1266 SourceLocation getLocStart() const LLVM_READONLY { return GotoLoc; } in getLocStart()
1267 SourceLocation getLocEnd() const LLVM_READONLY { return Target->getLocEnd(); } in getLocEnd()
1281 SourceLocation ContinueLoc;
1283 ContinueStmt(SourceLocation CL) : Stmt(ContinueStmtClass), ContinueLoc(CL) {} in ContinueStmt()
1288 SourceLocation getContinueLoc() const { return ContinueLoc; } in getContinueLoc()
1289 void setContinueLoc(SourceLocation L) { ContinueLoc = L; } in setContinueLoc()
1291 SourceLocation getLocStart() const LLVM_READONLY { return ContinueLoc; } in getLocStart()
1292 SourceLocation getLocEnd() const LLVM_READONLY { return ContinueLoc; } in getLocEnd()
1307 SourceLocation BreakLoc;
1310 BreakStmt(SourceLocation BL) : Stmt(BreakStmtClass), BreakLoc(BL) { in BreakStmt()
1311 static_assert(sizeof(BreakStmt) == 2 * sizeof(SourceLocation), in BreakStmt()
1318 SourceLocation getBreakLoc() const { return BreakLoc; } in getBreakLoc()
1319 void setBreakLoc(SourceLocation L) { BreakLoc = L; } in setBreakLoc()
1321 SourceLocation getLocStart() const LLVM_READONLY { return BreakLoc; } in getLocStart()
1322 SourceLocation getLocEnd() const LLVM_READONLY { return BreakLoc; } in getLocEnd()
1345 SourceLocation RetLoc;
1350 explicit ReturnStmt(SourceLocation RL) : ReturnStmt(RL, nullptr, nullptr) {} in ReturnStmt()
1352 ReturnStmt(SourceLocation RL, Expr *E, const VarDecl *NRVOCandidate) in ReturnStmt()
1363 SourceLocation getReturnLoc() const { return RetLoc; } in getReturnLoc()
1364 void setReturnLoc(SourceLocation L) { RetLoc = L; } in setReturnLoc()
1374 SourceLocation getLocStart() const LLVM_READONLY { return RetLoc; } in getLocStart()
1375 SourceLocation getLocEnd() const LLVM_READONLY { in getLocEnd()
1394 SourceLocation AsmLoc;
1409 AsmStmt(StmtClass SC, SourceLocation asmloc, bool issimple, bool isvolatile, in AsmStmt()
1421 SourceLocation getAsmLoc() const { return AsmLoc; } in getAsmLoc()
1422 void setAsmLoc(SourceLocation L) { AsmLoc = L; } in setAsmLoc()
1430 SourceLocation getLocStart() const LLVM_READONLY { return SourceLocation(); } in getLocStart()
1431 SourceLocation getLocEnd() const LLVM_READONLY { return SourceLocation(); } in getLocEnd()
1544 SourceLocation RParenLoc;
1555 GCCAsmStmt(const ASTContext &C, SourceLocation asmloc, bool issimple,
1559 StringLiteral **clobbers, SourceLocation rparenloc);
1565 SourceLocation getRParenLoc() const { return RParenLoc; } in getRParenLoc()
1566 void setRParenLoc(SourceLocation L) { RParenLoc = L; } in setRParenLoc()
1592 AsmStringPiece(unsigned OpNo, const std::string &S, SourceLocation Begin, in AsmStringPiece()
1593 SourceLocation End) in AsmStringPiece()
1712 SourceLocation getLocStart() const LLVM_READONLY { return AsmLoc; } in getLocStart()
1713 SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; } in getLocEnd()
1723 SourceLocation LBraceLoc, EndLoc;
1735 MSAsmStmt(const ASTContext &C, SourceLocation asmloc,
1736 SourceLocation lbraceloc, bool issimple, bool isvolatile,
1740 ArrayRef<StringRef> clobbers, SourceLocation endloc);
1746 SourceLocation getLBraceLoc() const { return LBraceLoc; } in getLBraceLoc()
1747 void setLBraceLoc(SourceLocation L) { LBraceLoc = L; } in setLBraceLoc()
1748 SourceLocation getEndLoc() const { return EndLoc; } in getEndLoc()
1749 void setEndLoc(SourceLocation L) { EndLoc = L; } in setEndLoc()
1810 SourceLocation getLocStart() const LLVM_READONLY { return AsmLoc; } in getLocStart()
1811 SourceLocation getLocEnd() const LLVM_READONLY { return EndLoc; } in getLocEnd()
1823 SourceLocation Loc;
1828 SEHExceptStmt(SourceLocation Loc,
1838 SourceLocation ExceptLoc,
1842 SourceLocation getLocStart() const LLVM_READONLY { return getExceptLoc(); } in getLocStart()
1843 SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); } in getLocEnd()
1845 SourceLocation getExceptLoc() const { return Loc; } in getExceptLoc()
1846 SourceLocation getEndLoc() const { return getBlock()->getLocEnd(); } in getEndLoc()
1867 SourceLocation Loc;
1870 SEHFinallyStmt(SourceLocation Loc,
1879 SourceLocation FinallyLoc,
1882 SourceLocation getLocStart() const LLVM_READONLY { return getFinallyLoc(); } in getLocStart()
1883 SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); } in getLocEnd()
1885 SourceLocation getFinallyLoc() const { return Loc; } in getFinallyLoc()
1886 SourceLocation getEndLoc() const { return Block->getLocEnd(); } in getEndLoc()
1902 SourceLocation TryLoc;
1908 SourceLocation TryLoc,
1918 SourceLocation TryLoc, Stmt *TryBlock,
1921 SourceLocation getLocStart() const LLVM_READONLY { return getTryLoc(); } in getLocStart()
1922 SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); } in getLocEnd()
1924 SourceLocation getTryLoc() const { return TryLoc; } in getTryLoc()
1925 SourceLocation getEndLoc() const { return Children[HANDLER]->getLocEnd(); } in getEndLoc()
1951 SourceLocation LeaveLoc;
1953 explicit SEHLeaveStmt(SourceLocation LL) in SEHLeaveStmt()
1959 SourceLocation getLeaveLoc() const { return LeaveLoc; } in getLeaveLoc()
1960 void setLeaveLoc(SourceLocation L) { LeaveLoc = L; } in setLeaveLoc()
1962 SourceLocation getLocStart() const LLVM_READONLY { return LeaveLoc; } in getLocStart()
1963 SourceLocation getLocEnd() const LLVM_READONLY { return LeaveLoc; } in getLocEnd()
1999 SourceLocation Loc;
2010 Capture(SourceLocation Loc, VariableCaptureKind Kind,
2018 SourceLocation getLocation() const { return Loc; } in getLocation()
2187 SourceLocation getLocStart() const LLVM_READONLY { in getLocStart()
2190 SourceLocation getLocEnd() const LLVM_READONLY { in getLocEnd()