diff options
| author | Alexander Kornienko <alexfh@google.com> | 2017-03-03 08:18:49 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2017-03-03 08:18:49 +0000 |
| commit | db04cccb87813a60cad7f89b726b6c1bc6dbb8ff (patch) | |
| tree | a8c362fdd3262b3d8e23d841bf5a7fe5da6881bd /clang-tools-extra/clang-tidy/google | |
| parent | 69bccf96bda7a09abcd39d068f8a49f866ba3f27 (diff) | |
| download | bcm5719-llvm-db04cccb87813a60cad7f89b726b6c1bc6dbb8ff.tar.gz bcm5719-llvm-db04cccb87813a60cad7f89b726b6c1bc6dbb8ff.zip | |
[clang-tidy] google-readability-casting: don't use constructor call syntax for const types
llvm-svn: 296858
Diffstat (limited to 'clang-tools-extra/clang-tidy/google')
| -rw-r--r-- | clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp b/clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp index ae9c74e8b3d..b3caf917520 100644 --- a/clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp +++ b/clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp @@ -149,7 +149,7 @@ void AvoidCStyleCastsCheck::check(const MatchFinder::MatchResult &Result) { ReplaceWithNamedCast("static_cast"); return; case CK_ConstructorConversion: - if (!DestTypeAsWritten.hasQualifiers() && + if (!CastExpr->getTypeAsWritten().hasQualifiers() && DestTypeAsWritten->isRecordType() && !DestTypeAsWritten->isElaboratedTypeSpecifier()) { Diag << "constructor call syntax"; |

