reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/include/clang/AST/Comment.h
  219   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
  484       SourceLocation L = Attr.ValueRange.getEnd();
  683       SourceLocation NewLocEnd = Args.back().Range.getEnd();
tools/clang/include/clang/AST/DeclBase.h
  426     return getSourceRange().getEnd();
tools/clang/include/clang/AST/DeclCXX.h
  192   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
tools/clang/include/clang/AST/DeclObjC.h
 1126     return SourceRange(getAtStartLoc(), getAtEndRange().getEnd());
tools/clang/include/clang/AST/DeclTemplate.h
  430                        TemplatedDecl->getSourceRange().getEnd());
  731     return AngleLocs.getEnd();
 1589       End = getDefaultArgument().getSourceRange().getEnd();
tools/clang/include/clang/AST/DeclarationName.h
  763     LocInfo.CXXOperatorName.EndOpNameLoc = R.getEnd().getRawEncoding();
tools/clang/include/clang/AST/Expr.h
 2225   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
tools/clang/include/clang/AST/ExprCXX.h
  140   SourceLocation getEndLoc() const { return Range.getEnd(); }
  832   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
 1060   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
 2340   SourceLocation getEndLoc() const { return Range.getEnd(); }
 3981   SourceLocation getEndLoc() const { return Range.getEnd(); }
tools/clang/include/clang/AST/ExprObjC.h
  158   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
  215   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
  379   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
 1449     RBracLoc = R.getEnd();
tools/clang/include/clang/AST/NestedNameSpecifier.h
  299     return getSourceRange().getEnd();
  311     return getLocalSourceRange().getEnd();
tools/clang/include/clang/AST/RawCommentList.h
  107   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
tools/clang/include/clang/AST/Type.h
 3037   SourceLocation getRBracketLoc() const { return Brackets.getEnd(); }
 3094   SourceLocation getRBracketLoc() const { return Brackets.getEnd(); }
tools/clang/include/clang/AST/TypeLoc.h
  565       BuiltinRange.setEnd(std::max(Range.getEnd(), BuiltinRange.getEnd()));
  565       BuiltinRange.setEnd(std::max(Range.getEnd(), BuiltinRange.getEnd()));
 1731     range.setEnd(getAttrOperandParensRange().getEnd());
 1841       setRParenLoc(range.getEnd());
 1934     setRParenLoc(Range.getEnd());
 2281     setRParenLoc(Range.getEnd());
tools/clang/include/clang/Basic/SourceLocation.h
  265   SourceLocation getEnd() const { return Range.getEnd(); }
tools/clang/include/clang/Basic/SourceManager.h
 1187     CharSourceRange End = getExpansionRange(Range.getEnd());
tools/clang/include/clang/Frontend/ASTUnit.h
  574                        mapLocationFromPreamble(R.getEnd()));
  580                        mapLocationToPreamble(R.getEnd()));
tools/clang/include/clang/Lex/Lexer.h
  397     SourceLocation End = getLocForEndOfToken(Range.getEnd(), 0, SM, LangOpts);
tools/clang/include/clang/Lex/Token.h
  165     setAnnotationEndLoc(R.getEnd());
tools/clang/include/clang/Rewrite/Core/HTMLRewrite.h
   42     HighlightRange(R, Range.getBegin(), Range.getEnd(), StartTag, EndTag);
tools/clang/include/clang/Sema/DeclSpec.h
   73   SourceLocation getEndLoc() const { return Range.getEnd(); }
  203     Range.setEnd(R.getEnd());
  499   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
 1901   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
 1922     if (!SR.getEnd().isInvalid())
 1923       Range.setEnd(SR.getEnd());
tools/clang/include/clang/Sema/Initialization.h
  625                               TypeRange.getBegin(), TypeRange.getEnd());
  636                               TypeRange.getEnd());
  644                               TypeRange.getBegin(), TypeRange.getEnd());
tools/clang/include/clang/Serialization/ASTBitCodes.h
  189           End(R.getEnd().getRawEncoding()), BitOffset(BitOffset) {}
  209           End(R.getEnd().getRawEncoding()) { }
tools/clang/lib/ARCMigrate/ARCMT.cpp
   40         (diagLoc == range.getEnd() ||
   41          diagLoc.isBeforeInTranslationUnitThan(range.getEnd()))) {
   69         (diagLoc == range.getEnd() ||
   70          diagLoc.isBeforeInTranslationUnitThan(range.getEnd()))) {
tools/clang/lib/ARCMigrate/ObjCMT.cpp
  293       commit.replace(SourceRange(MsgRange.getEnd(), MsgRange.getEnd()), "");
  293       commit.replace(SourceRange(MsgRange.getEnd(), MsgRange.getEnd()), "");
  317       commit.replace(SourceRange(MsgRange.getEnd(), MsgRange.getEnd()), "");
  317       commit.replace(SourceRange(MsgRange.getEnd(), MsgRange.getEnd()), "");
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp
  291       return SM.isBeforeInTranslationUnit(loc, ScopeRange.getEnd());
tools/clang/lib/ARCMigrate/TransProtectedScope.cpp
  176     Pass.TA.insert(info.Range.getEnd(), "}\n");
  194             SM.isBeforeInTranslationUnit(Loc, R.getEnd());
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp
  153       Pass.TA.insertAfterToken(RecRange.getEnd(), str);
  384     if (SM.isMacroArgExpansion(RecRange.getEnd()))
  385       RecRange.setEnd(SM.getImmediateSpellingLoc(RecRange.getEnd()));
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp
  287     SourceLocation InnerEnd = SM.getImmediateMacroCallerLoc(SubRange.getEnd());
  300     Pass.TA.insertAfterToken(InnerRange.getEnd(), " copy]");
tools/clang/lib/ARCMigrate/TransUnusedInitDelegate.cpp
   61       Pass.TA.insertAfterToken(ExprRange.getEnd(), retStr);
tools/clang/lib/ARCMigrate/TransformActions.cpp
  410   return canInsert(range.getBegin()) && canInsertAfterToken(range.getEnd());
  474   if (replacementRange.getEnd() != range.getEnd())
  474   if (replacementRange.getEnd() != range.getEnd())
  476                                   getLocForEndOfToken(replacementRange.getEnd(),
  478                                   range.getEnd()));
tools/clang/lib/ARCMigrate/Transforms.cpp
  545         TA.insertAfterToken(FinalizeM->getSourceRange().getEnd(), str);
tools/clang/lib/AST/ASTImporter.cpp
 8285                         ToSourceRangeOrErr->getEnd());
 8406   if (Error Err = importInto(ToEnd, FromRange.getEnd()))
tools/clang/lib/AST/CommentSema.cpp
  570       DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd();
  572       DiagLoc = Command->getCommandNameRange(Traits).getEnd();
tools/clang/lib/AST/Decl.cpp
 1910       RangeEnd = TInfo->getTypeLoc().getSourceRange().getEnd();
 2684       return SourceRange(getOuterLocStart(), ArgRange.getEnd());
 3349       !SM.isBeforeInTranslationUnit(RTRange.getEnd(), Boundary))
 4059   SourceLocation RBraceLoc = BraceRange.getEnd();
 4788       RangeEnd = TInfo->getTypeLoc().getSourceRange().getEnd();
 4796     RangeEnd = TInfo->getTypeLoc().getSourceRange().getEnd();
tools/clang/lib/AST/DeclBase.cpp
  902       return Definition->getSourceRange().getEnd();
  907     return Body->getSourceRange().getEnd();
tools/clang/lib/AST/DeclTemplate.cpp
  626                        getDefaultArgument()->getSourceRange().getEnd());
  821       SourceLocation End = getBraceRange().getEnd();
tools/clang/lib/AST/ExprCXX.cpp
  236     this->Range.setEnd(DirectInitRange.getEnd());
  239     this->Range.setEnd(getInitializer()->getSourceRange().getEnd());
  243       this->Range.setEnd(TypeIdParens.getEnd());
  378     End = TInfo->getTypeLoc().getLocalSourceRange().getEnd();
  597     return ParenOrBraceRange.getEnd();
 1064   SourceLocation Loc = getParenOrBraceRange().getEnd();
tools/clang/lib/AST/JSONNodeDumper.cpp
  256   JOS.attributeObject("end", [R, this] { writeSourceLocation(R.getEnd()); });
tools/clang/lib/AST/NestedNameSpecifier.cpp
  430                      getLocalSourceRange().getEnd());
  675     SaveSourceLocation(Stack.empty()? R.getEnd() : R.getBegin(),
tools/clang/lib/AST/RawCommentList.cpp
  114   if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) {
  159   std::tie(EndFileID, EndOffset) = SourceMgr.getDecomposedLoc(Range.getEnd());
  353       SourceMgr.getDecomposedLoc(C->getSourceRange().getEnd()).second;
tools/clang/lib/AST/Stmt.cpp
  904       DeclStmt(DeclGroupRef(V), VarRange.getBegin(), VarRange.getEnd());
  940                                        VarRange.getEnd());
 1005       DeclStmt(DeclGroupRef(V), VarRange.getBegin(), VarRange.getEnd());
 1061       DeclStmt(DeclGroupRef(V), VarRange.getBegin(), VarRange.getEnd());
tools/clang/lib/AST/TextNodeDumper.cpp
  377   if (R.getBegin() != R.getEnd()) {
  379     dumpLocation(R.getEnd());
tools/clang/lib/AST/TypeLoc.cpp
  234       return Last.getLocalSourceRange().getEnd();
  304                        getUnderlyingExpr()->getSourceRange().getEnd());
tools/clang/lib/Analysis/CFG.cpp
   69       return Ex->getSourceRange().getEnd();
tools/clang/lib/Analysis/PathDiagnostic.cpp
  187           L = SMgr.getExpansionLoc(I.getEnd());
  290       return SM.isBeforeInTranslationUnit(XR.getEnd(), YR.getEnd());
  290       return SM.isBeforeInTranslationUnit(XR.getEnd(), YR.getEnd());
  696         CEB->getLocationContext()->getDecl()->getSourceRange().getEnd(), SMng);
 1071   ID.AddInteger(Range.getEnd().getRawEncoding());
 1083     ID.AddInteger(I.getEnd().getRawEncoding());
tools/clang/lib/CodeGen/CGObjC.cpp
 1905     DI->EmitLexicalBlockEnd(Builder, S.getSourceRange().getEnd());
tools/clang/lib/CodeGen/CGStmt.cpp
  719                  SourceLocToDebugLoc(R.getEnd()));
  821                  SourceLocToDebugLoc(R.getEnd()));
  879                  SourceLocToDebugLoc(R.getEnd()));
  980                  SourceLocToDebugLoc(R.getEnd()));
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
 1405                  SourceLocToDebugLoc(R.getEnd()));
 1884                  SourceLocToDebugLoc(R.getEnd()));
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 1160   CurEHLocation = BodyRange.getEnd();
 1239   FinishFunction(BodyRange.getEnd());
tools/clang/lib/CodeGen/CodeGenFunction.h
  793         DI->EmitLexicalBlockEnd(CGF.Builder, Range.getEnd());
  798         ApplyDebugLocation DL(CGF, Range.getEnd());
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  289       auto LocEnd = I.getEnd();
  971       fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount);
 1039       fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount);
 1066       fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount);
 1092       fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount);
 1188       fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), ThenCount);
 1198         fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), ElseCount);
 1240         fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), TrueCount);
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
  195   commit.replaceWithInner(SourceRange(ArgRange.getBegin(), MsgRange.getEnd()),
  247   commit.replaceWithInner(SourceRange(Arg1Range.getBegin(), MsgRange.getEnd()),
  283   commit.replaceWithInner(SourceRange(Arg0Range.getBegin(), MsgRange.getEnd()),
  517     commit.insertAfterToken(ValRange.getEnd(), "}");
  544       commit.insertAfterToken(KeyRange.getEnd(), ": ");
  545       commit.insertFromRange(KeyRange.getEnd(), ValRange, /*afterToken=*/true);
  588       commit.insertAfterToken(KeyRange.getEnd(), ": ");
  589       commit.insertFromRange(KeyRange.getEnd(), ValRange, /*afterToken=*/true);
  686       literalRange.getEnd().isMacroID())
tools/clang/lib/Format/ContinuationIndenter.cpp
  519         SourceMgr.getSpellingColumnNumber(Current.WhitespaceRange.getEnd());
tools/clang/lib/Format/Format.cpp
 1382         if (Tok->WhitespaceRange.getBegin() == Tok->WhitespaceRange.getEnd()) {
 1402             Tok->WhitespaceRange.getBegin() != Tok->WhitespaceRange.getEnd();
 1404                           Tok->Next->WhitespaceRange.getEnd();
tools/clang/lib/Format/FormatToken.h
  478     return WhitespaceRange.getEnd();
tools/clang/lib/Format/FormatTokenLexer.cpp
  290       First[1]->WhitespaceRange.getEnd())
  312                                        First[i]->WhitespaceRange.getEnd())
tools/clang/lib/Format/SortJavaScriptImports.cpp
  171     InsertionPoint.setEnd(References[References.size() - 1].Range.getEnd());
  233     return getSourceText(Range.getBegin(), Range.getEnd());
  260     SourceLocation SymbolsEnd = Reference.Symbols.back().Range.getEnd();
  269     Buffer += getSourceText(SymbolsEnd, Reference.Range.getEnd());
tools/clang/lib/Format/TokenAnnotator.cpp
 2747       return Right.WhitespaceRange.getEnd() != Right.WhitespaceRange.getBegin();
 2860     return Right.WhitespaceRange.getBegin() != Right.WhitespaceRange.getEnd();
 2949     return Right.WhitespaceRange.getBegin() != Right.WhitespaceRange.getEnd();
tools/clang/lib/Format/UnwrappedLineParser.cpp
  829           FormatTok->WhitespaceRange.getEnd()) {
tools/clang/lib/Format/WhitespaceManager.cpp
  111         Changes[i - 1].OriginalWhitespaceRange.getEnd();
  648           Changes[i].OriginalWhitespaceRange.getEnd());
  654             Changes[j].OriginalWhitespaceRange.getEnd());
  774   unsigned WhitespaceLength = SourceMgr.getFileOffset(Range.getEnd()) -
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
 5558                                         OrigStmtRange.getEnd());
 7543                                    OldRange.getEnd(),
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
 4662                                         OrigStmtRange.getEnd());
 5829                                               OldRange.getEnd(),
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
  757   StringRef C(CommentRaw, SM.getCharacterData(Comment.getEnd()) - CommentRaw);
tools/clang/lib/Lex/PPConditionalDirectiveRecord.cpp
   33   if (SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), low->getLoc()))
   38                            Range.getEnd(), CondDirectiveLoc::Comp(SourceMgr));
tools/clang/lib/Lex/PPDirectives.cpp
  370   return DiscardUntilEndOfDirective().getEnd();
 1555   Tok[0].setAnnotationEndLoc(Range.getEnd());
tools/clang/lib/Lex/PPExpressions.cpp
  791       RHS.setEnd(AfterColonVal.getRange().getEnd());
  815     LHS.setEnd(RHS.getRange().getEnd());
  859             {ExprStartLoc, ConditionRange.getEnd()}};
tools/clang/lib/Lex/PPMacroExpansion.cpp
  934       DB << FixItHint::CreateInsertion(ParenLocation.getEnd(), ")");
tools/clang/lib/Lex/PreprocessingRecord.cpp
  139   assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
  171   assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
  174   unsigned End = findEndLocalPreprocessedEntity(Range.getEnd());
  229     if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(),
tools/clang/lib/Parse/ParseDecl.cpp
 1162                          Changes[Index].VersionRange.getEnd());
 1191                            Changes[Index].VersionRange.getEnd());
 1668   CharSourceRange AttrRange(SourceRange(Loc, Attrs.Range.getEnd()), true);
 5853         D.SetRangeEnd(D.getName().getSourceRange().getEnd());
 6310       if (!DS.getSourceRange().getEnd().isInvalid()) {
 6311         EndLoc = DS.getSourceRange().getEnd();
 6383         EndLoc = ESpecRange.getEnd();
 6399         EndLoc = Range.getEnd();
 6962   if (CastRange.getEnd().isInvalid())
 6966     DS.SetRangeEnd(CastRange.getEnd());
tools/clang/lib/Parse/ParseExpr.cpp
  497                                      Actions.getExprRange(RHS.get()).getEnd()));
 3040     SourceLocation Tmp = ParamInfo.getSourceRange().getEnd();
 3193                             VersionRange.getEnd());
tools/clang/lib/Parse/ParseExprCXX.cpp
 1350       DeclEndLoc = ESpecRange.getEnd();
 1363       if (Range.getEnd().isValid())
 1364         DeclEndLoc = Range.getEnd();
 1425       if (Range.getEnd().isValid())
 1426         DeclEndLoc = Range.getEnd();
 2635                                  D.getSourceRange().getEnd());
tools/clang/lib/Parse/ParsePragma.cpp
 1389   if (FixItRange.getBegin() == FixItRange.getEnd())
tools/clang/lib/Parse/ParseStmt.cpp
 1703         getCurScope(), Loc, Name, attrs, attrs.Range.getEnd());
tools/clang/lib/Parse/Parser.cpp
   88   SourceLocation EndLoc = PP.getLocForEndOfToken(ParenRange.getEnd());
   89   if (!ParenRange.getEnd().isFileID() || EndLoc.isInvalid()) {
tools/clang/lib/Rewrite/Rewriter.cpp
  332   if (!isRewritable(range.getEnd())) return true;
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
   95         SourceLocation Close = SilenceableCondVal.getEnd();
tools/clang/lib/Sema/DeclSpec.cpp
  197   I.Fun.ExceptionSpecLocEnd     = ESpecRange.getEnd().getRawEncoding();
tools/clang/lib/Sema/Sema.cpp
 2125     SourceLocation ParenInsertionLoc = getLocForEndOfToken(Range.getEnd());
 2136     E = BuildCallExpr(nullptr, E.get(), Range.getEnd(), None,
 2137                       Range.getEnd().getLocWithOffset(1));
tools/clang/lib/Sema/SemaAttr.cpp
  631       Range.getEnd(), tok::comma, S.getSourceManager(), S.getLangOpts(),
tools/clang/lib/Sema/SemaCast.cpp
  269   Op.OpRange = SourceRange(OpLoc, Parens.getEnd());
  284                                                 OpLoc, Parens.getEnd(),
  302                                                   OpLoc, Parens.getEnd(),
  315                                                       Parens.getEnd(),
  329                                                  OpLoc, Parens.getEnd(),
tools/clang/lib/Sema/SemaChecking.cpp
 4674     Diag(CallRange.getEnd(), diag::err_typecheck_call_too_few_args)
 9298     RemovalRange = SourceRange(getLocForEndOfToken(FirstRange.getEnd()),
 9299                                SecondRange.getEnd());
 9335       << FixItHint::CreateInsertion(S.getLocForEndOfToken(SizeRange.getEnd()),
 9666                              SM.getSpellingLoc(DSR.getEnd()));
 9668                              SM.getSpellingLoc(SSR.getEnd()));
 9942                      SM.getSpellingLoc(SR.getEnd()));
14072     StmtLoc = WS->getCond()->getSourceRange().getEnd();
tools/clang/lib/Sema/SemaDecl.cpp
 8099           << NewFDisConst << FD->getSourceRange().getEnd();
 8712             InsertLoc = D.getName().getSourceRange().getEnd();
 9407   NewFD->setRangeEnd(D.getSourceRange().getEnd());
tools/clang/lib/Sema/SemaDeclCXX.cpp
 4094           << SourceRange(IdLoc, Init->getSourceRange().getEnd());
 4191           << MemberOrBase << SourceRange(IdLoc,Init->getSourceRange().getEnd());
 4263                                                     InitRange.getEnd());
 4285                                             InitRange.getEnd());
 4289                                             InitRange.getEnd());
 4317                                                   InitRange.getEnd());
 4347                                           InitRange.getEnd());
 4374         << SourceRange(BaseLoc, InitRange.getEnd());
 4423                                             InitRange.getEnd(), EllipsisLoc);
 4451                                                   InitRange.getEnd());
 4479                                           InitRange.getEnd(), EllipsisLoc);
 8886   if (R.getEnd().isInvalid())
 8887     R.setEnd(Before.getEnd());
 8895   R.setEnd(After.getEnd());
15467   SourceLocation EndLoc = InitRange.getEnd();
tools/clang/lib/Sema/SemaDeclObjC.cpp
  643                                         SuperTypeArgsRange.getEnd(),
tools/clang/lib/Sema/SemaExpr.cpp
 4184       ExprKind, TInfo, Context.getSizeType(), OpLoc, R.getEnd());
 4227       ExprKind, E, Context.getSizeType(), OpLoc, E->getSourceRange().getEnd());
 6056                       LiteralExpr->getSourceRange().getEnd())))
 6060         << SourceRange(LParenLoc, LiteralExpr->getSourceRange().getEnd()));
 6064                SourceRange(LParenLoc, LiteralExpr->getSourceRange().getEnd())))
 6126       << SourceRange(LParenLoc, LiteralExpr->getSourceRange().getEnd());
 7608   SourceLocation EndLoc = Self.getLocForEndOfToken(ParenRange.getEnd());
 7609   if (ParenRange.getBegin().isFileID() && ParenRange.getEnd().isFileID() &&
17226   SourceLocation Close = getLocForEndOfToken(E->getSourceRange().getEnd());
17262         << FixItHint::CreateRemoval(ParenERange.getEnd());
tools/clang/lib/Sema/SemaExprCXX.cpp
 1336                                               Exprs, Locs.getEnd());
 1428         Result.get(), /*Path=*/nullptr, Locs.getBegin(), Locs.getEnd());
 1822                                                      DirectInitRange.getEnd());
 1880                                          TypeRange.getEnd());
 2028             << FixItHint::CreateRemoval(TypeIdParens.getEnd());
 2156             Context, CAT->getSize(), Context.getSizeType(), TypeRange.getEnd());
 2158         Diag(TypeRange.getEnd(), diag::err_new_array_size_unknown_from_init)
tools/clang/lib/Sema/SemaExprMember.cpp
  672       SemaRef.Diag(SS.getRange().getEnd(), diag::err_typecheck_incomplete_tag)
tools/clang/lib/Sema/SemaExprObjC.cpp
  362                                        SourceRange(AtLoc, NR.getEnd())));
 3569                           NCE->getAngleBrackets().getEnd());
 3605                                        S.getLocForEndOfToken(range.getEnd()),
 3620                         NCE->getAngleBrackets().getEnd());
 3638                                        S.getLocForEndOfToken(range.getEnd()),
tools/clang/lib/Sema/SemaFixItUtils.cpp
   61                                                    .getEnd());
tools/clang/lib/Sema/SemaInit.cpp
 1053                   ParentIList->getSourceRange().getEnd()));
 1072         = ParentIList->getInit(EndIndex)->getSourceRange().getEnd();
 1161       << FixItHint::CreateRemoval(Braces.getEnd());
 2195         SemaRef.Diag(IList->getSourceRange().getEnd(),
 3043                                          InitRange.getEnd());
 7812       return S.ActOnParenListExpr(ParenRange.getBegin(), ParenRange.getEnd(),
 8298           /*RBraceLoc*/ Range.getEnd());
 8321             Kind.getRange().getEnd());
tools/clang/lib/Sema/SemaLambda.cpp
  235         /*R angle loc*/LSI->ExplicitTemplateParamsRange.getEnd(),
  392     = IntroducerRange.getEnd().getRawEncoding();
  934     EndLoc = Intro.Range.getEnd();
  951     EndLoc = ParamInfo.getSourceRange().getEnd();
 1718                                        getLocForEndOfToken(CaptureRange.getEnd()));
 1722                                        CaptureRange.getEnd());
 1732         PrevCaptureLoc = CaptureRange.getEnd();
tools/clang/lib/Sema/SemaPseudoObject.cpp
 1496                          RefExpr->getSourceRange().getEnd());
 1528                          op->getSourceRange().getEnd());
tools/clang/lib/Sema/SemaStmtAttr.cpp
   31       SourceLocation L = S.getLocForEndOfToken(Range.getEnd());
tools/clang/lib/Sema/SemaTemplate.cpp
 4504     diagnoseMissingTemplateArguments(Name, SR.getEnd());
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 2524         Template->getSourceRange().getEnd(), ArgumentPackIndex, Output,
 2663         TD, TD->getLocation(), TD->getSourceRange().getEnd(), Param, Builder,
 2679                                 TD->getSourceRange().getEnd(), 0, Builder,
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
 1840         D->getSourceRange().getEnd());
 1849     Function->setRangeEnd(D->getSourceRange().getEnd());
tools/clang/lib/Sema/SemaType.cpp
 3290     SourceLocation E = S.getLocForEndOfToken(Range.getEnd());
tools/clang/lib/Sema/TreeTransform.h
 3003     return SemaRef.BuildCXXNoexceptExpr(Range.getBegin(), Arg, Range.getEnd());
 3481                                              Parens.getEnd());
 3525                                            Parens.getEnd());
 9464     Comp.LocEnd = ON.getSourceRange().getEnd();
 9734       SemaRef.getLocForEndOfToken(E->getBase()->getSourceRange().getEnd());
10382       Type, E->getAngleBrackets().getEnd(),
10384       E->getAngleBrackets().getEnd(), SubExpr.get(), E->getRParenLoc());
tools/clang/lib/Serialization/ASTReader.cpp
 6089   assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
 6093   PreprocessedEntityID EndID = findPreprocessedEntity(Range.getEnd(), true);
 9529       Builder.Extend(Context, II, Range.getBegin(), Range.getEnd());
 9536       Builder.Extend(Context, NS, Range.getBegin(), Range.getEnd());
 9543       Builder.Extend(Context, Alias, Range.getBegin(), Range.getEnd());
 9571       Builder.MakeSuper(Context, RD, Range.getBegin(), Range.getEnd());
10688           FirstLoc = FirstRecord->getBraceRange().getEnd();
10700           SecondLoc = SecondRecord->getBraceRange().getEnd();
tools/clang/lib/Serialization/ASTReaderStmt.cpp
 1386   E->RParen = R.getEnd();
 1511   E->RParenLoc = R.getEnd();
 1810   E->RParenLoc = Range.getEnd();
 1823   E->RParen = Range.getEnd();
 1835   E->RParen = Range.getEnd();
tools/clang/lib/Serialization/ASTWriter.cpp
  681   Record.AddSourceLocation(range.getEnd());
 5434   AddSourceLocation(Range.getEnd(), Record);
 5954       AddSourceLocation(NNS.getLocalSourceRange().getEnd());
 5958       AddSourceLocation(NNS.getLocalSourceRange().getEnd());
tools/clang/lib/Serialization/ASTWriterStmt.cpp
  624     Record.AddSourceLocation(ON.getSourceRange().getEnd());
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
 1564                              SM.getExpansionRange(Range.getEnd()).getEnd());
 1567   if (FID != SM.getFileID(ExpansionRange.getEnd()))
 1576   unsigned EndOffset = SM.getFileOffset(ExpansionRange.getEnd());
 2148     hash.AddInteger(range.getEnd().getRawEncoding());
 2171     hash.AddInteger(range.getEnd().getRawEncoding());
 3057     : SignatureSourceRange.getEnd();
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
  614     html::HighlightRange(R, Range.getBegin(), Range.getEnd(), "",
  646     html::HighlightRange(R, Range.getBegin(), Range.getEnd(),
  651     html::HighlightRange(R, Range.getBegin(), Range.getEnd(), "", Buf.c_str(),
 1004   SourceLocation InstantiationEnd = SM.getExpansionLoc(Range.getEnd());
 1020     EndColNo += Lexer::MeasureTokenLength(Range.getEnd(), SM, LangOpts)-1;
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
  613       AddFID(FM, Fids, SM, Range.getEnd());
tools/clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
  150   if (R.getBegin() == R.getEnd()) {
  153     Region["endLine"] = SM.getExpansionLineNumber(R.getEnd());
  154     Region["endColumn"] = SM.getExpansionColumnNumber(R.getEnd()) + 1;
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
 1000       Range.getEnd(), /*Offset=*/0, SrcMgr, TreeImpl->AST.getLangOpts());
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp
   28       R.getEnd(), tok::raw_identifier, SM, LangOpts,
   44         SelectionEnd(Selection.getBegin() == Selection.getEnd()
   46                          : Selection.getEnd()),
   88     if (DeclRange.getBegin().isMacroID() && !DeclRange.getEnd().isMacroID())
   89       FileLoc = DeclRange.getEnd();
  102     if (DeclRange.getEnd().isValid() &&
  105                                      DeclRange.getEnd())) {
  187                                                SelectionRange.getEnd()) &&
  191   assert(Context.getSourceManager().getFileID(SelectionRange.getEnd()) ==
  383   if (SelectionRange.getBegin() == SelectionRange.getEnd())
tools/clang/lib/Tooling/Refactoring/Extract/SourceExtraction.cpp
   97   SourceLocation End = ExtractedRange.getEnd();
tools/clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp
   48       SourceLocation End = Range.getEnd();
tools/clang/lib/Tooling/Syntax/Tokens.cpp
  300     Collector->Expansions[Range.getBegin().getRawEncoding()] = Range.getEnd();
  301     LastExpansionEnd = Range.getEnd();
tools/clang/tools/clang-refactor/ClangRefactor.cpp
  526       R.getEnd().print(llvm::outs(), Context.getSources());
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  654         CalleeRange.getEnd(), llvm::cast<NamedDecl>(Func));
  962                                       RefRange.getEnd(), From);
tools/clang/tools/extra/clang-move/Move.cpp
  317     if (SM.isBeforeInTranslationUnit(Full.getEnd(), Comment->getEndLoc()))
tools/clang/tools/extra/clang-tidy/bugprone/LambdaFunctionNameCheck.h
   29         return L.getEnd() < R.getEnd();
   29         return L.getEnd() < R.getEnd();
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp
   92                   SourceRange(BaseRange.getEnd().getLocWithOffset(1),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp
  474           getLocationForEndOfToken(Context, Field->getSourceRange().getEnd()),
  532       getLocationForEndOfToken(Context, Var->getSourceRange().getEnd()),
tools/clang/tools/extra/clang-tidy/fuchsia/DefaultArgumentsDeclarationsCheck.cpp
   30   if (DefaultArgRange.getEnd() != D->getEndLoc())
   45       DefaultArgRange.getEnd());
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp
  363       SourceMgr.getFileID(Range.getEnd())) {
  510       SM.getCharacterData(Range.getEnd().getLocWithOffset(1), &Invalid);
  515       SourceRange(Range.getBegin(), Range.getEnd().getLocWithOffset(Offset));
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
  201         CharSourceRange::getCharRange(BraceRange.getEnd(),
  202                                       BraceRange.getEnd().getLocWithOffset(1)),
  274   SourceLocation NewEnd = NewRange.getEnd();
  356       Diag << FixItHint::CreateRemoval(SourceRange(InitRange.getEnd(), NewEnd));
  397             NewConstruct->getParenOrBraceRange().getEnd().getLocWithOffset(-1));
  419           New->getInitializer()->getSourceRange().getEnd());
  424         SourceRange(InitRange.getEnd().getLocWithOffset(1), NewEnd));
tools/clang/tools/extra/clang-tidy/modernize/ReturnBracedInitListCheck.cpp
   91        << FixItHint::CreateReplacement(CallParensRange.getEnd(), "}");
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
  251       Lexer::getLocForEndOfToken(Field->getSourceRange().getEnd(), 0,
tools/clang/tools/extra/clang-tidy/modernize/UseEmplaceCheck.cpp
  160            CallParensRange.getEnd(), CallParensRange.getEnd()));
  160            CallParensRange.getEnd(), CallParensRange.getEnd()));
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  119     return Lexer::getLocForEndOfToken(ExceptionSpecRange.getEnd(), 0, SM,
  286   ReturnTypeRange.setEnd(expandIfMacroId(ReturnTypeRange.getEnd(), SM));
  302     if (SM.isBeforeInTranslationUnit(ReturnTypeRange.getEnd(),
  312   assert(!ReturnTypeRange.getEnd().isMacroID() &&
  344         SM.isBeforeInTranslationUnit(ReturnTypeCVRange.getEnd(),
  458       Lexer::getLocForEndOfToken(ReturnTypeCVRange.getEnd(), 0, SM, LangOpts);
tools/clang/tools/extra/clang-tidy/performance/NoexceptMoveConstructorCheck.cpp
   59                                        .getEnd();
tools/clang/tools/extra/clang-tidy/readability/ConvertMemberFunctionsToStatic.cpp
   99       SourceMgr.getFileID(Range.getEnd()))
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  675   if (Range.getBegin().isInvalid() || Range.getEnd().isInvalid())
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp
   53   return R.getBegin().isMacroID() || R.getEnd().isMacroID();
  211         CharSourceRange::getCharRange(Range.getBegin(), Range.getEnd()), SM,
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.cpp
  187       OldCommentRange.getBegin() != OldCommentRange.getEnd()
tools/clang/tools/extra/clang-tidy/readability/RedundantControlFlowCheck.cpp
   89                  StmtRange.getEnd(), tok::semi, SM, getLangOpts(),
tools/clang/tools/extra/clang-tidy/readability/RedundantDeclarationCheck.cpp
   75       D->getSourceRange().getEnd(), 0, SM, Result.Context->getLangOpts());
tools/clang/tools/extra/clang-tidy/readability/StaticDefinitionInAnonymousNamespaceCheck.cpp
   48   while (Loc < Def->getSourceRange().getEnd() &&
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp
   81   llvm::Optional<SourceLocation> End = GetMacroAwareLocation(Loc.getEnd(), SM);
tools/clang/tools/extra/clang-tidy/utils/ASTUtils.cpp
   78       SM->isMacroArgExpansion(Range.getEnd(),
   87          Range.getBegin().isMacroID() || Range.getEnd().isMacroID();
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.cpp
  142     return FixItHint::CreateInsertion(LastIncludeLocation.getEnd(),
  167     return FixItHint::CreateInsertion(LastIncludeLocation.getEnd(),
  247         CurrentRange.getBegin() != CurrentRange.getEnd()) {
  249       if (EditRange.getBegin() != EditRange.getEnd()) {
  251         CurrentRange.setEnd(EditRange.getEnd());
tools/clang/tools/extra/clang-tidy/utils/LexerUtils.cpp
   77   while (Loc < Range.getEnd()) {
tools/clang/tools/extra/clangd/Selection.cpp
  321     auto E = SM.getDecomposedLoc(S.getEnd());
  398     auto E = SM.getDecomposedLoc(Range->getEnd());
tools/clang/tools/extra/clangd/SemanticSelection.cpp
   57     R.end = sourceLocToPosition(SM, SR->getEnd());
tools/clang/tools/extra/clangd/SourceCode.cpp
  348   if (!R.getBegin().isValid() || !R.getEnd().isValid())
  357   std::tie(EndFID, EndOffset) = Mgr.getDecomposedLoc(R.getEnd());
  369   size_t EndOffset = Mgr.getFileOffset(R.getEnd());
  379   return L == R.getEnd() || halfOpenRangeContains(Mgr, R, L);
  453       SM.isBeforeInTranslationUnit(getLocForTokenEnd(R1.getEnd(), SM, LangOpts),
  454                                    getLocForTokenEnd(R2.getEnd(), SM, LangOpts))
  455           ? R2.getEnd()
  456           : R1.getEnd();
  466   if (SM.isWrittenInSameFile(R.getBegin(), R.getEnd()))
  478   for (SourceLocation End = R.getEnd(); End.isValid();
  482                                   .getEnd()) {
  521           SM.getImmediateSpellingLoc(FileRange.getEnd()), SM, LangOpts);
  522       assert(SM.isWrittenInSameFile(FileRange.getBegin(), FileRange.getEnd()));
  527           getExpansionTokenRangeInSameFile(FileRange.getEnd(), SM, LangOpts);
  552   SourceRange R2 = getTokenFileRange(R.getEnd(), SM, LangOpts);
  558   unsigned TokLen = getTokenLengthAtLoc(Result.getEnd(), SM, LangOpts);
  560   Result.setEnd(Result.getEnd().getLocWithOffset(TokLen));
  574   size_t EndOffset = SM.getFileOffset(R.getEnd());
tools/clang/tools/extra/clangd/refactor/tweaks/DefineInline.cpp
  219       SM.getFileOffset(OrigBodyRange->getEnd()));
  350     unsigned int SourceLen = SM.getFileOffset(DefRange->getEnd()) -
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp
  211     SR.setEnd(EndFileRange->getEnd());
  574                                ExtZone.ZoneRange.getEnd().getLocWithOffset(-1)};
  579   ExtZone.ZoneRange.setEnd(FuncBodyRange.getEnd().getLocWithOffset(1));
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp
  166       SM.getFileOffset(Chars.getEnd()) - SM.getFileOffset(Chars.getBegin());
  308           ->getEnd());
tools/clang/tools/extra/clangd/unittests/SelectionTests.cpp
   52       offsetToPosition(Buffer, SM.getFileOffset(FileRange->getEnd()))};
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp
  556                  sourceLocToPosition(SM, SrcRange.getEnd())};
  597   EXPECT_EQ(AST.getSourceManager().getFileOffset(Range->getEnd()),
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp
  305   clang::SourceLocation EndLoc = Range.getEnd();
  385     clang::SourceLocation EndLoc(Range.getEnd());
  856     clang::SourceLocation BlockEndLoc = BlockSourceRange.getEnd();
tools/clang/tools/extra/pp-trace/PPCallbacksTracker.cpp
  520      << getSourceLocationString(PP, Value.getEnd()) << "]";
tools/clang/tools/libclang/CIndex.cpp
  112   if (R1.getEnd() != R2.getBegin() &&
  113       SM.isBeforeInTranslationUnit(R1.getEnd(), R2.getBegin()))
  115   if (R2.getEnd() != R1.getBegin() &&
  116       SM.isBeforeInTranslationUnit(R2.getEnd(), R1.getBegin()))
  127   if (L == R.getBegin() || L == R.getEnd())
  131   if (SM.isBeforeInTranslationUnit(R.getEnd(), L))
  243     if (FID != SM.getFileID(SM.getFileLoc(R.getEnd())))
  261     End = SM.getDecomposedLoc(SM.getFileLoc(RegionOfInterest.getEnd())); 
  409     SourceLocation E = MappedRange.getEnd();
  573       BeginLoc == RegionOfInterest.getEnd()) {
 1018   SourceLocation EndLoc = D->getSourceRange().getEnd();
 2671       AddMemberRef(Node.getField(), Node.getSourceRange().getEnd());
 3254     SourceRange R(Pieces.front().getBegin(), Pieces.back().getEnd());
 6707     = SourceMgr.getDecomposedSpellingLoc(Range.getEnd());
 7318           RefNameRange.getEnd().getLocWithOffset(-1);
 7368     if (macroRange.getBegin() == macroRange.getEnd())
 7382       if (!SM.isBeforeInTranslationUnit(tokLoc, macroRange.getEnd()))
 7448     = SourceMgr.getDecomposedSpellingLoc(RegionOfInterest.getEnd());
 8684     if (sm.getFileID(i->getBegin()) == wantedFileID || sm.getFileID(i->getEnd()) == wantedFileID)
 8686     else if (isMainFile && (astUnit->isInPreambleFileID(i->getBegin()) || astUnit->isInPreambleFileID(i->getEnd())))
 8851   if (SM.isBeforeInTranslationUnit(DefRange.getEnd(), Tok.getLocation()))
tools/clang/tools/libclang/CXCursor.cpp
  109         RegionOfInterest.getBegin() == RegionOfInterest.getEnd()) {
  565         RegionOfInterest.getBegin() == RegionOfInterest.getEnd()) {
  885                    Range.getEnd().getPtrEncoding(),
tools/clang/unittests/AST/ASTImporterTest.cpp
 1737   CompareSourceLocs(FullSourceLoc{ Range1.getEnd(), SM1 },
 1738                     FullSourceLoc{ Range2.getEnd(), SM2 });
tools/clang/unittests/AST/MatchVerifier.h
  231     SourceLocation End = R.getEnd();
tools/clang/unittests/Lex/LexerTest.cpp
  535       Lexer::isAtEndOfMacroExpansion(R.getEnd(), SourceMgr, LangOpts));
tools/clang/unittests/Tooling/CommentHandlerTest.cpp
   42                   SM.getCharacterData(Loc.getEnd()));
tools/clang/unittests/Tooling/RangeSelectorTest.cpp
  157   const SourceLocation SemiLoc = Range.getEnd().getLocWithOffset(1);