[clang-tools-extra] r218772 - [clang-tidy] Clarify a comment.
Alexander Kornienko
alexfh at google.com
Wed Oct 1 08:50:31 PDT 2014
Author: alexfh
Date: Wed Oct 1 10:50:31 2014
New Revision: 218772
URL: http://llvm.org/viewvc/llvm-project?rev=218772&view=rev
Log:
[clang-tidy] Clarify a comment.
No functional changes.
Modified:
clang-tools-extra/trunk/clang-tidy/google/AvoidCStyleCastsCheck.cpp
Modified: clang-tools-extra/trunk/clang-tidy/google/AvoidCStyleCastsCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/google/AvoidCStyleCastsCheck.cpp?rev=218772&r1=218771&r2=218772&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/google/AvoidCStyleCastsCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/google/AvoidCStyleCastsCheck.cpp Wed Oct 1 10:50:31 2014
@@ -82,7 +82,8 @@ void AvoidCStyleCastsCheck::check(const
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),
More information about the cfe-commits
mailing list