diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-08-09 22:42:26 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-08-09 22:42:26 +0000 |
commit | 43465bf3fd6cca715187ee7286c881cb210fc3c4 (patch) | |
tree | c2aad6e9cadd0b7164c476722704660c4b84b5e5 /clang-tools-extra/clangd/CodeCompletionStrings.cpp | |
parent | d54b7f059290102b0ff007843ecf0668e833c118 (diff) | |
download | bcm5719-llvm-43465bf3fd6cca715187ee7286c881cb210fc3c4.tar.gz bcm5719-llvm-43465bf3fd6cca715187ee7286c881cb210fc3c4.zip |
Port getLocStart -> getBeginLoc
Reviewers: javed.absar
Subscribers: nemanjai, kbarton, ilya-biryukov, ioeric, jkorous, arphaman, jfb, cfe-commits
Differential Revision: https://reviews.llvm.org/D50354
llvm-svn: 339400
Diffstat (limited to 'clang-tools-extra/clangd/CodeCompletionStrings.cpp')
-rw-r--r-- | clang-tools-extra/clangd/CodeCompletionStrings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/CodeCompletionStrings.cpp b/clang-tools-extra/clangd/CodeCompletionStrings.cpp index 88b37daf8b5..e601e035928 100644 --- a/clang-tools-extra/clangd/CodeCompletionStrings.cpp +++ b/clang-tools-extra/clangd/CodeCompletionStrings.cpp @@ -65,7 +65,7 @@ std::string getDocComment(const ASTContext &Ctx, // Sanity check that the comment does not come from the PCH. We choose to not // write them into PCH, because they are racy and slow to load. - assert(!Ctx.getSourceManager().isLoadedSourceLocation(RC->getLocStart())); + assert(!Ctx.getSourceManager().isLoadedSourceLocation(RC->getBeginLoc())); std::string Doc = RC->getFormattedText(Ctx.getSourceManager(), Ctx.getDiagnostics()); if (!looksLikeDocComment(Doc)) return ""; @@ -84,7 +84,7 @@ getParameterDocComment(const ASTContext &Ctx, return ""; // Sanity check that the comment does not come from the PCH. We choose to not // write them into PCH, because they are racy and slow to load. - assert(!Ctx.getSourceManager().isLoadedSourceLocation(RC->getLocStart())); + assert(!Ctx.getSourceManager().isLoadedSourceLocation(RC->getBeginLoc())); std::string Doc = RC->getFormattedText(Ctx.getSourceManager(), Ctx.getDiagnostics()); if (!looksLikeDocComment(Doc)) return ""; |