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/readability/FunctionSizeCheck.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/readability/FunctionSizeCheck.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.cpp b/clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.cpp index 42ce65b3d87..dc411fcafdc 100644 --- a/clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.cpp +++ b/clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.cpp @@ -74,8 +74,8 @@ void FunctionSizeCheck::onEndOfTranslationUnit() { if (FI.Lines > LineThreshold || FI.Statements > StatementThreshold || FI.Branches > BranchThreshold) { diag(P.first->getLocation(), - "function '%0' exceeds recommended size/complexity thresholds") - << P.first->getNameAsString(); + "function %0 exceeds recommended size/complexity thresholds") + << P.first; } if (FI.Lines > LineThreshold) { |