diff options
Diffstat (limited to 'clang-tools-extra/clangd/SourceCode.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/SourceCode.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang-tools-extra/clangd/SourceCode.cpp b/clang-tools-extra/clangd/SourceCode.cpp index b36d11d64a3..15403d215fc 100644 --- a/clang-tools-extra/clangd/SourceCode.cpp +++ b/clang-tools-extra/clangd/SourceCode.cpp @@ -224,14 +224,6 @@ bool isSpelledInSource(SourceLocation Loc, const SourceManager &SM) { return true; } -SourceLocation spellingLocIfSpelled(SourceLocation Loc, - const SourceManager &SM) { - if (!isSpelledInSource(Loc, SM)) - // Use the expansion location as spelling location is not interesting. - return SM.getExpansionRange(Loc).getBegin(); - return SM.getSpellingLoc(Loc); -} - llvm::Optional<Range> getTokenRange(const SourceManager &SM, const LangOptions &LangOpts, SourceLocation TokLoc) { |

