aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2021-01-29 00:49:53 +0100
committerAlexander Kornienko <alexfh@google.com>2021-01-29 01:01:19 +0100
commitab2d3ce47d6fead7fb79b3c0c7c4c6ac2b930d45 (patch)
treee0508e1690f4d6d8b3b93b4cc68d67f0bc0d8914 /clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
parenta1a3fdcdba52c9d0a045af5f68365c273467b127 (diff)
downloadllvm-ab2d3ce47d6fead7fb79b3c0c7c4c6ac2b930d45.zip
llvm-ab2d3ce47d6fead7fb79b3c0c7c4c6ac2b930d45.tar.gz
llvm-ab2d3ce47d6fead7fb79b3c0c7c4c6ac2b930d45.tar.bz2
[clang-tidy] Applied clang-tidy fixes. NFC
Applied fixes enabled by the LLVM's .clang-tidy configs. Reverted files where fixes introduced compile errors: clang-tools-extra/clang-tidy/hicpp/NoAssemblerCheck.cpp clang-tools-extra/clang-tidy/misc/ThrowByValueCatchByReferenceCheck.cpp $ clang-tools-extra/clang-tidy/tool/run-clang-tidy.py -fix clang-tools-extra/clang-tidy/ Enabled checks: llvm-else-after-return llvm-header-guard llvm-include-order llvm-namespace-comment llvm-prefer-isa-or-dyn-cast-in-conditionals llvm-prefer-register-over-unsigned llvm-qualified-auto llvm-twine-local misc-definitions-in-headers misc-misplaced-const misc-new-delete-overloads misc-no-recursion misc-non-copyable-objects misc-redundant-expression misc-static-assert misc-throw-by-value-catch-by-reference misc-unconventional-assign-operator misc-uniqueptr-reset-release misc-unused-alias-decls misc-unused-using-decls readability-identifier-naming Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D95614
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp b/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
index f3e8506..a12a056 100644
--- a/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
@@ -58,13 +58,13 @@ void UseUsingCheck::check(const MatchFinder::MatchResult &Result) {
return;
}
- auto printPolicy = PrintingPolicy(getLangOpts());
- printPolicy.SuppressScope = true;
- printPolicy.ConstantArraySizeAsWritten = true;
- printPolicy.UseVoidForZeroParams = false;
- printPolicy.PrintInjectedClassNameWithArguments = false;
+ PrintingPolicy PrintPolicy(getLangOpts());
+ PrintPolicy.SuppressScope = true;
+ PrintPolicy.ConstantArraySizeAsWritten = true;
+ PrintPolicy.UseVoidForZeroParams = false;
+ PrintPolicy.PrintInjectedClassNameWithArguments = false;
- std::string Type = MatchedDecl->getUnderlyingType().getAsString(printPolicy);
+ std::string Type = MatchedDecl->getUnderlyingType().getAsString(PrintPolicy);
std::string Name = MatchedDecl->getNameAsString();
SourceRange ReplaceRange = MatchedDecl->getSourceRange();