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

References

tools/clang/include/clang/AST/Comment.h
  349     return SourceRange(getBeginLoc().getLocWithOffset(-1), getEndLoc());
  399     return SourceRange(L.getLocWithOffset(1),
  400                        L.getLocWithOffset(1 + TagName.size()));
  442       return NameLocBegin.getLocWithOffset(Name.size());
  457                      LocBegin, LocBegin.getLocWithOffset(1 + TagName.size()),
  459                      LocBegin.getLocWithOffset(1),
  460                      LocBegin.getLocWithOffset(1 + TagName.size())) {
  515                      LocBegin.getLocWithOffset(2),
  516                      LocBegin.getLocWithOffset(2 + TagName.size()))
  659     return getBeginLoc().getLocWithOffset(1);
  665                        getBeginLoc().getLocWithOffset(1 + Name.size()));
  871               LocBegin.getLocWithOffset(Text.size())),
tools/clang/include/clang/AST/CommentLexer.h
   86     return Loc.getLocWithOffset(Length - 1);
  312     return FileLoc.getLocWithOffset(CharNo);
tools/clang/include/clang/Basic/PlistSupport.h
  134   EmitLocation(o, SM, R.getEnd().getLocWithOffset(-1), FM, indent + 1);
tools/clang/include/clang/Lex/Lexer.h
  367     return TokStart.getLocWithOffset(
tools/clang/include/clang/Lex/Token.h
  155                           : getLocation().getLocWithOffset(getLength());
tools/clang/include/clang/Serialization/ASTReader.h
 2208     return Loc.getLocWithOffset(Remap);
tools/clang/include/clang/Tooling/Syntax/Tokens.h
  111     return Location.getLocWithOffset(Length);
tools/clang/lib/ARCMigrate/ObjCMT.cpp
  308       EndLoc = EndLoc.getLocWithOffset(-1);
  558     StartGetterSelectorLoc.getLocWithOffset(GetterSelector.getNameForSlot(0).size());
  565     EndLoc = EndLoc.getLocWithOffset(1);
  569     BeginOfSetterDclLoc = BeginOfSetterDclLoc.getLocWithOffset(-1);
  763     BeginOfEnumDclLoc = BeginOfEnumDclLoc.getLocWithOffset(-1);
  795   StartTypedefLoc = StartTypedefLoc.getLocWithOffset(+1);
 2187         SM.getLocForStartOfFile(FID).getLocWithOffset(Entry.Offset);
 2191                                          Loc.getLocWithOffset(Entry.RemoveLen));
tools/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp
   49       AfterMacroLoc = I->getLocWithOffset(getARCMTMacroName().size());
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp
  255       char PrevChar = *SM.getCharacterData(InsertLoc.getLocWithOffset(-1));
tools/clang/lib/ARCMigrate/TransformActions.cpp
  486   SourceLocation afterText = loc.getLocWithOffset(text.size());
tools/clang/lib/ARCMigrate/Transforms.cpp
  122   return SemiLoc.getLocWithOffset(1);
tools/clang/lib/AST/CommentLexer.cpp
  413           SourceRange CommandRange(Loc.getLocWithOffset(1), EndLoc);
tools/clang/lib/AST/CommentParser.cpp
   69     return Pos.BufferStartLoc.getLocWithOffset(CharNo);
  426     Diag(CommandTok.getEndLocation().getLocWithOffset(1),
tools/clang/lib/AST/CommentSema.cpp
  424                                   Loc.getLocWithOffset(1 + CommandName.size()),
  448                               TextBegin.getLocWithOffset(Text.size()),
  708         << FixItHint::CreateInsertion(FD->getEndLoc().getLocWithOffset(1),
tools/clang/lib/AST/SelectorLocationsKind.cpp
   31     return EndLoc.getLocWithOffset(-Len);
   41   return ArgLoc.getLocWithOffset(-Len);
   60   return Loc.getLocWithOffset(-1);
tools/clang/lib/Basic/Diagnostic.cpp
  269               .getLocWithOffset(Decomp.second)
  289               .getLocWithOffset(Transition.Offset)
tools/clang/lib/Basic/SourceManager.cpp
  930     Loc = Loc.getLocWithOffset(LocInfo.second);
  972     Loc = Loc.getLocWithOffset(Offset);
  990   return Loc.getLocWithOffset(LocInfo.second);
 1089   SourceLocation NextLoc = Loc.getLocWithOffset(1);
 1509         IncludeLoc = IncludeLoc.getLocWithOffset(Entry->IncludeOffset);
 1674     return FileLoc.getLocWithOffset(Size);
 1682     return FileLoc.getLocWithOffset(FilePos);
 1689   return FileLoc.getLocWithOffset(FilePos + i);
 1783                       Info.getSpellingLoc().getLocWithOffset(SpellRelativeOffs),
 1792       ExpansionLoc = ExpansionLoc.getLocWithOffset(advance);
 1864     return MacroArgExpandedLoc.getLocWithOffset(Offset - MacroArgBeginOffs);
tools/clang/lib/CodeGen/CodeGenAction.cpp
  420   CSM.getLocForStartOfFile(FID).getLocWithOffset(Offset);
  469         B << SourceRange(Loc.getLocWithOffset(Range.first - Column),
  470                          Loc.getLocWithOffset(Range.second - Column));
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  165     return Loc.getLocWithOffset(TokLen);
  171       return Loc.getLocWithOffset(-SM.getFileOffset(Loc));
  178       return Loc.getLocWithOffset(SM.getFileIDSize(SM.getFileID(Loc)) -
tools/clang/lib/Edit/Commit.cpp
   26   Loc = Loc.getLocWithOffset(Offset.getOffset());
   33   return CharSourceRange::getCharRange(Loc, Loc.getLocWithOffset(Length));
   38   Loc = Loc.getLocWithOffset(InsertFromRangeOffs.getOffset());
   40   return CharSourceRange::getCharRange(Loc, Loc.getLocWithOffset(Length));
  257   AfterLoc = loc.getLocWithOffset(tokLen);
tools/clang/lib/Edit/EditedSource.cpp
  388   Loc = Loc.getLocWithOffset(offs.getOffset());
  395                                                      Loc.getLocWithOffset(len));
  459   BLoc = BLoc.getLocWithOffset(BeginOffs.getOffset());
  462     ELoc = BLoc.getLocWithOffset(EndOffs.getOffset() - BeginOffs.getOffset());
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
  748       CharSourceRange::getCharRange(B, B.getLocWithOffset(text.size()));
tools/clang/lib/Format/AffectedRangeManager.cpp
   77     Start = Start.getLocWithOffset(First.LastNewlineOffset);
   79   End = End.getLocWithOffset(Last.TokenText.size());
   87       Tok.WhitespaceRange.getBegin().getLocWithOffset(Tok.LastNewlineOffset));
tools/clang/lib/Format/ContinuationIndenter.cpp
 1597           Current.Tok.getLocation().getLocWithOffset(2);
 1608           Current.Tok.getLocation().getLocWithOffset(Current.TokenText.size() -
 1619         Current.Tok.getLocation().getLocWithOffset(OldPrefixSize);
 1622           SourceMgr, OriginLoc.getLocWithOffset(Fix.getOffset()),
tools/clang/lib/Format/Format.cpp
 1295         Replace(FormatTok->Tok.getEndLoc().getLocWithOffset(-1), 1,
 1308               Replace(Start.getLocWithOffset(i), 1, "");
 1317               Replace(Start.getLocWithOffset(i), 0, "\\");
tools/clang/lib/Format/FormatTokenLexer.cpp
  614       FormatTok->Tok.getLocation().getLocWithOffset(Tok.getLength() - 1);
  633       FormatTok->Tok.getLocation().getLocWithOffset(-TrailingWhitespace);
  749       WhitespaceStart, WhitespaceStart.getLocWithOffset(WhitespaceLength));
tools/clang/lib/Format/TokenAnalyzer.cpp
   45     SourceLocation Start = StartOfFile.getLocWithOffset(Range.getOffset());
   46     SourceLocation End = Start.getLocWithOffset(Range.getLength());
tools/clang/lib/Format/WhitespaceManager.cpp
   80   SourceLocation Start = Tok.getStartOfNonWhitespace().getLocWithOffset(Offset);
   83              SourceRange(Start, Start.getLocWithOffset(ReplaceChars)), Spaces,
tools/clang/lib/Frontend/ASTUnit.cpp
 2383     SourceLocation L = FileLoc.getLocWithOffset(SD.LocOffset);
 2389       SourceLocation BL = FileLoc.getLocWithOffset(Range.first);
 2390       SourceLocation EL = FileLoc.getLocWithOffset(Range.second);
 2400       SourceLocation BL = FileLoc.getLocWithOffset(FixIt.RemoveRange.first);
 2401       SourceLocation EL = FileLoc.getLocWithOffset(FixIt.RemoveRange.second);
 2506   return SM.getMacroArgExpandedLocation(FileLoc.getLocWithOffset(Offset));
 2524     return FileLoc.getLocWithOffset(Offs);
 2545     return FileLoc.getLocWithOffset(Offs);
tools/clang/lib/Frontend/DiagnosticRenderer.cpp
  475     BegLoc.getLocWithOffset(1);
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp
  745       Callbacks->MoveToLine(StartLoc.getLocWithOffset(Tok.getLength()));
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  822           LocStart.getLocWithOffset(BufPtr-MainBufStart);
  930     startGetterSetterLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1);
 1175       SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
 1180       SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
 1747   SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf);
 1824     SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(1);
 1837     SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(semiBuf-stmtBuf+1);
 1886   RParenExprLoc = startLoc.getLocWithOffset(RParenExprLocBuf-startBuf);
 2056   SourceLocation semiLoc = startLoc.getLocWithOffset(semiBuf-startBuf);
 2180       SourceLocation LessLoc = Loc.getLocWithOffset(startRef-startBuf);
 2181       SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-startBuf+1);
 2229       SourceLocation LessLoc = Loc.getLocWithOffset(startRef-endBuf);
 2230       SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-endBuf+1);
 2252           Loc.getLocWithOffset(startRef-startFuncBuf);
 2254           Loc.getLocWithOffset(endRef-startFuncBuf+1);
 4744       LocStart = LocStart.getLocWithOffset(argPtr-startBuf);
 4778   DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf);
 4787       DeclLoc = DeclLoc.getLocWithOffset(argPtr-startArgList);
 4884   SourceLocation Start = DeclLoc.getLocWithOffset(startBuf-endBuf);
 5121     DeclLoc = DeclLoc.getLocWithOffset(commaBuf - startDeclBuf);
 5152       startLoc.getLocWithOffset(separatorBuf-startInitializerBuf);
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  748           LocStart.getLocWithOffset(BufPtr-MainBufStart);
  778     startLoc.getLocWithOffset(semiBuf-startBuf+1);
 1007       SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
 1012       SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
 1538   SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf);
 1615     SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(1);
 1628     SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(semiBuf-stmtBuf+1);
 1660   SourceLocation rparenLoc = startLoc.getLocWithOffset(endBuf-startBuf);
 1749     SourceLocation onePastSemiLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1);
 1771     SourceLocation onePastSemiLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1);
 1808     startLoc = startLoc.getLocWithOffset(1);
 1889     bodyLoc = bodyLoc.getLocWithOffset(-1);
 1917     startLoc = startLoc.getLocWithOffset(1);
 1919     endLoc = endLoc.getLocWithOffset(-1);
 1943   lastCurlyLoc = lastCurlyLoc.getLocWithOffset(1);
 1972   SourceLocation semiLoc = startLoc.getLocWithOffset(semiBuf-startBuf);
 2096       SourceLocation LessLoc = Loc.getLocWithOffset(startRef-startBuf);
 2097       SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-startBuf+1);
 2141       SourceLocation LessLoc = Loc.getLocWithOffset(startRef-endBuf);
 2142       SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-endBuf+1);
 2164           Loc.getLocWithOffset(startRef-startFuncBuf);
 2166           Loc.getLocWithOffset(endRef-startFuncBuf+1);
 3162         LocStart.getLocWithOffset(cursor-startBuf+1);
 3170         SourceLocation atLoc = LocStart.getLocWithOffset(cursor-startBuf);
 3187         SourceLocation atLoc = LocStart.getLocWithOffset(cursor-startBuf);
 3191         atLoc = LocStart.getLocWithOffset(cursor-startBuf);
 3194         SourceLocation caretLoc = LocStart.getLocWithOffset(cursor-startBuf);
 3200     InsertText(LocEnd.getLocWithOffset(1), ";");
 3913       LocStart = LocStart.getLocWithOffset(argPtr-startBuf);
 3932   DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf);
 3941       DeclLoc = DeclLoc.getLocWithOffset(argPtr-startArgList);
 4038   SourceLocation Start = DeclLoc.getLocWithOffset(startBuf-endBuf);
 4306       startLoc.getLocWithOffset(semiBuf-startInitializerBuf);
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
  535           Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
  556         Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
  577           Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
  596       Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
  604       Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
  612     D.ContentBegin = Pos.getLocWithOffset(ContentBegin - PH.Begin);
tools/clang/lib/Lex/DependencyDirectivesSourceMinimizer.cpp
  112   Diags->Report(InputSourceLoc.getLocWithOffset(CurPtr - Input.data()), Err);
tools/clang/lib/Lex/Lexer.cpp
  527   SourceLocation LexerStartLoc = Loc.getLocWithOffset(-LocInfo.second);
  570   return Loc.getLocWithOffset(BeginFileLocInfo.second - FileLocInfo.second);
  795   return Loc.getLocWithOffset(Len);
  833   SourceLocation afterLoc = loc.getLocWithOffset(tokLen);
 1115   SpellingLoc = SpellingLoc.getLocWithOffset(CharNo);
 1135     return FileLoc.getLocWithOffset(CharNo);
 1298   return TokenLoc.getLocWithOffset(Tok->getLength() + NumWhitespaceChars);
 2111       FileLoc.getLocWithOffset(StartOfFilename - BufferStart),
 2112       FileLoc.getLocWithOffset(CompletionPoint - BufferStart));
 2956     SourceLocation Loc = FileLoc.getLocWithOffset(CurPtr-BufferStart);
tools/clang/lib/Lex/PPLexerChange.cpp
   92         CodeCompletionFileLoc.getLocWithOffset(CodeCompletionOffset);
  504       Result.setLocation(Result.getLocation().getLocWithOffset(-1));
tools/clang/lib/Lex/PreprocessingRecord.cpp
  500       EndLoc = EndLoc.getLocWithOffset(-1); // the InclusionDirective expects
tools/clang/lib/Lex/Preprocessor.cpp
  515   return SM.createTokenSplitLoc(Spelling, Loc, Loc.getLocWithOffset(Length));
tools/clang/lib/Lex/ScratchBuffer.cpp
   64   return BufferStartLoc.getLocWithOffset(BytesUsed-Len-1);
tools/clang/lib/Lex/TokenConcatenation.cpp
  174   if (PrevSpellLoc.getLocWithOffset(PrevTok.getLength()) == SpellLoc)
tools/clang/lib/Lex/TokenLexer.cpp
  976   return MacroExpansionStart.getLocWithOffset(relativeOffset);
 1045     Tok.setLocation(Expansion.getLocWithOffset(RelOffs));
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp
   65     SourceLocation KWEndLoc = Tok.getEndLoc().getLocWithOffset(-1);
tools/clang/lib/Parse/ParseDeclCXX.cpp
 3119       EndLoc = ASLoc.getLocWithOffset(TokLength);
tools/clang/lib/Parse/ParseExpr.cpp
  379             SM.getCharacterData(FILoc.getLocWithOffset(-1), &IsInvalid);
  382               SM.getCharacterData(FILoc.getLocWithOffset(-2), &IsInvalid);
  384               FILoc = FILoc.getLocWithOffset(-1);
tools/clang/lib/Parse/ParseExprCXX.cpp
   45   SourceLocation FirstEnd = FirstLoc.getLocWithOffset(First.getLength());
   66   ColonToken.setLocation(ColonToken.getLocation().getLocWithOffset(-1));
tools/clang/lib/Parse/ParseObjc.cpp
 1939         Tok.setLocation(Tok.getLocation().getLocWithOffset(-1));
tools/clang/lib/Parse/ParseStmtAsm.cpp
  188     Loc = Loc.getLocWithOffset(Offset - TokOffset);
tools/clang/lib/Parse/ParseTemplate.cpp
  443     Tok.setLocation(Tok.getLocation().getLocWithOffset(1));
  995   SourceLocation AfterGreaterLoc = TokLoc.getLocWithOffset(GreaterLength);
tools/clang/lib/Parse/Parser.cpp
 1034             ? DS.getTypeSpecTypeLoc().getLocWithOffset(
tools/clang/lib/Rewrite/HTMLRewrite.cpp
  282   SourceLocation EndLoc = StartLoc.getLocWithOffset(FileEnd-FileStart);
tools/clang/lib/Sema/Sema.cpp
 1884                                  Comment.getBegin().getLocWithOffset(3));
 2137                       Range.getEnd().getLocWithOffset(1));
tools/clang/lib/Sema/SemaChecking.cpp
 6769     return FExpr->getBeginLoc().getLocWithOffset(Offset);
 7332   End = End.getLocWithOffset(1);
 9296                                SecondRange.getBegin().getLocWithOffset(-1));
tools/clang/lib/Sema/SemaExpr.cpp
11929           Loc.getLocWithOffset(1) == UO->getOperatorLoc() &&
11932           Loc.getLocWithOffset(2) != UO->getSubExpr()->getBeginLoc() &&
tools/clang/lib/Sema/SemaExprObjC.cpp
 1191       SourceRange SelectorRange(LParenLoc.getLocWithOffset(1),
 1192                                 RParenLoc.getLocWithOffset(-1));
 3573         char PrevChar = *SM.getCharacterData(range.getBegin().getLocWithOffset(-1));
 3591     char PrevChar = *SM.getCharacterData(range.getBegin().getLocWithOffset(-1));
tools/clang/lib/Sema/SemaInit.cpp
 7670   LParen = ArgLoc.getLocWithOffset(-1);
tools/clang/lib/Sema/SemaObjCProperty.cpp
 1131             readonlyLoc.getLocWithOffset(strlen("readonly")-1);
tools/clang/lib/Serialization/ASTReader.cpp
 6270             ReadDiagState(*FirstState, Loc.getLocWithOffset(Offset), false);
 8022     BeginLoc = SM.getLocForStartOfFile(File).getLocWithOffset(Offset);
 8023   SourceLocation EndLoc = BeginLoc.getLocWithOffset(Length);
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
  944     SM.getLocForStartOfFile(LPosInfo.first).getLocWithOffset(DisplayPos);
 1027     InstantiationEnd.getLocWithOffset(EndColNo - OldEndColNo);
tools/clang/lib/Tooling/Core/Replacement.cpp
   77     getLocWithOffset(ReplacementRange.getOffset());
tools/clang/lib/Tooling/Refactoring/Rename/SymbolOccurrences.cpp
   25         Locations[0], Locations[0].getLocWithOffset(NamePieces[0].size()));
   34         Loc.value().getLocWithOffset(NamePieces[Loc.index()].size()));
tools/clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp
  216                                      .getLocWithOffset(SymbolOffset);
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
  100                                BeginLoc.getLocWithOffset(Offset));
  134         .getLocWithOffset(-1);
  261                                 ? Expr->getLAngleLoc().getLocWithOffset(-1)
  305       EndLoc = Expr->getQualifierLoc().getEndLoc().getLocWithOffset(-1);
tools/clang/lib/Tooling/Transformer/RangeSelector.cpp
   71   SourceLocation BeforeStart = Start.getLocWithOffset(-1);
  256   return CharSourceRange::getCharRange(CS.getLBracLoc().getLocWithOffset(1),
  271           .getLocWithOffset(1),
  285   return CharSourceRange::getCharRange(E.getLBraceLoc().getLocWithOffset(1),
tools/clang/tools/clang-format/ClangFormat.cpp
  234         Sources.getLocForStartOfFile(ID).getLocWithOffset(Offsets[i]);
  243       End = Start.getLocWithOffset(Lengths[i]);
  321           Sources.getLocForStartOfFile(FileID).getLocWithOffset(R.getOffset()));
tools/clang/tools/clang-refactor/TestSupport.cpp
   56           SM.getMacroArgExpandedLocation(FileLoc.getLocWithOffset(Range.Begin));
   58           SM.getMacroArgExpandedLocation(FileLoc.getLocWithOffset(Range.End));
tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
  204           FileChange.replace(SM, BeginLoc.getLocWithOffset(R.getOffset()),
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
   65         .getLocWithOffset(-1);
  128   auto End = Loc.getLocWithOffset(Line.size());
  131              : End.getLocWithOffset(1);
  672              : Tok.getEndLoc().getLocWithOffset(1);
  744     End = AfterSemi.getLocWithOffset(-1);
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp
  137   auto Begin = StartOfFile.getLocWithOffset(Placed.getOffset());
  138   auto End = Begin.getLocWithOffset(std::max(0, (int)Placed.getLength() - 1));
  363                  .getLocWithOffset(Range.getOffset())
tools/clang/tools/extra/clang-move/Move.cpp
  301   SourceLocation EndLoc = EndExpansionLoc.getLocWithOffset(Line.size());
  307              : EndLoc.getLocWithOffset(1);
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp
  246     return SourceMgr.getLocForStartOfFile(ID).getLocWithOffset(Offset);
  259         SourceLocation FixEndLoc = FixLoc.getLocWithOffset(Repl.getLength());
tools/clang/tools/extra/clang-tidy/abseil/RedundantStrcatCallsCheck.cpp
   59           Call->getRParenLoc(), Call->getEndLoc().getLocWithOffset(1))));
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
  120                                  Loc, Loc.getLocWithOffset(Tok.getLength())),
tools/clang/tools/extra/clang-tidy/bugprone/MacroParenthesesCheck.cpp
  149         << FixItHint::CreateInsertion(Last.getLocation().getLocWithOffset(
  245         << FixItHint::CreateInsertion(Tok.getLocation().getLocWithOffset(
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
  334              RhsExpr->getBeginLoc().getLocWithOffset(-1)});
  342             {LhsExpr->getEndLoc().getLocWithOffset(1), RhsIL->getEndLoc()});
  418                   exprLocEnd(ArgToRemove, Result).getLocWithOffset(-1)));
  430       FunctionExpr->getBeginLoc().getLocWithOffset(FuncNameLength - 1));
  475       FunctionExpr->getBeginLoc().getLocWithOffset(-FuncLocStartColumn + 1),
  490       exprLocEnd(FunctionExpr, Result).getLocWithOffset(1),
  926                     FunctionExpr->getBeginLoc().getLocWithOffset(-1)));
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.cpp
   91                MatchedDecl->getLocation().getLocWithOffset(
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp
   92                   SourceRange(BaseRange.getEnd().getLocWithOffset(1),
   93                               IndexRange.getBegin().getLocWithOffset(-1)),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeCstyleCastCheck.cpp
   68               MatchedCast->getLParenLoc().getLocWithOffset(1),
   69               MatchedCast->getRParenLoc().getLocWithOffset(-1)),
tools/clang/tools/extra/clang-tidy/fuchsia/RestrictSystemIncludesCheck.cpp
   86           Include.Loc, Include.Loc.getLocWithOffset(ToLen));
tools/clang/tools/extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp
  129                                CastExpr->getLParenLoc().getLocWithOffset(1),
  130                                CastExpr->getRParenLoc().getLocWithOffset(-1)),
tools/clang/tools/extra/clang-tidy/llvm/IncludeOrderCheck.cpp
  169             CharSourceRange::getCharRange(ToLoc, ToLoc.getLocWithOffset(ToLen));
tools/clang/tools/extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp
   75         StartLoc.getLocWithOffset(StringRef("cast").size() - 1);
   85         StartLoc.getLocWithOffset(StringRef("cast").size() - 1);
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
 1029     SourceLocation LogicalNotLocation = OperatorLoc.getLocWithOffset(1);
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedIosBaseAliasesCheck.cpp
   63   SourceLocation EndLoc = IoStateLoc.getLocWithOffset(TypeName.size() - 1);
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp
  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
  180     ConstructCallEnd = ConstructCallStart.getLocWithOffset(ExprStr.size());
  185     ConstructCallEnd = ConstructCallStart.getLocWithOffset(LAngle);
  198             BraceRange.getBegin(), BraceRange.getBegin().getLocWithOffset(1)),
  202                                       BraceRange.getEnd().getLocWithOffset(1)),
  396             NewConstruct->getParenOrBraceRange().getBegin().getLocWithOffset(1),
  397             NewConstruct->getParenOrBraceRange().getEnd().getLocWithOffset(-1));
  424         SourceRange(InitRange.getEnd().getLocWithOffset(1), NewEnd));
tools/clang/tools/extra/clang-tidy/modernize/PassByValueCheck.cpp
  223               Initializer->getLParenLoc().getLocWithOffset(1), "std::move(");
tools/clang/tools/extra/clang-tidy/modernize/RedundantVoidArgCheck.cpp
  111       End = End.getLocWithOffset(-1);
  209               .getLocWithOffset(-1);
tools/clang/tools/extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp
  195       AutoPtrLoc.getLocWithOffset(strlen("auto_ptr") - 1);
tools/clang/tools/extra/clang-tidy/modernize/ReturnBracedInitListCheck.cpp
   87       Loc, CallParensRange.getBegin().getLocWithOffset(-1));
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp
  194       CharSourceRange::getCharRange(Body->getLBracLoc().getLocWithOffset(1),
tools/clang/tools/extra/clang-tidy/modernize/UseNullptrCheck.cpp
   64   SourceLocation PreviousLocation = StartLoc.getLocWithOffset(-1);
  333       ArgLoc = Expansion.getSpellingLoc().getLocWithOffset(LocInfo.second);
  392       Loc = Expansion.getSpellingLoc().getLocWithOffset(LocInfo.second);
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  461                                     ReturnTypeEnd.getLocWithOffset(1)),
tools/clang/tools/extra/clang-tidy/modernize/UseUncaughtExceptionsCheck.cpp
   90       Diag << FixItHint::CreateInsertion(BeginLoc.getLocWithOffset(TextLength),
tools/clang/tools/extra/clang-tidy/performance/MoveConstArgCheck.cpp
   29                                     Call->getEndLoc().getLocWithOffset(1)),
tools/clang/tools/extra/clang-tidy/readability/AvoidConstParamsInDecls.cpp
   25                        Param.getEndLoc().getLocWithOffset(-1));
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
   42       Loc = Loc.getLocWithOffset(1);
   82       Loc = Loc.getLocWithOffset(1);
  249     const auto FREnd = FileRange.getEnd().getLocWithOffset(-1);
tools/clang/tools/extra/clang-tidy/readability/ConvertMemberFunctionsToStatic.cpp
  113   SourceRange Range{FTL.getRParenLoc().getLocWithOffset(1),
  122   SourceLocation Start = Range.getBegin().getLocWithOffset(Offset);
  123   return {Start, Start.getLocWithOffset(strlen("const") - 1)};
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp
  198     DeclBegin = DeclEnd.getLocWithOffset(1);
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.cpp
   83   SourceLocation AfterRBrace = ND->getRBraceLoc().getLocWithOffset(1);
  102       LBracketLocation = LBracketLocation.getLocWithOffset(1);
  124     Loc = Loc.getLocWithOffset(1);
  162           SourceRange(AfterRBrace, Loc.getLocWithOffset(Tok.getLength()));
  173           SourceRange(AfterRBrace, Loc.getLocWithOffset(Tok.getLength()));
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp
  161   Range->setBegin(Range->getBegin().getLocWithOffset(Skip));
tools/clang/tools/extra/clang-tidy/utils/HeaderGuard.cpp
  181               Ifndef, Ifndef.getLocWithOffset(CurHeaderGuard.size())),
  185               Define, Define.getLocWithOffset(CurHeaderGuard.size())),
  201                                         EndIf.getLocWithOffset(EndIfLen)),
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.cpp
   99       SourceRange(HashLocation, EndLocation.getLocWithOffset(Offset)));
tools/clang/tools/extra/clang-tidy/utils/LexerUtils.cpp
   20   Location = Location.getLocWithOffset(-1);
   28     Location = Location.getLocWithOffset(-1);
   39   SourceLocation BeforeStart = Start.getLocWithOffset(-1);
   89     Loc = Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts).getLocWithOffset(1);
tools/clang/tools/extra/clangd/SourceCode.cpp
  424   return BeginLoc.getLocWithOffset(Len ? Len - 1 : 0);
  431   return EndLoc.getLocWithOffset(
  560   Result.setEnd(Result.getEnd().getLocWithOffset(TokLen));
  585   return SM.getLocForStartOfFile(SM.getMainFileID()).getLocWithOffset(*Offset);
  998                                          .getLocWithOffset(DecLoc.second - 1));
tools/clang/tools/extra/clangd/index/SymbolCollector.cpp
  147           CreatePosition(TokLoc.getLocWithOffset(TokenLength))};
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp
  574                                ExtZone.ZoneRange.getEnd().getLocWithOffset(-1)};
  579   ExtZone.ZoneRange.setEnd(FuncBodyRange.getEnd().getLocWithOffset(1));
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp
  300       HasValue(StartOfFile.getLocWithOffset(Source.code().size())));
  312                          HasValue(StartOfFile.getLocWithOffset(Offset)));
tools/clang/tools/libclang/CIndex.cpp
  157     EndLoc = EndLoc.getLocWithOffset(Length);
 7318           RefNameRange.getEnd().getLocWithOffset(-1);
tools/clang/unittests/AST/CommentTextTest.cpp
   39         SourceMgr.getLocForStartOfFile(File).getLocWithOffset(
tools/clang/unittests/CodeGen/IncrementalProcessingTest.cpp
   71     SourceLocation InclLoc = MainStartLoc.getLocWithOffset(counter);
tools/clang/unittests/Lex/LexerTest.cpp
  312                         macroRange.getEnd().getLocWithOffset(1)));
  329   EXPECT_EQ(SourceRange(fileLsqrLoc, fileIdLoc.getLocWithOffset(3)),
  334   EXPECT_EQ(SourceRange(fileIdLoc, fileRsqrLoc.getLocWithOffset(1)),
  341   EXPECT_EQ(SourceRange(macroRange.getBegin(), macroRange.getEnd().getLocWithOffset(1)),
  466           Tok.getLocation().getLocWithOffset(Offset);
tools/clang/unittests/Rewrite/RewriterTest.cpp
   24   SourceLocation makeLoc(int Off) { return FileStart.getLocWithOffset(Off); }
tools/clang/unittests/Tooling/RangeSelectorTest.cpp
  157   const SourceLocation SemiLoc = Range.getEnd().getLocWithOffset(1);
tools/clang/unittests/Tooling/RefactoringActionRulesTest.cpp
   76           Selection.first.getBegin().getLocWithOffset(Selection.second);
  104             .getLocWithOffset(10);
  235             SourceRange(Cursor, Cursor.getLocWithOffset(strlen("test"))));
tools/clang/unittests/Tooling/RefactoringTest.cpp
 1098                        .getLocWithOffset(20);
 1114   Err = Change.insert(Context.Sources, DefaultLoc.getLocWithOffset(10), "bb",
 1166   Err = ExpectedChange.insert(Context.Sources, DefaultLoc.getLocWithOffset(10),
 1214   SourceLocation End = DefaultLoc.getLocWithOffset(20);
 1314     return Context.Sources.getLocForStartOfFile(FID).getLocWithOffset(Offset);
 1375       Context.Sources.getLocForStartOfFile(ID).getLocWithOffset(11), 1, "bb");
tools/clang/unittests/Tooling/SourceCodeTest.cpp
   53       SM.getLocForStartOfFile(SM.getMainFileID()).getLocWithOffset(R.Begin),
   54       SM.getLocForStartOfFile(SM.getMainFileID()).getLocWithOffset(R.End)));
tools/clang/unittests/Tooling/Syntax/TokensTest.cpp
  170                    .getLocWithOffset(R.Begin);
  172                     .getLocWithOffset(R.End);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
  279               .getLocWithOffset(m_source_location_index++)));