diff options
| author | Alexander Kornienko <alexfh@google.com> | 2014-10-01 15:50:31 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2014-10-01 15:50:31 +0000 |
| commit | 97e8c3f6b5c940ad6804d4fa19491fb5c55df12f (patch) | |
| tree | ea1b4c6f8b8798ab6580e9933efb03e4c379387b | |
| parent | fd47fb9976a890340ebc1b0bb7e90d1f0f1eeafc (diff) | |
| download | bcm5719-llvm-97e8c3f6b5c940ad6804d4fa19491fb5c55df12f.tar.gz bcm5719-llvm-97e8c3f6b5c940ad6804d4fa19491fb5c55df12f.zip | |
[clang-tidy] Clarify a comment.
No functional changes.
llvm-svn: 218772
| -rw-r--r-- | clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp b/clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp index ed6ff9198e0..093250d541f 100644 --- a/clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp +++ b/clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp @@ -82,7 +82,8 @@ void AvoidCStyleCastsCheck::check(const MatchFinder::MatchResult &Result) { if (!Result.Context->getLangOpts().CPlusPlus) return; - // Leave type spelling exactly as it was. + // Leave type spelling exactly as it was (unlike + // getTypeAsWritten().getAsString() which would spell enum types 'enum X'). StringRef DestTypeString = Lexer::getSourceText( CharSourceRange::getTokenRange( CastExpr->getLParenLoc().getLocWithOffset(1), |

