[clang-tools-extra] r212033 - Added a comment to document relation of this check to -Wold-style-cast.

Alexander Kornienko alexfh at google.com
Mon Jun 30 02:54:12 PDT 2014


Author: alexfh
Date: Mon Jun 30 04:54:12 2014
New Revision: 212033

URL: http://llvm.org/viewvc/llvm-project?rev=212033&view=rev
Log:
Added a comment to document relation of this check to -Wold-style-cast.

Modified:
    clang-tools-extra/trunk/clang-tidy/google/AvoidCStyleCastsCheck.h

Modified: clang-tools-extra/trunk/clang-tidy/google/AvoidCStyleCastsCheck.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/google/AvoidCStyleCastsCheck.h?rev=212033&r1=212032&r2=212033&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/google/AvoidCStyleCastsCheck.h (original)
+++ clang-tools-extra/trunk/clang-tidy/google/AvoidCStyleCastsCheck.h Mon Jun 30 04:54:12 2014
@@ -20,6 +20,10 @@ namespace readability {
 ///
 /// http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Casting#Casting
 /// Corresponding cpplint.py check name: 'readability/casting'.
+///
+/// This check is similar to -Wold-style-cast, but it will suggest automated
+/// fixes eventually. The reported locations should not be different from the
+/// ones generated by -Wold-style-cast.
 class AvoidCStyleCastsCheck : public ClangTidyCheck {
 public:
   void registerMatchers(ast_matchers::MatchFinder *Finder) override;





More information about the cfe-commits mailing list