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

References

tools/clang/include/clang/Basic/JsonSupport.h
  114   printSourceLocationAsJson(Out, SM.getSpellingLoc(Loc), SM, true);
tools/clang/include/clang/Basic/SourceManager.h
 1509     if (isWrittenInScratchSpace(getSpellingLoc(loc))) {
 1512       } while (isWrittenInScratchSpace(getSpellingLoc(loc)));
 1516     return isInSystemHeader(getSpellingLoc(loc));
tools/clang/lib/AST/Decl.cpp
 4756         return SM.getSpellingLoc(TTLoc) == SM.getSpellingLoc(TDLoc);
 4756         return SM.getSpellingLoc(TTLoc) == SM.getSpellingLoc(TDLoc);
tools/clang/lib/AST/Expr.cpp
 1241     SourceLocation StrTokSpellingLoc = SM.getSpellingLoc(StrTokLoc);
tools/clang/lib/AST/JSONNodeDumper.cpp
  233   SourceLocation Spelling = SM.getSpellingLoc(Loc);
tools/clang/lib/AST/TextNodeDumper.cpp
  346   SourceLocation SpellingLoc = SM->getSpellingLoc(Loc);
tools/clang/lib/Basic/SourceLocation.cpp
   65   SM.getSpellingLoc(*this).print(OS, SM);
  112   PrintedLoc = PrintDifference(OS, SM, SM.getSpellingLoc(Loc), PrintedLoc);
  152   return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr);
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  164         Lexer::MeasureTokenLength(SM.getSpellingLoc(Loc), SM, LangOpts);
  191     return SM.getBufferName(SM.getSpellingLoc(Loc)) == "<built-in>";
  237       if (SM.isInSystemHeader(SM.getSpellingLoc(Loc)))
  317       if (SM.isInSystemHeader(SM.getSpellingLoc(LocStart)))
  876     if (Body && SM.isInSystemHeader(SM.getSpellingLoc(getStart(Body))))
tools/clang/lib/Edit/Commit.cpp
  255   SourceLocation spellLoc = SourceMgr.getSpellingLoc(loc);
tools/clang/lib/Edit/EditedSource.cpp
   47   StringRef ArgName = Lexer::getSpelling(SourceMgr.getSpellingLoc(DefArgLoc),
   52               SourceMgr.getSpellingLoc(DefArgLoc)};
tools/clang/lib/Frontend/DiagnosticRenderer.cpp
  409     Begin = SM->getSpellingLoc(Begin);
  410     End = SM->getSpellingLoc(End);
tools/clang/lib/Lex/Lexer.cpp
  563   SourceLocation FileLoc = SM.getSpellingLoc(Loc);
  828   SourceLocation spellLoc = SM.getSpellingLoc(loc);
 1012   Loc = SM.getSpellingLoc(Loc);
 1031   if (!SM.getFileEntryForID(SM.getFileID(SM.getSpellingLoc(Loc))))
 1037   Loc = SM.getSpellingLoc(SM.getImmediateExpansionRange(Loc).getBegin());
 1114   SourceLocation SpellingLoc = SM.getSpellingLoc(FileLoc);
tools/clang/lib/Lex/Preprocessor.cpp
  504   SourceLocation SpellingLoc = SM.getSpellingLoc(Loc);
tools/clang/lib/Lex/TokenConcatenation.cpp
   54     const char *Ptr = SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation()));
  137       return *SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation()));
  172   SourceLocation PrevSpellLoc = SM.getSpellingLoc(PrevTok.getLocation());
  173   SourceLocation SpellLoc = SM.getSpellingLoc(Tok.getLocation());
tools/clang/lib/Parse/ParseDecl.cpp
  228     if (!SM.isWrittenInBuiltinFile(SM.getSpellingLoc(AttrTokLoc)) &&
tools/clang/lib/Parse/ParseDeclCXX.cpp
 3911         PP.getSourceManager().getSpellingLoc(Tok.getLocation());
tools/clang/lib/Parse/ParseExprCXX.cpp
   44   SourceLocation FirstLoc = SM.getSpellingLoc(First.getLocation());
   46   return FirstEnd == SM.getSpellingLoc(Second.getLocation());
tools/clang/lib/Sema/SemaChecking.cpp
 9664             SL = SM.getSpellingLoc(SL);
 9665             DSR = SourceRange(SM.getSpellingLoc(DSR.getBegin()),
 9666                              SM.getSpellingLoc(DSR.getEnd()));
 9667             SSR = SourceRange(SM.getSpellingLoc(SSR.getBegin()),
 9668                              SM.getSpellingLoc(SSR.getEnd()));
 9940     SL = SM.getSpellingLoc(SL);
 9941     SR = SourceRange(SM.getSpellingLoc(SR.getBegin()),
 9942                      SM.getSpellingLoc(SR.getEnd()));
13321       SourceLocation RBracketLoc = SourceMgr.getSpellingLoc(
13325             SourceMgr.getSpellingLoc(IndexExpr->getBeginLoc());
tools/clang/lib/Sema/SemaCodeComplete.cpp
  724           SemaRef.SourceMgr.getSpellingLoc(ND->getLocation())))
tools/clang/lib/Sema/SemaDecl.cpp
 4205       SrcMgr.getFilename(SrcMgr.getSpellingLoc(Old->getLocation()));
tools/clang/lib/Sema/SemaDeclCXX.cpp
 3040   SpellingLoc = getSourceManager().getSpellingLoc(SpellingLoc);
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
  767   StringRef FilePath = SM.getFilename(SM.getSpellingLoc(Decl->getBeginLoc()));
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
  181     if (SLoc != SrcMgr.getSpellingLoc(SLoc))
tools/clang/lib/Tooling/Core/Lookup.cpp
  144   UseLoc = SM.getSpellingLoc(UseLoc);
  163                   SM.getSpellingLoc(Res->getLocation()), UseLoc))
tools/clang/lib/Tooling/Core/Replacement.cpp
  137   SourceLocation SpellingBegin = Sources.getSpellingLoc(Range.getBegin());
  138   SourceLocation SpellingEnd = Sources.getSpellingLoc(Range.getEnd());
  151   setFromSourceLocation(Sources, Sources.getSpellingLoc(Range.getBegin()),
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp
   91       FileLoc = SM.getSpellingLoc(DeclRange.getBegin());
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
   74         Loc = SM.getSpellingLoc(Loc);
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  170   Start = SM.getSpellingLoc(Start);
  171   End = SM.getSpellingLoc(End);
  177       SM, CharSourceRange::getTokenRange(SM.getSpellingLoc(Start),
  178                                          SM.getSpellingLoc(End)),
  199   Loc = SM.getSpellingLoc(Loc);
  279   SourceLocation DeclLoc = SM.getSpellingLoc(D->getBeginLoc());
  280   Loc = SM.getSpellingLoc(Loc);
  711   MoveNs.InsertionOffset = SM.getFileOffset(SM.getSpellingLoc(InsertionLoc));
  748       CharSourceRange::getTokenRange(SM.getSpellingLoc(Start),
  749                                      SM.getSpellingLoc(End)),
  799           Result.SourceManager->getSpellingLoc(Start),
  800           Result.SourceManager->getSpellingLoc(End)),
tools/clang/tools/extra/clang-tidy/abseil/AbseilMatcher.h
   35   SourceLocation Loc = SourceManager.getSpellingLoc(Node.getBeginLoc());
tools/clang/tools/extra/clang-tidy/abseil/DurationDivisionCheck.cpp
   51                  result.SourceManager->getSpellingLoc(OpCall->getEndLoc()), 0,
tools/clang/tools/extra/clang-tidy/android/ComparisonInTempFailureRetryCheck.cpp
   35     if (!Lexer::getRawToken(SM.getSpellingLoc(Invocation), Tok, SM, Opts,
tools/clang/tools/extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp
  122   if (SM.getFilename(SM.getSpellingLoc(CastExpr->getBeginLoc())).endswith(".c"))
tools/clang/tools/extra/clang-tidy/google/ExplicitConstructorCheck.cpp
   48   FileID File = Sources.getFileID(Sources.getSpellingLoc(StartLoc));
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedIosBaseAliasesCheck.cpp
   59     IoStateLoc = SM.getSpellingLoc(IoStateLoc);
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
  486     Begin = Context->getSourceManager().getSpellingLoc(Begin);
tools/clang/tools/extra/clang-tidy/modernize/RedundantVoidArgCheck.cpp
  245                              {SM->getSpellingLoc(TL.getBeginLoc()),
  246                               SM->getSpellingLoc(TL.getEndLoc())},
tools/clang/tools/extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp
  186     AutoPtrLoc = SM.getSpellingLoc(AutoPtrLoc);
tools/clang/tools/extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp
  137     CallRange.setBegin(SM.getSpellingLoc(CallRange.getBegin()));
  138     CallRange.setEnd(SM.getSpellingLoc(CallRange.getEnd()));
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  684     FixLocation = SourceMgr->getSpellingLoc(FixLocation);
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp
   71   SourceLocation SpellingLoc = SM.getSpellingLoc(Loc);
tools/clang/tools/extra/clang-tidy/utils/HeaderFileExtensionsUtils.cpp
   36   SourceLocation SpellingLoc = SM.getSpellingLoc(Loc);
tools/clang/tools/extra/clangd/FindSymbols.cpp
  139   SourceLocation BeginLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getBeginLoc()));
  140   SourceLocation EndLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getEndLoc()));
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
  279       Loc = SM.getSpellingLoc(Loc);
tools/clang/tools/extra/clangd/SourceCode.cpp
  218     std::string PrintLoc = SM.getSpellingLoc(Loc).printToString(SM);
  231   return SM.getSpellingLoc(Loc);
  985   if (Lexer::getRawToken(SM.getSpellingLoc(Loc), Result, SM, LangOpts, false))
tools/clang/tools/extra/clangd/XRefs.cpp
 1046   SourceLocation BeginLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getBeginLoc()));
 1047   SourceLocation EndLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getEndLoc()));
tools/clang/tools/extra/clangd/index/SymbolCollector.cpp
  278   auto SpellingLoc = SM.getSpellingLoc(Loc);
  372       SM.getFileID(SM.getSpellingLoc(Loc)) == SM.getMainFileID())
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp
  365         SourceMgr.getFileOffset(SourceMgr.getSpellingLoc(Actual)));
tools/clang/tools/libclang/CIndex.cpp
  155     unsigned Length = Lexer::MeasureTokenLength(SM.getSpellingLoc(EndLoc),
 8886   Loc = Unit->getSourceManager().getSpellingLoc(Loc);
tools/clang/unittests/Lex/LexerTest.cpp
  322   SourceLocation fileLsqrLoc = SourceMgr.getSpellingLoc(macroLsqrLoc);
  323   SourceLocation fileIdLoc = SourceMgr.getSpellingLoc(macroIdLoc);
  324   SourceLocation fileRsqrLoc = SourceMgr.getSpellingLoc(macroRsqrLoc);