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

References

tools/clang/include/clang/AST/ASTContext.h
  799            !SourceMgr.isInSystemHeader(RC.getSourceRange().getBegin()));
tools/clang/include/clang/AST/Attr.h
   92   SourceLocation getLocation() const { return getRange().getBegin(); }
tools/clang/include/clang/AST/Comment.h
  217   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
tools/clang/include/clang/AST/DeclBase.h
  422     return getSourceRange().getBegin();
tools/clang/include/clang/AST/DeclCXX.h
  191   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
tools/clang/include/clang/AST/DeclTemplate.h
  727     return AngleLocs.getBegin();
tools/clang/include/clang/AST/DeclarationName.h
  762     LocInfo.CXXOperatorName.BeginOpNameLoc = R.getBegin().getRawEncoding();
tools/clang/include/clang/AST/Expr.h
 2224   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
tools/clang/include/clang/AST/ExprCXX.h
  139   SourceLocation getBeginLoc() const { return Range.getBegin(); }
  831   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
 1059   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
 2035     return IntroducerRange.getBegin();
 2339   SourceLocation getBeginLoc() const { return Range.getBegin(); }
 3980   SourceLocation getBeginLoc() const { return Range.getBegin(); }
tools/clang/include/clang/AST/ExprObjC.h
  155   SourceLocation getAtLoc() const { return Range.getBegin(); }
  157   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
  214   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
  378   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
 1448     LBracLoc = R.getBegin();
tools/clang/include/clang/AST/NestedNameSpecifier.h
  293     return getSourceRange().getBegin();
  305     return getLocalSourceRange().getBegin();
tools/clang/include/clang/AST/RawCommentList.h
  106   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
tools/clang/include/clang/AST/TemplateBase.h
  492     return getSourceRange().getBegin();
tools/clang/include/clang/AST/Type.h
 3036   SourceLocation getLBracketLoc() const { return Brackets.getBegin(); }
 3093   SourceLocation getLBracketLoc() const { return Brackets.getBegin(); }
tools/clang/include/clang/AST/TypeLoc.h
  552     return getLocalData()->BuiltinRange.getBegin();
  561     if (!BuiltinRange.getBegin().isValid()) {
  564       BuiltinRange.setBegin(std::min(Range.getBegin(), BuiltinRange.getBegin()));
  564       BuiltinRange.setBegin(std::min(Range.getBegin(), BuiltinRange.getBegin()));
 1840       setLParenLoc(range.getBegin());
 1933     setLParenLoc(Range.getBegin());
 2280     setLParenLoc(Range.getBegin());
tools/clang/include/clang/Basic/AttributeCommonInfo.h
  129   SourceLocation getLoc() const { return AttrRange.getBegin(); }
tools/clang/include/clang/Basic/SourceLocation.h
  264   SourceLocation getBegin() const { return Range.getBegin(); }
tools/clang/include/clang/Basic/SourceManager.h
 1186     SourceLocation Begin = getExpansionRange(Range.getBegin()).getBegin();
 1887     return SM.isBeforeInTranslationUnit(LHS.getBegin(), RHS.getBegin());
 1887     return SM.isBeforeInTranslationUnit(LHS.getBegin(), RHS.getBegin());
tools/clang/include/clang/Frontend/ASTUnit.h
  573     return SourceRange(mapLocationFromPreamble(R.getBegin()),
  579     return SourceRange(mapLocationToPreamble(R.getBegin()),
tools/clang/include/clang/Lex/Lexer.h
  400                                  Range.getBegin(), End);
tools/clang/include/clang/Lex/PreprocessingRecord.h
  161     SourceLocation getLocation() const { return getSourceRange().getBegin(); }
tools/clang/include/clang/Lex/Token.h
  164     setLocation(R.getBegin());
tools/clang/include/clang/Rewrite/Core/HTMLRewrite.h
   42     HighlightRange(R, Range.getBegin(), Range.getEnd(), StartTag, EndTag);
tools/clang/include/clang/Rewrite/Core/Rewriter.h
  152     return RemoveText(range.getBegin(), getRangeSize(range, opts), opts);
  172     return ReplaceText(range.getBegin(), getRangeSize(range), NewStr);
tools/clang/include/clang/Sema/DeclSpec.h
   72   SourceLocation getBeginLoc() const { return Range.getBegin(); }
  201     if (Range.getBegin().isInvalid())
  202       Range.setBegin(R.getBegin());
  498   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
  501   SourceLocation getTypeSpecWidthLoc() const { return TSWRange.getBegin(); }
 1900   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
 1920     if (Range.getBegin().isInvalid())
 1921       Range.setBegin(SR.getBegin());
tools/clang/include/clang/Sema/Initialization.h
  624     return InitializationKind(IK_Direct, IC_StaticCast, TypeRange.getBegin(),
  625                               TypeRange.getBegin(), TypeRange.getEnd());
  635                               IC_CStyleCast, StartLoc, TypeRange.getBegin(),
  643                               IC_FunctionalCast, TypeRange.getBegin(),
  644                               TypeRange.getBegin(), TypeRange.getEnd());
tools/clang/include/clang/Serialization/ASTBitCodes.h
  188         : Begin(R.getBegin().getRawEncoding()),
  208         : Begin(R.getBegin().getRawEncoding()),
tools/clang/include/clang/Tooling/Refactoring/Rename/SymbolOccurrences.h
   74                                 RangeOrNumRanges.getBegin().getRawEncoding());
tools/clang/lib/ARCMigrate/ARCMT.cpp
   39         !diagLoc.isBeforeInTranslationUnitThan(range.getBegin()) &&
   68         !diagLoc.isBeforeInTranslationUnitThan(range.getBegin()) &&
tools/clang/lib/ARCMigrate/ObjCMT.cpp
  292       commit.replace(SourceRange(MsgRange.getBegin(), MsgRange.getBegin()), "");
  292       commit.replace(SourceRange(MsgRange.getBegin(), MsgRange.getBegin()), "");
  316       commit.replace(SourceRange(MsgRange.getBegin(), MsgRange.getBegin()), "");
  316       commit.replace(SourceRange(MsgRange.getBegin(), MsgRange.getBegin()), "");
  787   SourceLocation EndLoc = EnumDcl->getBraceRange().getBegin();
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp
  137               SourceRange(scope.getIndentedRange().getBegin(),
  289       if (SM.isBeforeInTranslationUnit(loc, ScopeRange.getBegin()))
tools/clang/lib/ARCMigrate/TransProtectedScope.cpp
  193     return !SM.isBeforeInTranslationUnit(Loc, R.getBegin()) &&
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp
  382     if (SM.isMacroArgExpansion(RecRange.getBegin()))
  383       RecRange.setBegin(SM.getImmediateSpellingLoc(RecRange.getBegin()));
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp
  286     SourceLocation InnerBegin = SM.getImmediateMacroCallerLoc(SubRange.getBegin());
  299     Pass.TA.insert(InnerRange.getBegin(), "[");
tools/clang/lib/ARCMigrate/TransUnusedInitDelegate.cpp
   58       Pass.TA.insert(ExprRange.getBegin(), "if (!(self = ");
tools/clang/lib/ARCMigrate/TransformActions.cpp
  326   insert(range.getBegin(), text);
  410   return canInsert(range.getBegin()) && canInsertAfterToken(range.getEnd());
  457     commitInsert(E->getSourceRange().getBegin(), getARCMTMacroName());
  471   if (range.getBegin() != replacementRange.getBegin())
  471   if (range.getBegin() != replacementRange.getBegin())
  472     addRemoval(CharSourceRange::getCharRange(range.getBegin(),
  473                                              replacementRange.getBegin()));
tools/clang/lib/ARCMigrate/Transforms.cpp
  535         TA.insert(FinalizeM->getSourceRange().getBegin(),
tools/clang/lib/AST/ASTImporter.cpp
 8284                         ToSourceRangeOrErr->getBegin(),
 8404   if (Error Err = importInto(ToBegin, FromRange.getBegin()))
tools/clang/lib/AST/CommentSema.cpp
  751       Diag(ArgRange.getBegin(), diag::warn_doc_param_duplicate)
  775     Diag(ArgRange.getBegin(), diag::warn_doc_param_not_found)
  795         Diag(ArgRange.getBegin(), diag::note_doc_param_name_suggestion)
tools/clang/lib/AST/DeclCXX.cpp
 2415     return TSInfo->getTypeLoc().getLocalSourceRange().getBegin();
tools/clang/lib/AST/DeclTemplate.cpp
  632     ? getDefaultArgument()->getSourceRange().getBegin()
tools/clang/lib/AST/ExprCXX.cpp
  330   Location = Info->getTypeLoc().getLocalSourceRange().getBegin();
tools/clang/lib/AST/JSONNodeDumper.cpp
  255                       [R, this] { writeSourceLocation(R.getBegin()); });
tools/clang/lib/AST/MicrosoftMangle.cpp
 2142     Diags.Report(Range.getBegin(), DiagID)
 2433   Diags.Report(Range.getBegin(), DiagID)
 2583   Diags.Report(Range.getBegin(), DiagID)
 2592   Diags.Report(Range.getBegin(), DiagID)
 2741   Diags.Report(Range.getBegin(), DiagID) << Range;
 2749   Diags.Report(Range.getBegin(), DiagID)
 2759   Diags.Report(Range.getBegin(), DiagID) << Range;
 2832   Diags.Report(Range.getBegin(), DiagID)
 2841   Diags.Report(Range.getBegin(), DiagID)
 2851   Diags.Report(Range.getBegin(), DiagID)
 2860   Diags.Report(Range.getBegin(), DiagID)
 2869   Diags.Report(Range.getBegin(), DiagID)
 2878   Diags.Report(Range.getBegin(), DiagID)
 2887   Diags.Report(Range.getBegin(), DiagID)
 2896   Diags.Report(Range.getBegin(), DiagID)
 2907   Diags.Report(Range.getBegin(), DiagID)
 2918   Diags.Report(Range.getBegin(), DiagID)
 2941   Diags.Report(Range.getBegin(), DiagID)
tools/clang/lib/AST/NestedNameSpecifier.cpp
  429   return SourceRange(First.getLocalSourceRange().getBegin(),
  656         SaveSourceLocation(R.getBegin(), Buffer, BufferSize, BufferCapacity);
  663                                            R.getBegin());
  675     SaveSourceLocation(Stack.empty()? R.getEnd() : R.getBegin(),
tools/clang/lib/AST/RawCommentList.cpp
  114   if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) {
  128         SourceMgr.getDecomposedLoc(Range.getBegin());
  158       SourceMgr.getDecomposedLoc(Range.getBegin());
  188                     Range.getBegin(),
  210                     getSourceRange().getBegin(),
  369   comments::Lexer L(Allocator, Diags, EmptyTraits, getSourceRange().getBegin(),
tools/clang/lib/AST/Stmt.cpp
  904       DeclStmt(DeclGroupRef(V), VarRange.getBegin(), VarRange.getEnd());
  939   SubExprs[CONDVAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(),
 1005       DeclStmt(DeclGroupRef(V), VarRange.getBegin(), VarRange.getEnd());
 1061       DeclStmt(DeclGroupRef(V), VarRange.getBegin(), VarRange.getEnd());
tools/clang/lib/AST/TextNodeDumper.cpp
  376   dumpLocation(R.getBegin());
  377   if (R.getBegin() != R.getEnd()) {
tools/clang/lib/AST/TypeLoc.cpp
  214       if (Cur.getLocalSourceRange().getBegin().isValid())
  223   return LeftMost.getLocalSourceRange().getBegin();
tools/clang/lib/Analysis/PathDiagnostic.cpp
  182           SourceLocation L = SMgr.getExpansionLoc(I.getBegin());
  288       if (XR.getBegin() != YR.getBegin())
  288       if (XR.getBegin() != YR.getBegin())
  289         return SM.isBeforeInTranslationUnit(XR.getBegin(), YR.getBegin());
  289         return SM.isBeforeInTranslationUnit(XR.getBegin(), YR.getBegin());
 1070   ID.AddInteger(Range.getBegin().getRawEncoding());
 1082     ID.AddInteger(I.getBegin().getRawEncoding());
tools/clang/lib/Analysis/ReachableCode.cpp
  227         if (SilenceableCondVal && !SilenceableCondVal->getBegin().isValid())
  253           SilenceableCondVal && SilenceableCondVal->getBegin().isInvalid();
  260           SilenceableCondVal->getBegin().isValid() &&
tools/clang/lib/CodeGen/CGObjC.cpp
 1634     DI->EmitLexicalBlockStart(Builder, S.getSourceRange().getBegin());
tools/clang/lib/CodeGen/CGStmt.cpp
  718                  SourceLocToDebugLoc(R.getBegin()),
  820                  SourceLocToDebugLoc(R.getBegin()),
  878                  SourceLocToDebugLoc(R.getBegin()),
  979                  SourceLocToDebugLoc(R.getBegin()),
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
 1404   LoopStack.push(CondBlock, SourceLocToDebugLoc(R.getBegin()),
 1883   LoopStack.push(CondBlock, SourceLocToDebugLoc(R.getBegin()),
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 1183   StartFunction(GD, ResTy, Fn, FnInfo, Args, Loc, BodyRange.getBegin());
tools/clang/lib/CodeGen/CodeGenFunction.h
  781         DI->EmitLexicalBlockStart(CGF.Builder, Range.getBegin());
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  288       auto LocStart = I.getBegin();
  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
  192   commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(),
  193                                                        ArgRange.getBegin()),
  195   commit.replaceWithInner(SourceRange(ArgRange.getBegin(), MsgRange.getEnd()),
  241   commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(),
  242                                                        Arg0Range.getBegin()),
  244   commit.replaceWithInner(CharSourceRange::getCharRange(Arg0Range.getBegin(),
  245                                                        Arg1Range.getBegin()),
  247   commit.replaceWithInner(SourceRange(Arg1Range.getBegin(), MsgRange.getEnd()),
  249   commit.insertWrap("[", CharSourceRange::getCharRange(Arg0Range.getBegin(),
  250                                                        Arg1Range.getBegin()),
  275   SourceLocation LocBeforeVal = Arg0Range.getBegin();
  280   commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(),
  281                                                        Arg0Range.getBegin()),
  283   commit.replaceWithInner(SourceRange(Arg0Range.getBegin(), MsgRange.getEnd()),
  512     commit.insertBefore(ValRange.getBegin(), ": ");
  513     commit.insertFromRange(ValRange.getBegin(),
  516     commit.insertBefore(ValRange.getBegin(), "@{");
  546       commit.remove(CharSourceRange::getCharRange(ValRange.getBegin(),
  547                                                   KeyRange.getBegin()));
  651     commit.insert(ArgRange.getBegin(), "@");
  665     commit.insert(ArgRange.getBegin(), "@");
  685   if (literalRange.getBegin().isMacroID() ||
  746   SourceLocation B = literalRange.getBegin();
  833     commit.insert(ArgRange.getBegin(), "@");
  839   if (ArgRange.getBegin().isMacroID())
  960   commit.insertBefore(Range.getBegin(), "(id)");
 1110     commit.insertBefore(ArgRange.getBegin(), "@");
 1149         commit.insertBefore(ArgRange.getBegin(), "@");
tools/clang/lib/Format/AffectedRangeManager.cpp
   75   SourceLocation Start = First.WhitespaceRange.getBegin();
   86       Tok.WhitespaceRange.getBegin(),
   87       Tok.WhitespaceRange.getBegin().getLocWithOffset(Tok.LastNewlineOffset));
tools/clang/lib/Format/ContinuationIndenter.cpp
  526           SourceMgr.getSpellingColumnNumber(Current.WhitespaceRange.getBegin());
tools/clang/lib/Format/Format.cpp
 1382         if (Tok->WhitespaceRange.getBegin() == Tok->WhitespaceRange.getEnd()) {
 1402             Tok->WhitespaceRange.getBegin() != Tok->WhitespaceRange.getEnd();
 1403         bool SpaceAfter = Tok->Next->WhitespaceRange.getBegin() !=
tools/clang/lib/Format/FormatTokenLexer.cpp
  289   if (First[1]->WhitespaceRange.getBegin() !=
  311     if (!First[i]->is(Kinds[i]) || First[i]->WhitespaceRange.getBegin() !=
tools/clang/lib/Format/SortJavaScriptImports.cpp
  233     return getSourceText(Range.getBegin(), Range.getEnd());
  259     SourceLocation SymbolsStart = Reference.Symbols.front().Range.getBegin();
  261     Buffer += getSourceText(Reference.Range.getBegin(), SymbolsStart);
  419           Current->getPreviousNonComment()->Next->WhitespaceRange.getBegin());
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
  828       FormatTok->WhitespaceRange.getBegin() ==
tools/clang/lib/Format/UsingDeclarationsSorter.cpp
  142           (*UsingDeclarations)[I].Line->First->WhitespaceRange.getBegin();
tools/clang/lib/Format/WhitespaceManager.cpp
   23       C1.OriginalWhitespaceRange.getBegin(),
   24       C2.OriginalWhitespaceRange.getBegin());
  109         Changes[i].OriginalWhitespaceRange.getBegin();
  752       assert(Changes[i - 1].OriginalWhitespaceRange.getBegin() !=
  753                  C.OriginalWhitespaceRange.getBegin() &&
  775                               SourceMgr.getFileOffset(Range.getBegin());
  777   if (StringRef(SourceMgr.getCharacterData(Range.getBegin()),
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  278       if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) {
 1148   ReplaceText(CatDecl->getAtEndRange().getBegin(),
 1167   SourceLocation LocEnd = PDecl->getAtEndRange().getBegin();
 1403     ReplaceText(ClassDecl->getAtEndRange().getBegin(), strlen("@end"),
 7542       PE = new (Context) ParenExpr(OldRange.getBegin(),
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  229       if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) {
  980   ReplaceText(CatDecl->getAtEndRange().getBegin(),
  999   SourceLocation LocEnd = PDecl->getAtEndRange().getBegin();
 1223   ReplaceText(ClassDecl->getAtEndRange().getBegin(), strlen("@end"),
 5828       ParenExpr *PE = new (Context) ParenExpr(OldRange.getBegin(),
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
  754   SourceLocation CommentBegin = Comment.getBegin();
tools/clang/lib/Index/IndexingAction.cpp
   36                                    Range.getBegin(), *MD.getMacroInfo());
tools/clang/lib/Lex/PPConditionalDirectiveRecord.cpp
   29       CondDirectiveLocs, Range.getBegin(), CondDirectiveLoc::Comp(SourceMgr));
tools/clang/lib/Lex/PPDirectives.cpp
 1554   Tok[0].setLocation(Range.getBegin());
tools/clang/lib/Lex/PPExpressions.cpp
  530     PP.Diag(LHS.getRange().getBegin(), diag::err_pp_expr_bad_token_lparen)
tools/clang/lib/Lex/PPMacroExpansion.cpp
  933       DB << FixItHint::CreateInsertion(ParenLocation.getBegin(), "(");
tools/clang/lib/Lex/PreprocessingRecord.cpp
   83   SourceLocation Loc = PPE->getSourceRange().getBegin();
  139   assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
  145   if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin()))
  171   assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
  173   unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin());
  204     return (Range.*getRangeLoc)();
  247                              PPEntityComp<&SourceRange::getBegin>(SourceMgr));
  254   SourceLocation BeginLoc = Entity->getSourceRange().getBegin();
  260                 PreprocessedEntities.back()->getSourceRange().getBegin())) &&
  269                    PreprocessedEntities.back()->getSourceRange().getBegin())) {
  297                                            (*I)->getSourceRange().getBegin())) {
  307                         PPEntityComp<&SourceRange::getBegin>(SourceMgr));
  434   SkippedRanges.emplace_back(Range.getBegin(), EndifLoc);
tools/clang/lib/Parse/ParseDecl.cpp
 1113           Diag(MessageStringLiteral->getSourceRange().getBegin(),
 1683     Diag(Range.getBegin(), diag::err_attributes_not_allowed) << Range;
 4189                                FD.D.getDeclSpec().getSourceRange().getBegin(),
 5851         if (D.getSourceRange().getBegin().isInvalid())
 5852           D.SetRangeBegin(D.getName().getSourceRange().getBegin());
tools/clang/lib/Parse/ParseDeclCXX.cpp
  342                 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(),
  695       Diag(MisplacedAttrs.Range.getBegin(), diag::err_attributes_not_allowed)
  740         Diag(D.Name.getSourceRange().getBegin(),
  806     Diag(Range.getBegin(), diag::err_alias_declaration_specialization)
 1760       Diag(AttrRange.getBegin(), diag::err_attributes_not_allowed)
 2804         Diag((*I).getBegin(), diag::err_attributes_not_allowed) << *I;
 3704     P.Diag(Range.getBegin(),
 3709     P.Diag(Range.getBegin(), diag::note_exception_spec_deprecated)
 3735     SpecificationRange.setEnd(SpecificationRange.getBegin());
tools/clang/lib/Parse/ParseExpr.cpp
  496                          SourceRange(Actions.getExprRange(LHS.get()).getBegin(),
tools/clang/lib/Parse/ParseExprCXX.cpp
  297           Diag(TemplateName.getSourceRange().getBegin(),
 1219   SourceLocation LambdaBeginLoc = Intro.Range.getBegin();
tools/clang/lib/Parse/ParseObjc.cpp
 1973           getCurScope(), FD.D.getDeclSpec().getSourceRange().getBegin(), FD.D,
 2233     Diag(atEnd.getBegin(), diag::err_expected_objc_container);
 2253   P.Actions.DefaultSynthesizeProperties(P.getCurScope(), Dcl, AtEnd.getBegin());
tools/clang/lib/Parse/ParseOpenMP.cpp
  275           Actions.ActOnOpenMPDeclareReductionType(Range.getBegin(), TR);
  278             std::make_pair(ReductionType, Range.getBegin()));
  532         Actions.ActOnOpenMPDeclareMapperType(Range.getBegin(), ParsedType);
  550       Range.getBegin(), VName, AS);
  560       DMD, getCurScope(), MapperType, Range.getBegin(), VName);
tools/clang/lib/Parse/ParsePragma.cpp
 1389   if (FixItRange.getBegin() == FixItRange.getEnd())
 1390     Diagnostic << FixItHint::CreateInsertion(FixItRange.getBegin(), FixIt);
tools/clang/lib/Parse/ParseStmt.cpp
  223       if (Attrs.Range.getBegin().isValid())
  224         DeclStart = Attrs.Range.getBegin();
tools/clang/lib/Parse/ParseTemplate.cpp
 1115   SourceLocation TemplateNameLoc = TemplateName.getSourceRange().getBegin();
tools/clang/lib/Parse/Parser.cpp
   97     << FixItHint::CreateInsertion(ParenRange.getBegin(), "(")
 1147     D.SetRangeBegin(D.getDeclSpec().getSourceRange().getBegin());
tools/clang/lib/Rewrite/Rewriter.cpp
  331   if (!isRewritable(range.getBegin())) return true;
  334   SourceLocation start = range.getBegin();
  338   unsigned newOffs = getLocationOffsetAndFileID(replacementRange.getBegin(),
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
   93       SourceLocation Open = SilenceableCondVal.getBegin();
  959     S.Diag(Range.getBegin(), diag::warn_sometimes_uninit_var)
tools/clang/lib/Sema/DeclSpec.cpp
   49   if (Range.getBegin().isInvalid())
   62   if (Range.getBegin().isInvalid())
   75   if (Range.getBegin().isInvalid())
   88   if (Range.getBegin().isInvalid())
  196   I.Fun.ExceptionSpecLocBeg     = ESpecRange.getBegin().getRawEncoding();
 1078         TSWRange.getBegin(), TSCLoc,       TSSLoc,
 1122         S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_bool_decl_spec)
 1140         S.Diag(TSWRange.getBegin(),
 1154         S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_long_decl_spec);
 1156         S.Diag(TSWRange.getBegin(),
 1196       S.Diag(TSWRange.getBegin(), diag::err_invalid_width_spec)
 1208       S.Diag(TSWRange.getBegin(), diag::err_invalid_width_spec)
tools/clang/lib/Sema/JumpDiagnostics.cpp
  392                                  TS->getSourceRange().getBegin()));
  404                                  CS->getSourceRange().getBegin()));
  417                                  TS->getSourceRange().getBegin()));
  428                                  Except->getSourceRange().getBegin()));
  435                                  Finally->getSourceRange().getBegin()));
tools/clang/lib/Sema/Sema.cpp
 1879       SourceMgr.isInSystemHeader(Comment.getBegin()))
 1883     SourceRange MagicMarkerRange(Comment.getBegin(),
 1884                                  Comment.getBegin().getLocWithOffset(3));
 1897     Diag(Comment.getBegin(), diag::warn_not_a_doxygen_trailing_member_comment) <<
tools/clang/lib/Sema/SemaAccess.cpp
 1248   S.Diag(base->getSourceRange().getBegin(), diagnostic)
tools/clang/lib/Sema/SemaAttr.cpp
  634     return CharSourceRange::getCharRange(Range.getBegin(), AfterCommaLoc);
  682         Diag(Rule.second.getBegin(),
  708             It->second.second.getBegin(),
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp
  221   if (loc.isInvalid()) loc = SS.getRange().getBegin();
  946       R.setBegin(SS.getRange().getBegin());
tools/clang/lib/Sema/SemaCast.cpp
  393     = (CT == CT_CStyle)? InitializationKind::CreateCStyleCast(range.getBegin(),
  436       PartialDiagnosticAt(range.getBegin(),
  453   S.Diag(opRange.getBegin(), msg) << castType
  732     Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ref_or_ptr)
  742     if (Self.RequireCompleteType(OpRange.getBegin(), DestPointee,
  749     Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class)
  765       Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ptr)
  772       Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_rvalue)
  787     if (Self.RequireCompleteType(OpRange.getBegin(), SrcPointee,
  794     Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class)
  808     Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_qualifiers_away)
  824       Self.IsDerivedFrom(OpRange.getBegin(), SrcPointee, DestPointee)) {
  826                                            OpRange.getBegin(), OpRange,
  840     Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_polymorphic)
  849     Self.Diag(OpRange.getBegin(), diag::err_no_dynamic_cast_with_fno_rtti);
  874     Self.Diag(OpRange.getBegin(), msg) << CT_Const
  965   SourceLocation BeginLoc = OpRange.getBegin();
  996       Self.Diag(OpRange.getBegin(), diag::err_bad_reinterpret_cast_overload)
 1062       Self.Diag(OpRange.getBegin(), diag::err_bad_static_cast_overload)
 1244           Self.Diag(OpRange.getBegin(), diag::ext_ms_cast_fn_obj) << OpRange;
 1423   if (!Self.isCompleteType(OpRange.getBegin(), SrcType) ||
 1424       !Self.isCompleteType(OpRange.getBegin(), DestType))
 1434   if (!Self.IsDerivedFrom(OpRange.getBegin(), DestType, SrcType, Paths)) {
 1470       Self.IsDerivedFrom(OpRange.getBegin(), DestType, SrcType, Paths);
 1485     Self.Diag(OpRange.getBegin(), diag::err_ambiguous_base_to_derived_cast)
 1495     Self.Diag(OpRange.getBegin(), diag::err_static_downcast_via_virtual)
 1502     switch (Self.CheckBaseClassAccess(OpRange.getBegin(),
 1561     (void)Self.isCompleteType(OpRange.getBegin(), SrcType);
 1562     (void)Self.isCompleteType(OpRange.getBegin(), DestType);
 1575   if (!Self.IsDerivedFrom(OpRange.getBegin(), SrcClass, DestClass, Paths))
 1583         Self.IsDerivedFrom(OpRange.getBegin(), SrcClass, DestClass, Paths);
 1587     Self.Diag(OpRange.getBegin(), diag::err_ambiguous_memptr_conv)
 1594     Self.Diag(OpRange.getBegin(), diag::err_memptr_conv_via_virtual)
 1601     switch (Self.CheckBaseClassAccess(OpRange.getBegin(),
 1653     if (Self.RequireCompleteType(OpRange.getBegin(), DestType,
 1655         Self.RequireNonAbstractType(OpRange.getBegin(), DestType,
 1665         ? InitializationKind::CreateCStyleCast(OpRange.getBegin(), OpRange,
 1813   if (Diags.isIgnored(DiagID, Range.getBegin()))
 1853   Diag(Range.getBegin(), DiagID) << SrcType << DestType << Range;
 1917   Self.Diag(OpRange.getBegin(), diag::warn_cast_calling_conv)
 1923   if (Self.Diags.isIgnored(diag::warn_cast_calling_conv, OpRange.getBegin()))
 2069       Self.Diag(OpRange.getBegin(), diag::err_bad_reinterpret_cast_reference)
 2100       (void)Self.isCompleteType(OpRange.getBegin(), SrcType);
 2101       (void)Self.isCompleteType(OpRange.getBegin(), DestType);
 2220     checkIntToPointerCast(CStyle, OpRange.getBegin(), SrcExpr.get(), DestType,
 2297     Self.Diag(OpRange.getBegin(),
 2306     Self.Diag(OpRange.getBegin(),
 2383         Self.Diag(OpRange.getBegin(), DiagID)
 2524         Self.Diag(OpRange.getBegin(), diag::err_bad_cstyle_cast_overload)
 2625   if (Self.RequireCompleteType(OpRange.getBegin(), DestType,
 2636       Self.Diag(OpRange.getBegin(), diag::ext_typecheck_cast_nonscalar)
 2646         Self.Diag(OpRange.getBegin(), diag::ext_typecheck_cast_to_union)
 2651         Self.Diag(OpRange.getBegin(), diag::err_typecheck_cast_to_union_no_type)
 2667         Self.Diag(OpRange.getBegin(),
 2676     Self.Diag(OpRange.getBegin(), diag::err_typecheck_cond_expect_scalar)
 2736     checkIntToPointerCast(/* CStyle */ true, OpRange.getBegin(), SrcExpr.get(),
 2804   if (Self.RequireCompleteType(OpRange.getBegin(), DestType,
 2806       Self.RequireCompleteType(OpRange.getBegin(), SrcType,
 2819     Self.Diag(OpRange.getBegin(), diag::err_bit_cast_type_size_mismatch)
 2826     Self.Diag(OpRange.getBegin(), diag::err_bit_cast_non_trivially_copyable)
 2833     Self.Diag(OpRange.getBegin(), diag::err_bit_cast_non_trivially_copyable)
 2914   Op.OpRange = SourceRange(Op.DestRange.getBegin(), CastExpr->getEndLoc());
tools/clang/lib/Sema/SemaChecking.cpp
  123   return S.Diag(range.getBegin(), diag::err_typecheck_call_too_many_args)
 4695     Diag(ExprRange.getBegin(), diag::err_atomic_builtin_must_be_pointer)
 4705       Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_atomic)
 4711       Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_non_const_atomic)
 4719       Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_non_const_pointer)
 4730       Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_atomic_int_or_ptr)
 4738         Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_int32_or_ptr);
 4743       Diag(ExprRange.getBegin(), diag::err_atomic_op_bitwise_needs_atomic_int)
 4755     Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_atomic_int_or_ptr)
 4764     Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_trivial_copy)
 4780     Diag(ExprRange.getBegin(), diag::err_arc_atomic_ownership)
 4856         CheckNonNullArgument(*this, APIOrderedArgs[i], ExprRange.getBegin());
 4871                                  ExprRange.getBegin());
 4879           CheckNonNullArgument(*this, ValArg, ExprRange.getBegin());
 4894           CheckNonNullArgument(*this, APIOrderedArgs[i], ExprRange.getBegin());
 4976       AtomicExpr(ExprRange.getBegin(), SubExprs, ResultType, Op, RParenLoc);
 7663       S.Diag(IsStringLocation ? Loc : StringRange.getBegin(),
 9295     RemovalRange = SourceRange(FirstRange.getBegin(),
 9296                                SecondRange.getBegin().getLocWithOffset(-1));
 9333   S.Diag(SizeRange.getBegin(), diag::note_memsize_comparison_cast_silence)
 9334       << FixItHint::CreateInsertion(SizeRange.getBegin(), "(size_t)(")
 9665             DSR = SourceRange(SM.getSpellingLoc(DSR.getBegin()),
 9667             SSR = SourceRange(SM.getSpellingLoc(SSR.getBegin()),
 9760         << FixItHint::CreateInsertion(ArgRange.getBegin(), "(void*)"));
 9941     SR = SourceRange(SM.getSpellingLoc(SR.getBegin()),
11319   SourceLocation Loc = E->getSourceRange().getBegin();
12232         IsInAnyMacroBody(SM, Range.getBegin()))
13137   if (getDiagnostics().isIgnored(diag::warn_cast_align, TRange.getBegin()))
13177   Diag(TRange.getBegin(), diag::warn_cast_align)
13791         Diag(Message->getSourceRange().getBegin(),
13807           Diag(Message->getSourceRange().getBegin(),
13821           Diag(Message->getSourceRange().getBegin(),
tools/clang/lib/Sema/SemaDecl.cpp
  755     Diag(SS->getRange().getBegin(), DiagID)
  757       << SourceRange(SS->getRange().getBegin(), IILoc)
  758       << FixItHint::CreateInsertion(SS->getRange().getBegin(), "typename ");
 9117                            NewFD->getReturnTypeSourceRange().getBegin(),
10635         Diag(RTRange.getBegin(), diag::note_main_change_return_type)
11217       Diag(Range.getBegin(),
11224       Diag(Range.getBegin(), diag::err_init_capture_deduction_failure)
12775       Diag(I->getRange().getBegin(),
12781       Diag(I->getRange().getBegin(),
14874         Diag(SS.getRange().getBegin(), diag::err_dependent_nested_name_spec)
tools/clang/lib/Sema/SemaDeclAttr.cpp
 2152     S.Diag(Range.getBegin(), diag::warn_availability_version_ordering)
 2160     S.Diag(Range.getBegin(), diag::warn_availability_version_ordering)
 2168     S.Diag(Range.getBegin(), diag::warn_availability_version_ordering)
 2507     S.Diag(AL.getRange().getBegin(), diag::warn_attribute_ignored) << AL;
 2516     S.Diag(AL.getRange().getBegin(), diag::err_attribute_wrong_decl_type)
 3822   Diag(Range.getBegin(), diag::err_mismatched_ms_inheritance)
 5579     S.Diag(getFunctionOrMethodResultSourceRange(D).getBegin(),
 5599     S.Diag(getFunctionOrMethodParamRange(D, 0).getBegin(),
 5615     S.Diag(getFunctionOrMethodParamRange(D, 1).getBegin(),
 5700     S.Diag(AL.getRange().getBegin(),
 5978     S.Diag(A.getRange().getBegin(), diag::warn_attribute_ignored) << A;
 5986       S.Diag(A.getRange().getBegin(), diag::warn_attribute_ignored_on_inline)
 5995       S.Diag(A.getRange().getBegin(), diag::err_attribute_dll_lambda) << A;
 8324     SemaRef.Diag(Range.getBegin(), DiagKind)
 8335         SemaRef.Diag(Range.getBegin(), diag::note_unguarded_available_silence)
tools/clang/lib/Sema/SemaDeclCXX.cpp
 2579       DiagnoseUnexpandedParameterPack(SpecifierRange.getBegin(), TInfo,
 4262                  : InitializationKind::CreateDirect(IdLoc, InitRange.getBegin(),
 4274     MemberInit = ActOnFinishFullExpr(MemberInit.get(), InitRange.getBegin(),
 4284                                             InitRange.getBegin(), Init,
 4288                                             InitRange.getBegin(), Init,
 4296   SourceLocation NameLoc = TInfo->getTypeLoc().getLocalSourceRange().getBegin();
 4316                : InitializationKind::CreateDirect(NameLoc, InitRange.getBegin(),
 4331       DelegationInit.get(), InitRange.getBegin(), /*DiscardedValue*/ false);
 4345   return new (Context) CXXCtorInitializer(Context, TInfo, InitRange.getBegin(),
 4355     = BaseTInfo->getTypeLoc().getLocalSourceRange().getBegin();
 4422                                             InitRange.getBegin(), Init,
 4450                : InitializationKind::CreateDirect(BaseLoc, InitRange.getBegin(),
 4460   BaseInit = ActOnFinishFullExpr(BaseInit.get(), InitRange.getBegin(),
 4477                                           InitRange.getBegin(),
 8885   R.setBegin(Before.getBegin());
 8893   if (R.getBegin().isInvalid())
 8894     R.setBegin(After.getBegin());
 9003     SourceLocation Loc = Before.isValid() ? Before.getBegin() :
 9004                          After.isValid()  ? After.getBegin() :
 9983         << FixItHint::CreateInsertion(SS.getRange().getBegin(), "using ");
10878     Diag(SS.getRange().getBegin(),
10904         Diag(SS.getRange().getBegin(),
10951   Diag(SS.getRange().getBegin(),
14012   SemaRef.Diag(TpDecl->getTemplateParameters()->getSourceRange().getBegin(),
14077         Diag(Param->getSourceRange().getBegin(),
14084       Diag(Param->getSourceRange().getBegin(), diag::err_literal_operator_param)
14089       Diag(Param->getSourceRange().getBegin(), diag::err_literal_operator_param)
14094       Diag(Param->getSourceRange().getBegin(),
14112       Diag((*Param)->getSourceRange().getBegin(),
14121       Diag((*Param)->getSourceRange().getBegin(),
14136       Diag((*Param)->getSourceRange().getBegin(),
14148       Diag((*Param)->getSourceRange().getBegin(),
14165       Diag(Param->getDefaultArgRange().getBegin(),
14548         Diag(TypeRange.getBegin(),
15000         = Diag(SS.getRange().getBegin(), diag::err_qualified_friend_def);
15019       Diag(SS.getRange().getBegin(), diag::err_qualified_friend_def)
16075               DynamicExceptionRanges[ei].getBegin(), UPPC_ExceptionType,
tools/clang/lib/Sema/SemaDeclObjC.cpp
  641                                         SuperTypeArgsRange.getBegin(),
  923       S.Diag(newBoundRange.getBegin(), diag::err_objc_type_param_bound_conflict)
 3565   !Diags.isIgnored(diag::warn_strict_multiple_method_decl, R.getBegin());
 3593       Diag(R.getBegin(), diag::err_arc_multiple_method_decl) << Sel << R;
 3595       Diag(R.getBegin(), diag::warn_strict_multiple_method_decl) << Sel << R;
 3597       Diag(R.getBegin(), diag::warn_multiple_method_decl) << Sel << R;
 4470         S, method->getReturnTypeSourceRange().getBegin(),
 4473         prevMethod->getReturnTypeSourceRange().getBegin(),
 4514       Loc = Method->getReturnTypeSourceRange().getBegin();
 4929                                         D.getSourceRange().getBegin(),
tools/clang/lib/Sema/SemaExceptionSpec.cpp
  137       Diag(Range.getBegin(), diag::err_rref_in_exception_spec)
  158       RequireCompleteType(Range.getBegin(), PointeeT, DiagID, Kind, Range))
  934              From->getSourceRange().getBegin(), FromFunc, SourceLocation()) &&
tools/clang/lib/Sema/SemaExpr.cpp
  193     SourceLocation DeclBegin = First->getSourceRange().getBegin();
 2313           KeywordReplacement->setLocation(BestTC.getCorrectionRange().getBegin());
 2720   SourceLocation FromLoc = FromRange.getBegin();
 6567       return Diag(R.getBegin(),
 6573     return Diag(R.getBegin(),
 6628       Diag(R.getBegin(),diag::err_invalid_conversion_between_ext_vectors)
 6640     return Diag(R.getBegin(),
 7609   if (ParenRange.getBegin().isFileID() && ParenRange.getEnd().isFileID() &&
 7612       << FixItHint::CreateInsertion(ParenRange.getBegin(), "(")
11591       S.Diag(FD->getReturnTypeSourceRange().getBegin(),
12402           << FixItHint::CreateInsertion(op->getSourceRange().getBegin(), Qual);
17261         << FixItHint::CreateRemoval(ParenERange.getBegin())
17770       RequireCompleteType(TypeRange.getBegin(), CastType,
tools/clang/lib/Sema/SemaExprCXX.cpp
 1335     return CXXUnresolvedConstructExpr::Create(Context, TInfo, Locs.getBegin(),
 1428         Result.get(), /*Path=*/nullptr, Locs.getBegin(), Locs.getEnd());
 1781   SourceLocation StartLoc = Range.getBegin();
 1812             ? InitializationKind::CreateDefault(TypeRange.getBegin())
 1818                         TypeRange.getBegin(), Initializer->getBeginLoc(),
 1820                   : InitializationKind::CreateDirect(TypeRange.getBegin(),
 1821                                                      DirectInitRange.getBegin(),
 1829           Diag(ArraySize ? (*ArraySize)->getExprLoc() : TypeRange.getBegin(),
 1885   if (CheckAllocatedType(AllocType, TypeRange.getBegin(), TypeRange))
 2027             << FixItHint::CreateRemoval(TypeIdParens.getBegin())
 6927       = DestructedTypeInfo->getTypeLoc().getLocalSourceRange().getBegin();
 6993       Diag(ScopeTypeInfo->getTypeLoc().getLocalSourceRange().getBegin(),
tools/clang/lib/Sema/SemaExprMember.cpp
  202   if (SS.isSet()) Range.setBegin(SS.getRange().getBegin());
 1108       Loc = SS.getRange().getBegin();
 1313       S.Diag(SS.getRange().getBegin(), diag::err_qualified_objc_access)
 1476       S.Diag(SS.getRange().getBegin(), diag::err_qualified_objc_access)
 1698     Diag(Id.getSourceRange().getBegin(),
 1853       Loc = SS.getRange().getBegin();
tools/clang/lib/Sema/SemaExprObjC.cpp
  511   SourceLocation Loc = SR.getBegin();
  796   SourceLocation Loc = SR.getBegin();
  849       Diag(SR.getBegin(), diag::err_objc_literal_method_sig)
  860       Diag(SR.getBegin(), diag::err_objc_literal_method_sig)
  901   SourceLocation Loc = SR.getBegin();
  957     if (!validateBoxingMethod(*this, SR.getBegin(), NSDictionaryDecl, Sel,
  966       Diag(SR.getBegin(), diag::err_objc_literal_method_sig)
  986               LookupProtocol(&Context.Idents.get("NSCopying"), SR.getBegin())) {
 1003         Diag(SR.getBegin(), diag::err_objc_literal_method_sig)
 1016       Diag(SR.getBegin(), diag::err_objc_literal_method_sig)
 1511     SourceLocation loc = range.getBegin();
 1617               Diag(RecRange.getBegin(),diag::note_receiver_expr_here)
 1701     if (RequireCompleteType(argExpr->getSourceRange().getBegin(),
 2458     : ReceiverTypeInfo->getTypeLoc().getSourceRange().getBegin();
 3573         char PrevChar = *SM.getCharacterData(range.getBegin().getLocWithOffset(-1));
 3591     char PrevChar = *SM.getCharacterData(range.getBegin().getLocWithOffset(-1));
 3598       DiagB.AddFixItHint(FixItHint::CreateInsertion(range.getBegin(),
 3602       DiagB.AddFixItHint(FixItHint::CreateInsertion(range.getBegin(),
 3631       DiagB.AddFixItHint(FixItHint::CreateInsertion(range.getBegin(),
 3635       DiagB.AddFixItHint(FixItHint::CreateInsertion(range.getBegin(),
 3676     (castRange.isValid() ? castRange.getBegin() : castExpr->getExprLoc());
 3708   SourceLocation afterLParen = S.getLocForEndOfToken(castRange.getBegin());
 4227           SourceLocation loc = (castRange.isValid() ? castRange.getBegin()
tools/clang/lib/Sema/SemaFixItUtils.cpp
   59   const SourceLocation Begin = FullExpr->getSourceRange().getBegin();
tools/clang/lib/Sema/SemaInit.cpp
  425       SemaRef.Diag(NewInitRange.getBegin(), DiagID)
 1158     S.Diag(Braces.getBegin(), DiagID)
 1160       << FixItHint::CreateRemoval(Braces.getBegin())
 3042                                          InitRange.getBegin(), None,
 7332     SourceLocation DiagLoc = DiagRange.getBegin();
 7812       return S.ActOnParenListExpr(ParenRange.getBegin(), ParenRange.getEnd(),
 8297           /*LBraceLoc*/ Range.getBegin(),
 8317                                                     Kind.getRange().getBegin());
 8956     R.setBegin(S.getLocForEndOfToken(R.getBegin()));
tools/clang/lib/Sema/SemaLambda.cpp
  233         /*L angle loc*/ LSI->ExplicitTemplateParamsRange.getBegin(),
  252                                                      IntroducerRange.getBegin(),
  390     = IntroducerRange.getBegin().getRawEncoding();
  395       DeclarationNameInfo(MethodName, IntroducerRange.getBegin(),
  963       DiagnoseUnexpandedParameterPack(Intro.Range.getBegin(), MethodTyInfo,
 1023     = Intro.Default == LCD_None? Intro.Range.getBegin() : Intro.DefaultLoc;
 1304   SourceLocation Loc = IntroducerRange.getBegin();
 1451   SourceLocation Loc = IntroducerRange.getBegin();
 1686         CaptureDefaultLoc : IntroducerRange.getBegin();
 1717               FixItRange = SourceRange(CaptureRange.getBegin(),
tools/clang/lib/Sema/SemaLookup.cpp
 4450           if (SemaRef.CheckMemberAccess(TC.getCorrectionRange().getBegin(),
 5457     diagnoseMissingImport(Correction.getCorrectionRange().getBegin(), Decl,
 5462   Diag(Correction.getCorrectionRange().getBegin(), TypoDiag)
 5473     Diag(Correction.getCorrectionRange().getBegin(), PD);
tools/clang/lib/Sema/SemaOpenMP.cpp
 1147     VarDecl *VD = buildVarDecl(SemaRef, SR.getBegin(),
 1150         buildDeclRefExpr(SemaRef, VD, SemaRef.Context.VoidPtrTy, SR.getBegin());
 1170     VarDecl *VD = buildVarDecl(SemaRef, SR.getBegin(),
 1173         buildDeclRefExpr(SemaRef, VD, SemaRef.Context.VoidPtrTy, SR.getBegin());
 4722     Diag(SR.getBegin(), diag::err_omp_single_decl_in_declare_simd_variant)
 4966     Diag(SR.getBegin(), diag::err_omp_single_decl_in_declare_simd_variant)
 4996     Diag(SR.getBegin(), diag::warn_omp_declare_variant_after_used)
 5003     Diag(SR.getBegin(), diag::warn_omp_declare_variant_after_emitted)
 5008     Diag(SR.getBegin(), diag::err_omp_function_expected) << VariantId;
 5102     Diag(SR.getBegin(), diag::note_omp_marked_declare_variant_here) << SR;
 5157               SR.getBegin(),
 7133   SourceLocation InitLoc = IterSpaces[0].InitSrcRange.getBegin();
 7456       SourceLocation UpdLoc = IS.IncSrcRange.getBegin();
12548     VarDecl *SrcVD = buildVarDecl(*this, ERange.getBegin(),
12554         buildVarDecl(*this, ERange.getBegin(), Type, ".lastprivate.dst",
13620           S.Diag(ParentSR.getBegin(),
tools/clang/lib/Sema/SemaOverload.cpp
11958       Diag(OpRangeForComplaining.getBegin(), DiagIDForComplaining)
tools/clang/lib/Sema/SemaPseudoObject.cpp
  323        : PseudoOpBuilder(S, refExpr->getSourceRange().getBegin(), IsUnique),
  350        : PseudoOpBuilder(S, refExpr->getSourceRange().getBegin(), IsUnique),
  353        : PseudoOpBuilder(S, refExpr->getSourceRange().getBegin(), IsUnique),
 1495                          RefExpr->getSourceRange().getBegin(), CallArgs,
 1527                          RefExpr->getSourceRange().getBegin(), ArgExprs,
tools/clang/lib/Sema/SemaStmt.cpp
 1573     S.Diag(Ranges.begin()->getBegin(), PDiag);
tools/clang/lib/Sema/SemaStmtAttr.cpp
   28     S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_wrong_target)
   39     S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_outside_switch);
  258     SourceLocation OptionLoc = LH->getRange().getBegin();
  310       S.Diag(A.getRange().getBegin(),
  341     S.Diag(A.getRange().getBegin(), diag::err_decl_attribute_invalid_on_stmt)
  361   return ActOnAttributedStmt(Range.getBegin(), Attrs, S);
tools/clang/lib/Sema/SemaTemplate.cpp
 4536         SourceLocation Loc = AL.getSourceRange().getBegin();
 4569     Diag(SR.getBegin(), diag::err_template_arg_must_be_type) << SR;
 5051         Diag(SR.getBegin(), diag::err_template_arg_nontype_ambig) << SR << T;
 5053         Diag(SR.getBegin(), diag::err_template_arg_must_be_expr) << SR;
 5683     S.Diag(SR.getBegin(),
 5692     S.Diag(SR.getBegin(),
 5735     return Diag(SR.getBegin(), diag::err_variably_modified_template_arg) << Arg;
 5737     return Diag(SR.getBegin(), diag::err_template_arg_overload_type) << SR;
 7610         S.Diag(ParamUseRange.getBegin(),
 7614         S.Diag(ParamUseRange.getBegin(),
10021       Diag(CondRange.getBegin(), diag::err_typename_nested_not_found_enable_if)
10216   CurrentInstantiationRebuilder Rebuilder(*this, SS.getRange().getBegin(),
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
 1982                                               Base.getSourceRange().getBegin(),
 2009                               Base.getSourceRange().getBegin(),
 2014                               Base.getSourceRange().getBegin(),
tools/clang/lib/Sema/SemaTemplateVariadic.cpp
  424   return DiagnoseUnexpandedParameterPacks(SS.getRange().getBegin(),
tools/clang/lib/Sema/SemaType.cpp
 1172       T, BaseTypeInfo->getTypeLoc().getSourceRange().getBegin(),
 2146   SourceLocation Loc = Brackets.getBegin();
 2170     if (RequireNonAbstractType(Brackets.getBegin(), T,
 3134       SemaRef.Diag(AutoRange.getBegin(), diag::err_auto_not_allowed)
 3146       SemaRef.Diag(AutoRange.getBegin(),
 3289     SourceLocation B = Range.getBegin();
 3312           S.getFixItZeroInitializerForType(RT, ParenRange.getBegin());
tools/clang/lib/Sema/TreeTransform.h
 3003     return SemaRef.BuildCXXNoexceptExpr(Range.getBegin(), Arg, Range.getEnd());
 3480     return getDerived().RebuildParenListExpr(Parens.getBegin(), None,
 3524   return getDerived().RebuildParenListExpr(Parens.getBegin(), NewArgs,
 9463     Comp.LocStart = ON.getSourceRange().getBegin();
 9669     = ((Expr *)Callee.get())->getSourceRange().getBegin();
10358     = ((Expr *)Callee.get())->getSourceRange().getBegin();
10381       E->getOperatorLoc(), E->getStmtClass(), E->getAngleBrackets().getBegin(),
12928                                /*FIXME*/BracketsRange.getBegin());
tools/clang/lib/Serialization/ASTReader.cpp
 6089   assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
 6092       findPreprocessedEntity(Range.getBegin(), false);
 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());
11826         ODRDiagError(FirstFunction->getReturnTypeSourceRange().getBegin(),
11829         ODRDiagNote(SecondFunction->getReturnTypeSourceRange().getBegin(),
tools/clang/lib/Serialization/ASTReaderStmt.cpp
 1385   E->AtLoc = R.getBegin();
 1510   E->Loc = R.getBegin();
 1809   E->Loc = Range.getBegin();
 1822   E->Loc = Range.getBegin();
 1834   E->Loc = Range.getBegin();
tools/clang/lib/Serialization/ASTWriter.cpp
  680   Record.AddSourceLocation(range.getBegin());
 5433   AddSourceLocation(Range.getBegin(), Record);
tools/clang/lib/Serialization/ASTWriterStmt.cpp
  623     Record.AddSourceLocation(ON.getSourceRange().getBegin());
tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp
  176     SourceLocation Loc = R.getBegin();
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
 1120   if (!R.getBegin().isMacroID())
 1127       Mgr.getSourceManager().getImmediateMacroCallerLoc(R.getBegin());
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
 1563   SourceRange ExpansionRange(SM.getExpansionLoc(Range.getBegin()),
 1566   FileID FID = SM.getFileID(ExpansionRange.getBegin());
 1575   unsigned BeginOffset = SM.getFileOffset(ExpansionRange.getBegin());
 2147     hash.AddInteger(range.getBegin().getRawEncoding());
 2170     hash.AddInteger(range.getBegin().getRawEncoding());
 3055   SourceLocation Start = SignatureSourceRange.getBegin();
 3056   SourceLocation End = Body ? Body->getSourceRange().getBegin()
 3071   SourceLocation Loc = S->getSourceRange().getBegin();
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp
  351   SourceLocation Loc = getSourceRange().getBegin();
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
  651                                 Call->getSourceRange().getBegin(),
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(),
 1001   SourceLocation InstantiationStart = SM.getExpansionLoc(Range.getBegin());
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
  280         SM.getExpansionLoc(I->getStart().asRange().getBegin()));
  285     SourceRange EndEdge(SM.getExpansionLoc(I->getEnd().asRange().getBegin()));
  612       AddFID(FM, Fids, SM, Range.getBegin());
tools/clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
  147       {"startLine", SM.getExpansionLineNumber(R.getBegin())},
  148       {"startColumn", SM.getExpansionColumnNumber(R.getBegin())},
  150   if (R.getBegin() == R.getEnd()) {
  151     Region["endColumn"] = SM.getExpansionColumnNumber(R.getBegin());
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
  175   SourceLocation SLoc = N->getSourceRange().getBegin();
  998   SourceLocation BeginLoc = Range.getBegin();
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp
   31              ? CharSourceRange::getCharRange(R.getBegin(), LocAfterEnd)
   43         SelectionBegin(Selection.getBegin()),
   44         SelectionEnd(Selection.getBegin() == Selection.getEnd()
   88     if (DeclRange.getBegin().isMacroID() && !DeclRange.getEnd().isMacroID())
   91       FileLoc = SM.getSpellingLoc(DeclRange.getBegin());
  186          SourceLocation::isPairOfFileLocations(SelectionRange.getBegin(),
  190       Context.getSourceManager().getFileID(SelectionRange.getBegin());
  383   if (SelectionRange.getBegin() == SelectionRange.getEnd())
tools/clang/lib/Tooling/Refactoring/ASTSelectionRequirements.cpp
   26         Range->getBegin(), diag::err_refactor_selection_invalid_ast);
   43         Context.getSelectionRange().getBegin(),
tools/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp
   69       getNamedDeclAt(Context.getASTContext(), SelectionRange.getBegin());
   72         SelectionRange.getBegin(), diag::err_refactor_selection_no_symbol);
  153     AtomicChange Change(SM, Ranges[0].getBegin());
  212         FullSourceLoc FullLoc(Occurrence.getNameRanges()[0].getBegin(),
tools/clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp
   47       SourceLocation Start = Range.getBegin();
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
   70       SourceLocation Loc = NameRanges[0].getBegin();
tools/clang/lib/Tooling/Syntax/Tokens.cpp
  298              Range.getBegin(), LastExpansionEnd)))
  300     Collector->Expansions[Range.getBegin().getRawEncoding()] = Range.getEnd();
tools/clang/lib/Tooling/Transformer/RewriteRule.cpp
  158       Root->second.getSourceRange().getBegin());
tools/clang/tools/clang-refactor/ClangRefactor.cpp
  524       R.getBegin().print(llvm::outs(), Context.getSources());
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  653         Result, Context->getDeclContext(), CalleeRange.getBegin(),
  961   replaceQualifiedSymbolInDeclContext(Result, UseContext, RefRange.getBegin(),
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp
  263     auto Range = CharSourceRange::getTokenRange(SS->getRange().getBegin(),
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/PragmaCommentHandler.cpp
   30       PP.getSourceManager().getFilename(Range.getBegin()),
tools/clang/tools/extra/clang-move/Move.cpp
  321     if (SM.isBeforeInTranslationUnit(Comment->getBeginLoc(), Full.getBegin()))
tools/clang/tools/extra/clang-query/Query.cpp
  119                 FullSourceLoc(R.getBegin(), AST->getSourceManager()),
tools/clang/tools/extra/clang-tidy/ExpandModularHeadersPPCallbacks.cpp
  247   parseToLocation(Range.getBegin());
  262   parseToLocation(Range.getBegin());
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
  347         Construct->getParenOrBraceRange().getBegin(),
tools/clang/tools/extra/clang-tidy/bugprone/LambdaFunctionNameCheck.h
   28       if (L.getBegin() == R.getBegin()) {
   28       if (L.getBegin() == R.getBegin()) {
   31       return L.getBegin() < R.getBegin();
   31       return L.getBegin() < R.getBegin();
tools/clang/tools/extra/clang-tidy/bugprone/MacroRepeatedSideEffectsCheck.cpp
   44   if (!Range.getBegin().isFileID())
tools/clang/tools/extra/clang-tidy/bugprone/MultipleStatementMacroCheck.cpp
   51     Loc = Locs.back().getBegin();
   99   diag(InnerRanges.back().getBegin(), "multiple statement macro used without "
tools/clang/tools/extra/clang-tidy/bugprone/ParentVirtualCallCheck.cpp
  135   assert(Member->getQualifierLoc().getSourceRange().getBegin().isValid());
  136   auto Diag = diag(Member->getQualifierLoc().getSourceRange().getBegin(),
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousEnumUsageCheck.cpp
  166     diag(EnumConst->getSourceRange().getBegin(), BitmaskErrorMessage);
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousMemsetUsageCheck.cpp
   67     if (CharRange.getBegin().isMacroID())
tools/clang/tools/extra/clang-tidy/cert/PostfixOperatorCheck.cpp
   43   SourceLocation Location = ReturnRange.getBegin();
tools/clang/tools/extra/clang-tidy/cert/SetLongJmpCheck.cpp
   39       Check.diag(Range.getBegin(), DiagWording) << II;
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp
   90       Diag << FixItHint::CreateInsertion(BaseRange.getBegin(), "gsl::at(")
   93                               IndexRange.getBegin().getLocWithOffset(-1)),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp
  128                      Where->getSourceRange().getBegin(),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeVarargCheck.cpp
   68     diag(SR.getBegin(), "do not declare variables of type va_list; "
tools/clang/tools/extra/clang-tidy/fuchsia/DefaultArgumentsDeclarationsCheck.cpp
   33   if (DefaultArgRange.getBegin().isMacroID()) {
tools/clang/tools/extra/clang-tidy/google/AvoidNSObjectNewCheck.cpp
   27   SourceLocation ReceiverLocation = Expr->getReceiverRange().getBegin();
tools/clang/tools/extra/clang-tidy/google/TodoCommentCheck.cpp
   41     Check.diag(Range.getBegin(), "missing username/bug in TODO")
tools/clang/tools/extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp
   51     macroUsed(MacroNameTok, MD, Range.getBegin(), CheckAction::Rename);
   75     macroUsed(MacroNameTok, MD, Range.getBegin(), CheckAction::Warn);
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp
  362   if (SourceMgr.getFileID(Range.getBegin()) !=
  515       SourceRange(Range.getBegin(), Range.getEnd().getLocWithOffset(Offset));
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
  484   SourceLocation Begin = U.Range.getBegin();
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
  157           ConstructCallStart, Construct->getParenOrBraceRange().getBegin()),
  198             BraceRange.getBegin(), BraceRange.getBegin().getLocWithOffset(1)),
  198             BraceRange.getBegin(), BraceRange.getBegin().getLocWithOffset(1)),
  273   SourceLocation NewStart = NewRange.getBegin();
  355           SourceRange(NewStart, InitRange.getBegin()));
  396             NewConstruct->getParenOrBraceRange().getBegin().getLocWithOffset(1),
  422         CharSourceRange::getCharRange(NewStart, InitRange.getBegin()));
tools/clang/tools/extra/clang-tidy/modernize/ReturnBracedInitListCheck.cpp
   87       Loc, CallParensRange.getBegin().getLocWithOffset(-1));
   90        << FixItHint::CreateReplacement(CallParensRange.getBegin(), "{")
tools/clang/tools/extra/clang-tidy/modernize/UseAutoCheck.cpp
  382   diag(Range.getBegin(), "use auto when declaring iterators")
  456   auto Diag = diag(Range.getBegin(), Message);
tools/clang/tools/extra/clang-tidy/modernize/UseEmplaceCheck.cpp
  148   if (CallParensRange.getBegin().isInvalid())
  156       CharSourceRange::getTokenRange(ExprBegin, CallParensRange.getBegin());
tools/clang/tools/extra/clang-tidy/modernize/UseNoexceptCheck.cpp
  104   diag(Range.getBegin(), "dynamic exception specification '%0' is deprecated; "
tools/clang/tools/extra/clang-tidy/modernize/UseOverrideCheck.cpp
  159               Sources.getExpansionLoc(A->getRange().getBegin());
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  285   ReturnTypeRange.setBegin(expandIfMacroId(ReturnTypeRange.getBegin(), SM));
  292                                       ReturnTypeRange.getBegin()) &&
  310   assert(!ReturnTypeRange.getBegin().isMacroID() &&
  338       SM.getDecomposedLoc(ReturnTypeCVRange.getBegin()).second;
  343                                      ReturnTypeCVRange.getBegin()) ||
tools/clang/tools/extra/clang-tidy/mpi/BufferDerefCheck.cpp
  123       const auto Loc = BufferExprs[i]->getSourceRange().getBegin();
tools/clang/tools/extra/clang-tidy/mpi/TypeMismatchCheck.cpp
  325       const auto Loc = BufferExprs[i]->getSourceRange().getBegin();
tools/clang/tools/extra/clang-tidy/objc/SuperSelfCheck.cpp
  100   SourceLocation ReceiverLoc = Message->getReceiverRange().getBegin();
tools/clang/tools/extra/clang-tidy/readability/ConvertMemberFunctionsToStatic.cpp
   98   if (SourceMgr.getFileID(Range.getBegin()) !=
  122   SourceLocation Start = Range.getBegin().getLocWithOffset(Offset);
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  675   if (Range.getBegin().isInvalid() || Range.getEnd().isInvalid())
  682   SourceLocation FixLocation = Range.getBegin();
  737     if (Range.getBegin().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()
  188           ? OldCommentRange.getBegin()
tools/clang/tools/extra/clang-tidy/readability/RedundantControlFlowCheck.cpp
   76   if (isLocationInMacroExpansion(SM, StmtRange.getBegin()))
   86     Start = StmtRange.getBegin();
   92   diag(StmtRange.getBegin(), Diag) << FixItHint::CreateRemoval(RemovedRange);
tools/clang/tools/extra/clang-tidy/readability/RedundantDeclarationCheck.cpp
   80           SourceRange(D->getSourceRange().getBegin(), EndLoc));
tools/clang/tools/extra/clang-tidy/readability/StaticDefinitionInAnonymousNamespaceCheck.cpp
   47   SourceLocation Loc = Def->getSourceRange().getBegin();
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp
   80       GetMacroAwareLocation(Loc.getBegin(), SM);
  161   Range->setBegin(Range->getBegin().getLocWithOffset(Skip));
  220     if (Details->LiteralLocation.getBegin().isMacroID() && IgnoreMacros)
  222     auto Complaint = diag(Details->LiteralLocation.getBegin(),
tools/clang/tools/extra/clang-tidy/utils/ASTUtils.cpp
   76       SM->isMacroArgExpansion(Range.getBegin(),
   87          Range.getBegin().isMacroID() || Range.getEnd().isMacroID();
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.cpp
  133         return FixItHint::CreateInsertion(Location.getBegin(), IncludeStmt);
  174   return FixItHint::CreateInsertion(FirstIncludeLocation.getBegin(),
  208             SourceMgr->getSpellingLineNumber(LocationIterator->getBegin());
  224           SourceMgr->getSpellingLineNumber(SourceLocationIterator->getBegin());
  227             SourceRange(SourceLocationIterator->getBegin());
  247         CurrentRange.getBegin() != CurrentRange.getEnd()) {
  249       if (EditRange.getBegin() != EditRange.getEnd()) {
tools/clang/tools/extra/clang-tidy/utils/LexerUtils.cpp
   75   SourceLocation Loc = Range.getBegin();
tools/clang/tools/extra/clangd/Selection.cpp
  320     auto B = SM.getDecomposedLoc(S.getBegin());
  397     auto B = SM.getDecomposedLoc(Range->getBegin());
tools/clang/tools/extra/clangd/SemanticSelection.cpp
   52     if (!SR.hasValue() || SM.getFileID(SR->getBegin()) != SM.getMainFileID()) {
   56     R.start = sourceLocToPosition(SM, SR->getBegin());
tools/clang/tools/extra/clangd/SourceCode.cpp
  348   if (!R.getBegin().isValid() || !R.getEnd().isValid())
  353   std::tie(BeginFID, BeginOffset) = Mgr.getDecomposedLoc(R.getBegin());
  368   std::tie(BeginFID, BeginOffset) = Mgr.getDecomposedLoc(R.getBegin());
  449       SM.isBeforeInTranslationUnit(R1.getBegin(), R2.getBegin())
  449       SM.isBeforeInTranslationUnit(R1.getBegin(), R2.getBegin())
  450           ? R1.getBegin()
  451           : R2.getBegin();
  466   if (SM.isWrittenInSameFile(R.getBegin(), R.getEnd()))
  470   for (SourceLocation Begin = R.getBegin(); Begin.isValid();
  517   while (!FileRange.getBegin().isFileID()) {
  518     if (SM.isMacroArgExpansion(FileRange.getBegin())) {
  520           SM.getImmediateSpellingLoc(FileRange.getBegin()),
  522       assert(SM.isWrittenInSameFile(FileRange.getBegin(), FileRange.getEnd()));
  525           getExpansionTokenRangeInSameFile(FileRange.getBegin(), SM, LangOpts);
  531       assert(SM.isWrittenInSameFile(ExpansionRangeForBegin.getBegin(),
  532                                     ExpansionRangeForEnd.getBegin()) &&
  548   SourceRange R1 = getTokenFileRange(R.getBegin(), SM, LangOpts);
  570   auto *Buf = SM.getBuffer(SM.getFileID(R.getBegin()), &Invalid);
  573   size_t BeginOffset = SM.getFileOffset(R.getBegin());
tools/clang/tools/extra/clangd/XRefs.cpp
  802     auto CurLoc = D->getReturnTypeSourceRange().getBegin();
  808       CurLoc = D->getSourceRange().getBegin();
tools/clang/tools/extra/clangd/index/CanonicalIncludes.cpp
   76       Includes->addMapping(PP.getSourceManager().getFilename(Range.getBegin()),
tools/clang/tools/extra/clangd/refactor/tweaks/DefineInline.cpp
  217   unsigned BodyBegin = SM.getFileOffset(OrigBodyRange->getBegin());
  223       SM.getBufferData(SM.getFileID(OrigBodyRange->getBegin())), Replacements);
  351                              SM.getFileOffset(DefRange->getBegin());
  352     const tooling::Replacement DeleteFuncBody(SM, DefRange->getBegin(),
  364     if (!SM.isWrittenInSameFile(DefRange->getBegin(),
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp
  156     return EnclosingFuncRange.getBegin();
  206     SR.setBegin(BeginFileRange->getBegin());
  573   SourceRange FuncBodyRange = {ExtZone.ZoneRange.getBegin(),
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp
  166       SM.getFileOffset(Chars.getEnd()) - SM.getFileOffset(Chars.getBegin());
  167   return tooling::Replacement(SM, Chars.getBegin(), ExtractionLength, VarName);
  177           ->getBegin();
  306           ->getBegin(),
tools/clang/tools/extra/clangd/refactor/tweaks/SwapIfBranches.cpp
   86                                                  ThenRng->getBegin(),
   90                                                  ElseRng->getBegin(),
tools/clang/tools/extra/clangd/unittests/SelectionTests.cpp
   51       offsetToPosition(Buffer, SM.getFileOffset(FileRange->getBegin())),
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp
  555     return Range{sourceLocToPosition(SM, SrcRange.getBegin()),
  595   EXPECT_EQ(AST.getSourceManager().getFileOffset(Range->getBegin()),
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp
  304   clang::SourceLocation BeginLoc = Range.getBegin();
  380   clang::SourceLocation BeginLoc(Range.getBegin());
  855     clang::SourceLocation BlockStartLoc = BlockSourceRange.getBegin();
 1325   clang::SourceLocation Loc = Range.getBegin();
 1342   clang::SourceLocation Loc(Range.getBegin());
tools/clang/tools/extra/pp-trace/PPCallbacksTracker.cpp
  360   appendArgument("Range", SourceRange(Range.getBegin(), EndifLoc));
  519   SS << "[" << getSourceLocationString(PP, Value.getBegin()) << ", "
tools/clang/tools/extra/unittests/clang-tidy/OverlappingReplacementsTest.cpp
   56     diag(Range.getBegin(), "the cake is a lie") << FixItHint::CreateReplacement(
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())
  129   if (SM.isBeforeInTranslationUnit(L, R.getBegin()))
  242     FID = SM.getFileID(SM.getFileLoc(R.getBegin()));
  260     Begin = SM.getDecomposedLoc(SM.getFileLoc(RegionOfInterest.getBegin())), 
  408     SourceLocation B = MappedRange.getBegin();
  571   SourceLocation BeginLoc = RegionOfInterest.getBegin();
 1332     return Visit(MakeCursorNamespaceRef(NNS->getAsNamespace(), Range.getBegin(),
 1337                                         Range.getBegin(), TU));
 1345       return Visit(MakeCursorTypeRef(Typedef->getDecl(), Range.getBegin(), TU));
 1347       return Visit(MakeCursorTypeRef(Tag->getDecl(), Range.getBegin(), TU));
 1350       return VisitTemplateName(TST->getTemplateName(), Range.getBegin());
 3254     SourceRange R(Pieces.front().getBegin(), Pieces.back().getEnd());
 5598       SourceLocation StartLoc = DD->getSourceRange().getBegin();
 5892     SourceLocation L = cxcursor::getCursorPreprocessingDirective(C).getBegin();
 5898       = cxcursor::getCursorMacroExpansion(C).getSourceRange().getBegin();
 5909       = cxcursor::getCursorInclusionDirective(C)->getSourceRange().getBegin();
 6095     if (StartLoc.isValid() && R.getBegin().isValid() &&
 6096         SrcMgr.isBeforeInTranslationUnit(StartLoc, R.getBegin()))
 6705     = SourceMgr.getDecomposedSpellingLoc(Range.getBegin());
 7181           if (TokLoc == cursorRange.getBegin())
 7319       RefNameRange = SourceRange(RefNameRange.getBegin(), fixedEnd);
 7368     if (macroRange.getBegin() == macroRange.getEnd())
 7373                                         macroRange.getBegin()))
 7446     = SourceMgr.getDecomposedSpellingLoc(RegionOfInterest.getBegin());
 7564         SM.getMacroArgExpandedLocation(RegionOfInterest.getBegin());
 8684     if (sm.getFileID(i->getBegin()) == wantedFileID || sm.getFileID(i->getEnd()) == wantedFileID)
 8686     else if (isMainFile && (astUnit->isInPreambleFileID(i->getBegin()) || astUnit->isInPreambleFileID(i->getEnd())))
 8849   if (SM.isBeforeInTranslationUnit(Tok.getLocation(), DefRange.getBegin()))
tools/clang/tools/libclang/CXCursor.cpp
  109         RegionOfInterest.getBegin() == RegionOfInterest.getEnd()) {
  113           llvm::find(SelLocs, RegionOfInterest.getBegin());
  565         RegionOfInterest.getBegin() == RegionOfInterest.getEnd()) {
  569           llvm::find(SelLocs, RegionOfInterest.getBegin());
  884                  { Range.getBegin().getPtrEncoding(),
tools/clang/tools/libclang/CXIndexDataConsumer.cpp
  375   SourceLocation Loc = Base.getSourceRange().getBegin();
tools/clang/tools/libclang/Indexing.cpp
  651       SourceLocation Loc = ID->getSourceRange().getBegin();
tools/clang/unittests/AST/ASTImporterTest.cpp
 1735   CompareSourceLocs(FullSourceLoc{ Range1.getBegin(), SM1 },
 1736                     FullSourceLoc{ Range2.getBegin(), SM2 });
tools/clang/unittests/AST/MatchVerifier.h
  230     SourceLocation Begin = R.getBegin();
tools/clang/unittests/Lex/LexerTest.cpp
  533       Lexer::isAtStartOfMacroExpansion(R.getBegin(), SourceMgr, LangOpts));
tools/clang/unittests/Tooling/CommentHandlerTest.cpp
   39     SourceLocation Start = Loc.getBegin();
tools/clang/unittests/Tooling/RangeSelectorTest.cpp
  138   auto ExprBegin = E->getSourceRange().getBegin();
  161   auto CharRange = CharSourceRange::getCharRange(Range.getBegin(), SemiLoc);
tools/clang/unittests/Tooling/RecursiveASTVisitorTests/LambdaExpr.cpp
   21     Match("", Lambda->getIntroducerRange().getBegin());
tools/clang/unittests/Tooling/RefactoringActionRulesTest.cpp
   76           Selection.first.getBegin().getLocWithOffset(Selection.second);
  215                                              Selection.getBegin()));