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

References

tools/clang/include/clang/Basic/PlistSupport.h
  129   EmitLocation(o, SM, R.getBegin(), FM, indent + 1);
tools/clang/include/clang/Basic/SourceManager.h
 1186     SourceLocation Begin = getExpansionRange(Range.getBegin()).getBegin();
 1758     return getImmediateExpansionRange(Loc).getBegin();
tools/clang/include/clang/Rewrite/Core/Rewriter.h
  147     return RemoveText(range.getBegin(), getRangeSize(range, opts), opts);
  165     return ReplaceText(range.getBegin(), getRangeSize(range), NewStr);
tools/clang/lib/ARCMigrate/ObjCMT.cpp
 1769     Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text);
 1813           SourceMgr.getDecomposedLoc(Range.getBegin());
 1837     Writer.writeLoc(Range.getBegin());
 1844     Writer.writeLoc(Range.getBegin());
tools/clang/lib/ARCMigrate/PlistReporter.cpp
   53       AddFID(FM, Fids, SM, RI->getBegin());
tools/clang/lib/ARCMigrate/TransGCAttrs.cpp
   98       Loc = SM.getImmediateExpansionRange(Loc).getBegin();
  288                 .getBegin();
tools/clang/lib/ARCMigrate/TransformActions.cpp
   68       SourceLocation beginLoc = range.getBegin(), endLoc = range.getEnd();
tools/clang/lib/Basic/SourceManager.cpp
  940       Loc = getImmediateExpansionRange(Loc).getBegin();
 1018   while (!Res.getBegin().isFileID())
 1019     Res.setBegin(getImmediateExpansionRange(Res.getBegin()).getBegin());
 1019     Res.setBegin(getImmediateExpansionRange(Res.getBegin()).getBegin());
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  185     return Loc.isMacroID() ? SM.getImmediateExpansionRange(Loc).getBegin()
  208       Loc = SM.getImmediateExpansionRange(Loc).getBegin();
  216       Loc = SM.getImmediateExpansionRange(Loc).getBegin();
tools/clang/lib/Edit/Commit.cpp
   82       PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) {
   99   addRemove(range.getBegin(), Offs, Len);
  105   bool commitableBefore = insert(range.getBegin(), before, /*afterToken=*/false,
  122   if (!canInsert(range.getBegin(), Offs) || !canRemoveRange(range, Offs, Len)) {
  127   addRemove(range.getBegin(), Offs, Len);
  128   addInsert(range.getBegin(), Offs, text, false);
  158   addRemove(range.getBegin(),
  303   if (range.getBegin().isMacroID() || range.getEnd().isMacroID())
  305   if (SM.isInSystemHeader(range.getBegin()) ||
  312   std::pair<FileID, unsigned> beginInfo = SM.getDecomposedLoc(range.getBegin());
tools/clang/lib/Edit/EditedSource.cpp
   39       SourceMgr.getImmediateExpansionRange(Loc).getBegin();
   41       SourceMgr.getImmediateExpansionRange(DefArgLoc).getBegin();
   45         SourceMgr.getImmediateExpansionRange(ExpansionLoc).getBegin();
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
  864   SourceLocation LitB = LitInfo.WithoutSuffRange.getBegin();
tools/clang/lib/Format/AffectedRangeManager.cpp
   65     if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), I->getBegin()) &&
   66         !SourceMgr.isBeforeInTranslationUnit(I->getEnd(), Range.getBegin()))
tools/clang/lib/Frontend/ASTUnit.cpp
 1240   unsigned Offset = SM.getFileOffset(FileRange.getBegin());
tools/clang/lib/Frontend/DiagnosticRenderer.cpp
   66         commit.insertFromRange(Hint.RemoveRange.getBegin(),
   73           Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd())
   76         commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert,
  289       IsBegin ? MacroRange.getBegin() : MacroRange.getEnd();
  308       IsBegin ? MacroArgRange.getBegin() : MacroArgRange.getEnd();
  325       Loc = IsBegin ? ExpRange.getBegin() : ExpRange.getEnd();
  367     SourceLocation Begin = Range.getBegin(), End = Range.getEnd();
  379       Begin = SM->getImmediateExpansionRange(Begin).getBegin();
  471   SourceLocation BegLoc = Range.getBegin(), EndLoc = Range.getEnd();
  540       LocationStack.push_back(SM.getImmediateExpansionRange(L).getBegin());
tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp
   72     Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text);
  159         commit.insertFromRange(Hint.RemoveRange.getBegin(),
  166           Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd())
  169         commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert,
tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
  362   AddLocToRecord(FullSourceLoc(Range.getBegin(), SM), Record);
tools/clang/lib/Frontend/TextDiagnostic.cpp
  874       SourceLocation B = SM.getExpansionLoc(RI->getBegin());
  940   SourceLocation Begin = R.getBegin();
  993   SourceLocation Begin = R.getBegin();
 1084         = SM.getDecomposedExpansionLoc(I->RemoveRange.getBegin());
 1331         I->RemoveRange.getBegin().isMacroID() ||
 1338     SourceLocation BLoc = I->RemoveRange.getBegin();
tools/clang/lib/Lex/Lexer.cpp
  851   SourceLocation Begin = Range.getBegin();
  878   SourceLocation Begin = Range.getBegin();
  950   std::pair<FileID, unsigned> beginInfo = SM.getDecomposedLoc(Range.getBegin());
  994     Loc = SM.getImmediateExpansionRange(Loc).getBegin();
 1027     Loc = SM.getImmediateExpansionRange(Loc).getBegin();
 1037   Loc = SM.getSpellingLoc(SM.getImmediateExpansionRange(Loc).getBegin());
 1121   return SM.createExpansionLoc(SpellingLoc, II.getBegin(), II.getEnd(), TokLen);
 1475   if (!Diags.isIgnored(diag::warn_c99_compat_unicode_id, Range.getBegin())) {
 1486       Diags.Report(Range.getBegin(), diag::warn_c99_compat_unicode_id)
 1490       Diags.Report(Range.getBegin(), diag::warn_c99_compat_unicode_id)
 1497   if (!Diags.isIgnored(diag::warn_cxx98_compat_unicode_id, Range.getBegin())) {
 1501       Diags.Report(Range.getBegin(), diag::warn_cxx98_compat_unicode_id)
 1582       Diags.Report(Range.getBegin(), diag::warn_utf8_symbol_homoglyph)
 1585       Diags.Report(Range.getBegin(), diag::warn_utf8_symbol_zero_width)
tools/clang/lib/Lex/PreprocessingRecord.cpp
  496     EndLoc = FilenameRange.getBegin();
tools/clang/lib/Lex/TokenLexer.cpp
  907     StartLoc = SM.getImmediateExpansionRange(StartLoc).getBegin();
tools/clang/lib/Parse/ParseDecl.cpp
  236         attrs[i].setMacroIdentifier(MacroII, ExpansionRange.getBegin());
tools/clang/lib/Rewrite/HTMLRewrite.cpp
  613     if (SM.getFileID(LLoc.getBegin()) != FID) {
  633            SM.getExpansionLoc(Tok.getLocation()) == LLoc.getBegin()) {
  661     HighlightRange(R, LLoc.getBegin(), LLoc.getEnd(), "<span class='macro'>",
tools/clang/lib/Rewrite/Rewriter.cpp
  147   if (!isRewritable(Range.getBegin()) ||
  151   unsigned StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID);
  185   if (!isRewritable(Range.getBegin()) ||
  191   StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID);
  203     const char *Ptr = SourceMgr->getCharacterData(Range.getBegin());
  347   if (!isRewritable(range.getBegin())) return true;
  354   StartOff = getLocationOffsetAndFileID(range.getBegin(), StartFileID);
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
  965       S.Diag(Fixit1.RemoveRange.getBegin(), diag::note_uninit_fixit_remove_cond)
tools/clang/lib/Sema/CodeCompleteConsumer.cpp
  574         const SourceLocation BLoc = FixIt.RemoveRange.getBegin();
tools/clang/lib/Sema/SemaChecking.cpp
 7663       S.Diag(IsStringLocation ? Loc : StringRange.getBegin(),
11332       Loc = S.SourceMgr.getImmediateExpansionRange(Loc).getBegin();
tools/clang/lib/Sema/SemaDeclCXX.cpp
 3039     SpellingLoc = getSourceManager().getImmediateExpansionRange(Loc).getBegin();
tools/clang/lib/Sema/SemaInit.cpp
 7664     ArgLoc = S.getSourceManager().getImmediateExpansionRange(ArgLoc).getBegin();
tools/clang/lib/Sema/SemaStmtAsm.cpp
  510         auto B = targetDiag(Piece.getRange().getBegin(),
tools/clang/lib/Sema/SemaType.cpp
 4734                 S.SourceMgr.getImmediateExpansionRange(AttrLoc).getBegin();
 6099         S.getSourceManager().getImmediateExpansionRange(AttrLoc).getBegin();
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
  255     Loc = SM.getImmediateExpansionRange(Loc).getBegin();
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
  129               OS << SM.getSpellingColumnNumber(Hint.RemoveRange.getBegin())
tools/clang/lib/Tooling/Core/Replacement.cpp
  137   SourceLocation SpellingBegin = Sources.getSpellingLoc(Range.getBegin());
  151   setFromSourceLocation(Sources, Sources.getSpellingLoc(Range.getBegin()),
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp
  145     if (!SourceLocation::isPairOfFileLocations(Range.getBegin(), End))
  149       if (SM.isPointWithin(SelectionBegin, Range.getBegin(), End))
  153     bool HasStart = SM.isPointWithin(SelectionBegin, Range.getBegin(), End);
  154     bool HasEnd = SM.isPointWithin(SelectionEnd, Range.getBegin(), End);
  157     if (SM.isPointWithin(Range.getBegin(), SelectionBegin, SelectionEnd) &&
  164     if (HasEnd && SelectionEnd != Range.getBegin())
tools/clang/lib/Tooling/Syntax/Tokens.cpp
  417     auto FID = SM.getFileID(SpelledRange.getBegin());
  421     fillGapUntil(File, SpelledRange.getBegin(), I);
  428           SM.getExpansionLoc(NextL) != SpelledRange.getBegin())
tools/clang/lib/Tooling/Transformer/RangeSelector.cpp
  112     return CharSourceRange::getCharRange(SelectedRange->getBegin());
  159     SourceLocation B = BeginRange->getBegin();
tools/clang/lib/Tooling/Transformer/RewriteRule.cpp
  154     return RootRange->getBegin();
tools/clang/lib/Tooling/Transformer/SourceCode.cpp
   30   return CharSourceRange::getTokenRange(Range.getBegin(), Tok->getLocation());
   52   if (Range.getBegin().isMacroID() || Range.getEnd().isMacroID())
   54   if (SM.isInSystemHeader(Range.getBegin()) ||
   58   std::pair<FileID, unsigned> BeginInfo = SM.getDecomposedLoc(Range.getBegin());
tools/clang/lib/Tooling/Transformer/Transformer.cpp
   51                   (*Transformations)[0].Range.getBegin());
tools/clang/tools/arcmt-test/arcmt-test.cpp
  322   PresumedLoc PL = SM.getPresumedLoc(range.getBegin());
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp
  267     SymbolRange = CreateToolingRange(Range.getBegin());
  273     SymbolRange = CreateToolingRange(Range.getBegin());
tools/clang/tools/extra/clang-move/Move.cpp
  751         SM, CharSourceRange::getCharRange(Range.getBegin(), Range.getEnd()),
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
   79       assert(Range.getBegin().isValid() && Range.getEnd().isValid() &&
   81       assert(Range.getBegin().isFileID() && Range.getEnd().isFileID() &&
  349     Loc = SM.getImmediateExpansionRange(Loc).getBegin();
tools/clang/tools/extra/clang-tidy/abseil/UpgradeDurationConversionsCheck.cpp
  156   Diag << FixItHint::CreateInsertion(SourceRange.getBegin(),
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
   67   std::pair<FileID, unsigned> BeginLoc = SM.getDecomposedLoc(Range.getBegin()),
  290       Comments = getCommentsBeforeLoc(Ctx, ArgsRange.getBegin());
tools/clang/tools/extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp
  306               ReplacementRange.getBegin().getRawEncoding()) == 0) {
  312         diag(ReplacementRange.getBegin(), RenameCaseToSuiteMessage);
  321           ReplacementRange.getBegin().getRawEncoding());
  325       diag(ReplacementRange.getBegin(), RenameCaseToSuiteMessage);
  340       diag(ReplacementRange.getBegin(), RenameCaseToSuiteMessage);
tools/clang/tools/extra/clang-tidy/llvm/IncludeOrderCheck.cpp
  159         SourceLocation FromLoc = CopyFrom.Range.getBegin();
  165         SourceLocation ToLoc = FileDirectives[I].Range.getBegin();
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedHeadersCheck.cpp
  109     Check.diag(FilenameRange.getBegin(), "inclusion of deprecated C++ header "
  115     Check.diag(FilenameRange.getBegin(),
tools/clang/tools/extra/clang-tidy/modernize/RedundantVoidArgCheck.cpp
  131   Lexer PrototypeLexer(CharRange.getBegin(), getLangOpts(), DeclText.data(),
tools/clang/tools/extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp
  158     auto Diag = diag(Range.getBegin(), "use std::move to transfer ownership")
  159                 << FixItHint::CreateInsertion(Range.getBegin(), "std::move(")
tools/clang/tools/extra/clang-tidy/modernize/UseEmplaceCheck.cpp
  136   if (FunctionNameSourceRange.getBegin().isMacroID())
tools/clang/tools/extra/clang-tidy/modernize/UseNullptrCheck.cpp
   66   Check.diag(Range.getBegin(), "use nullptr") << FixItHint::CreateReplacement(
  331       MacroLoc = SM.getExpansionRange(ArgLoc).getBegin();
  386       MacroLoc = SM.getImmediateExpansionRange(Loc).getBegin();
tools/clang/tools/extra/clang-tidy/modernize/UseOverrideCheck.cpp
   51       Sources.getDecomposedLoc(Range.getBegin());
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  107     Loc = expandIfMacroId(SM.getImmediateExpansionRange(Loc).getBegin(), SM);
tools/clang/tools/extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp
  135   if (SM.isMacroArgExpansion(CallRange.getBegin()) &&
  137     CallRange.setBegin(SM.getSpellingLoc(CallRange.getBegin()));
  141   if (!CallRange.getBegin().isMacroID() && !Maplike && CompatibleTypes) {
tools/clang/tools/extra/clang-tidy/performance/MoveConstArgCheck.cpp
   98     auto Diag = diag(FileMoveRange.getBegin(),
  110     auto Diag = diag(FileMoveRange.getBegin(),
tools/clang/tools/extra/clang-tidy/readability/AvoidConstParamsInDecls.cpp
   54       Sources.getDecomposedLoc(Range.getBegin());
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
  236                    .getBegin();
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
  304   Lexer Lex(CharRange.getBegin(), Result.Context->getLangOpts(),
tools/clang/tools/extra/clang-tidy/utils/LexerUtils.cpp
   98   std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Range.getBegin());
tools/clang/tools/extra/clang-tidy/utils/TransformerClangTidyCheck.cpp
   97       diag((*Transformations)[0].Range.getBegin(), *Explanation);
tools/clang/tools/extra/clangd/Diagnostics.cpp
   81   if (!R.isValid() || M.getFileID(R.getBegin()) != M.getFileID(R.getEnd()) ||
   82       M.getFileID(R.getBegin()) != M.getFileID(L))
   84   return L != R.getEnd() && M.isPointWithin(L, R.getBegin(), R.getEnd());
  543       if (FixIt.RemoveRange.getBegin().isMacroID() ||
  546       if (!isInsideMainFile(FixIt.RemoveRange.getBegin(), SM))
tools/clang/tools/extra/clangd/SourceCode.cpp
  230     return SM.getExpansionRange(Loc).getBegin();
  473                    : SM.getImmediateExpansionRange(Begin).getBegin()) {
  590   Position Begin = sourceLocToPosition(SM, R.getBegin());
tools/clang/tools/extra/pp-trace/PPCallbacksTracker.cpp
  657   const char *B = PP.getSourceManager().getCharacterData(Range.getBegin());
tools/clang/tools/libclang/CIndex.cpp
  162     R.getBegin().getRawEncoding(),
tools/clang/unittests/Lex/LexerTest.cpp
  294   EXPECT_EQ(Loc, macroRange.getBegin());
  311             SourceRange(macroRange.getBegin(),
  341   EXPECT_EQ(SourceRange(macroRange.getBegin(), macroRange.getEnd().getLocWithOffset(1)),
tools/clang/unittests/Lex/PPCallbacksTest.cpp
  155     const char* B = SourceMgr.getCharacterData(Range.getBegin());
  162     const char *B = SourceMgr.getCharacterData(Range.getBegin());
tools/clang/unittests/Tooling/FixItTest.cpp
  127               LocationToString(Hint0.RemoveRange.getBegin(), Context));
  136               LocationToString(Hint1.RemoveRange.getBegin(), Context));
  148               LocationToString(Hint.RemoveRange.getBegin(), Context));
  196               LocationToString(Hint.RemoveRange.getBegin(), Context));
  211               LocationToString(Hint.RemoveRange.getBegin(), Context));
tools/clang/unittests/Tooling/SourceCodeTest.cpp
   47          arg.getBegin() == R.getBegin() && arg.getEnd() == R.getEnd();
   47          arg.getBegin() == R.getBegin() && arg.getEnd() == R.getEnd();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
 1096       rewrite.ReplaceText(range.getBegin(), rewrite.getRangeSize(range), text);
 1114             commit.insertFromRange(fixit.RemoveRange.getBegin(),
 1121               fixit.RemoveRange.getBegin() != fixit.RemoveRange.getEnd())
 1124             commit.insert(fixit.RemoveRange.getBegin(), fixit.CodeToInsert,