diff options
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp | 12 |
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(); |