summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/CodeCompletionStrings.cpp
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2018-07-26 12:05:31 +0000
committerIlya Biryukov <ibiryukov@google.com>2018-07-26 12:05:31 +0000
commit74f2655dc7f2a7ece916e315bf9302f92d8425d4 (patch)
tree87332933a0d043cf603144202a203ef5af54662f /clang-tools-extra/clangd/CodeCompletionStrings.cpp
parent127093129aa049f05594c80f7f4ae09187bb94a8 (diff)
downloadbcm5719-llvm-74f2655dc7f2a7ece916e315bf9302f92d8425d4.tar.gz
bcm5719-llvm-74f2655dc7f2a7ece916e315bf9302f92d8425d4.zip
[clangd] Fix (most) naming warnings from clang-tidy. NFC
llvm-svn: 338021
Diffstat (limited to 'clang-tools-extra/clangd/CodeCompletionStrings.cpp')
-rw-r--r--clang-tools-extra/clangd/CodeCompletionStrings.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clangd/CodeCompletionStrings.cpp b/clang-tools-extra/clangd/CodeCompletionStrings.cpp
index 474419d05d0..88b37daf8b5 100644
--- a/clang-tools-extra/clangd/CodeCompletionStrings.cpp
+++ b/clang-tools-extra/clangd/CodeCompletionStrings.cpp
@@ -32,7 +32,7 @@ void appendEscapeSnippet(const llvm::StringRef Text, std::string *Out) {
}
}
-bool LooksLikeDocComment(llvm::StringRef CommentText) {
+bool looksLikeDocComment(llvm::StringRef CommentText) {
// We don't report comments that only contain "special" chars.
// This avoids reporting various delimiters, like:
// =================
@@ -67,7 +67,7 @@ std::string getDocComment(const ASTContext &Ctx,
// write them into PCH, because they are racy and slow to load.
assert(!Ctx.getSourceManager().isLoadedSourceLocation(RC->getLocStart()));
std::string Doc = RC->getFormattedText(Ctx.getSourceManager(), Ctx.getDiagnostics());
- if (!LooksLikeDocComment(Doc))
+ if (!looksLikeDocComment(Doc))
return "";
return Doc;
}
@@ -86,7 +86,7 @@ getParameterDocComment(const ASTContext &Ctx,
// write them into PCH, because they are racy and slow to load.
assert(!Ctx.getSourceManager().isLoadedSourceLocation(RC->getLocStart()));
std::string Doc = RC->getFormattedText(Ctx.getSourceManager(), Ctx.getDiagnostics());
- if (!LooksLikeDocComment(Doc))
+ if (!looksLikeDocComment(Doc))
return "";
return Doc;
}
OpenPOWER on IntegriCloud