diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-04-07 14:55:25 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-04-07 14:55:25 +0000 |
commit | a62e2232815e537952bd6df271763521a0472498 (patch) | |
tree | ea5a784158442dae656b208e3d436cbc624fa55b /clang-tools-extra/clang-tidy/google/NonConstReferences.cpp | |
parent | 53f7c0ea8e02e2a49f13e713ec6bdbfe067e8383 (diff) | |
download | bcm5719-llvm-a62e2232815e537952bd6df271763521a0472498.tar.gz bcm5719-llvm-a62e2232815e537952bd6df271763521a0472498.zip |
[clang-tidy] Remove unnecessary getName() on Decls and Types feeding into a DiagnosticBuilder
Going through a string removes some of the smarts of the diagnosic printer
and makes the code more complicated. This change has some cosmetic impact
on the output but that's mostly minor.
llvm-svn: 265680
Diffstat (limited to 'clang-tools-extra/clang-tidy/google/NonConstReferences.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/google/NonConstReferences.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/google/NonConstReferences.cpp b/clang-tools-extra/clang-tidy/google/NonConstReferences.cpp index cafc908d8a7..5667bd19502 100644 --- a/clang-tools-extra/clang-tidy/google/NonConstReferences.cpp +++ b/clang-tools-extra/clang-tidy/google/NonConstReferences.cpp @@ -115,8 +115,8 @@ void NonConstReferences::check(const MatchFinder::MatchResult &Result) { << Parameter->getFunctionScopeIndex(); } else { diag(Parameter->getLocation(), - "non-const reference parameter '%0', make it const or use a pointer") - << Parameter->getName(); + "non-const reference parameter %0, make it const or use a pointer") + << Parameter; } } |