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),


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to