summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-01-08 15:21:40 +0000
committerAlexander Kornienko <alexfh@google.com>2016-01-08 15:21:40 +0000
commitb1b2f87e37774ee61dc5c6ea3aa04a99a1adda66 (patch)
tree9b89a8eff42185d0cd1039b45cc08fd41c903610 /clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp
parent0e04f6c30f6ac9684c76f9637101203f46700f34 (diff)
downloadbcm5719-llvm-b1b2f87e37774ee61dc5c6ea3aa04a99a1adda66.tar.gz
bcm5719-llvm-b1b2f87e37774ee61dc5c6ea3aa04a99a1adda66.zip
[clang-tidy] Use proper capitalization and punctuation for diagnostic messages.
Use diagnostic parameters where possible instead of string concatenation. llvm-svn: 257176
Diffstat (limited to 'clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp b/clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp
index 2b86c2fea38..158fe2e37e8 100644
--- a/clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp
+++ b/clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp
@@ -122,7 +122,7 @@ void RedundantSmartptrGetCheck::check(const MatchFinder::MatchResult &Result) {
*Result.SourceManager, Result.Context->getLangOpts());
// Replace foo->get() with *foo, and foo.get() with foo.
std::string Replacement = Twine(IsPtrToPtr ? "*" : "", SmartptrText).str();
- diag(GetCall->getLocStart(), "Redundant get() call on smart pointer.")
+ diag(GetCall->getLocStart(), "redundant get() call on smart pointer")
<< FixItHint::CreateReplacement(GetCall->getSourceRange(), Replacement);
}
OpenPOWER on IntegriCloud