diff options
Diffstat (limited to 'clang-tools-extra/clangd/SourceCode.h')
-rw-r--r-- | clang-tools-extra/clangd/SourceCode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/SourceCode.h b/clang-tools-extra/clangd/SourceCode.h index a61d411fe13..b67fe6ecfde 100644 --- a/clang-tools-extra/clangd/SourceCode.h +++ b/clang-tools-extra/clangd/SourceCode.h @@ -61,6 +61,9 @@ TextEdit replacementToEdit(StringRef Code, const tooling::Replacement &R); std::vector<TextEdit> replacementsToEdits(StringRef Code, const tooling::Replacements &Repls); +/// Get the absolute file path of a given file entry. +llvm::Optional<std::string> getAbsoluteFilePath(const FileEntry *F, + const SourceManager &SourceMgr); } // namespace clangd } // namespace clang #endif |