Author: aaronballman Date: Fri Aug 11 05:12:36 2017 New Revision: 310707 URL: http://llvm.org/viewvc/llvm-project?rev=310707&view=rev Log: Implement hicpp-braces-around-statements as an alias to readability-braces-around-statements.
Patch by Jonas Toth. Added: clang-tools-extra/trunk/docs/clang-tidy/checks/hicpp-braces-around-statements.rst Modified: clang-tools-extra/trunk/clang-tidy/hicpp/HICPPTidyModule.cpp clang-tools-extra/trunk/docs/ReleaseNotes.rst clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst Modified: clang-tools-extra/trunk/clang-tidy/hicpp/HICPPTidyModule.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/hicpp/HICPPTidyModule.cpp?rev=310707&r1=310706&r2=310707&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-tidy/hicpp/HICPPTidyModule.cpp (original) +++ clang-tools-extra/trunk/clang-tidy/hicpp/HICPPTidyModule.cpp Fri Aug 11 05:12:36 2017 @@ -21,6 +21,7 @@ #include "../modernize/UseEqualsDefaultCheck.h" #include "../modernize/UseEqualsDeleteCheck.h" #include "../modernize/UseOverrideCheck.h" +#include "../readability/BracesAroundStatementsCheck.h" #include "../readability/FunctionSizeCheck.h" #include "../readability/IdentifierNamingCheck.h" #include "NoAssemblerCheck.h" @@ -32,6 +33,8 @@ namespace hicpp { class HICPPModule : public ClangTidyModule { public: void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override { + CheckFactories.registerCheck<readability::BracesAroundStatementsCheck>( + "hicpp-braces-around-statements"); CheckFactories.registerCheck<google::ExplicitConstructorCheck>( "hicpp-explicit-conversions"); CheckFactories.registerCheck<readability::FunctionSizeCheck>( Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/ReleaseNotes.rst?rev=310707&r1=310706&r2=310707&view=diff ============================================================================== --- clang-tools-extra/trunk/docs/ReleaseNotes.rst (original) +++ clang-tools-extra/trunk/docs/ReleaseNotes.rst Fri Aug 11 05:12:36 2017 @@ -92,6 +92,8 @@ Improvements to clang-tidy <http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-emplace.html#cmdoption-arg-IgnoreImplicitConstructors>`_ option. +- Added alias `hicpp-braces-around-statements <http://clang.llvm.org/extra/clang-tidy/checks/hicpp-braces-around-statements.html>`_ + Improvements to include-fixer ----------------------------- Added: clang-tools-extra/trunk/docs/clang-tidy/checks/hicpp-braces-around-statements.rst URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/hicpp-braces-around-statements.rst?rev=310707&view=auto ============================================================================== --- clang-tools-extra/trunk/docs/clang-tidy/checks/hicpp-braces-around-statements.rst (added) +++ clang-tools-extra/trunk/docs/clang-tidy/checks/hicpp-braces-around-statements.rst Fri Aug 11 05:12:36 2017 @@ -0,0 +1,11 @@ +.. title:: clang-tidy - hicpp-braces-around-statements +.. meta:: + :http-equiv=refresh: 5;URL=readability-braces-around-statements.html + +hicpp-braces-around-statements +============================== + +The hicpp-braces-around-statements check is an alias, please see +`readability-braces-around-statements <readability-braces-around-statements.html>`_ +for more information. +It enforces the `rule 6.1.1 <http://www.codingstandard.com/rule/6-1-1-enclose-the-body-of-a-selection-or-an-iteration-statement-in-a-compound-statement/>`_. Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst?rev=310707&r1=310706&r2=310707&view=diff ============================================================================== --- clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst (original) +++ clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst Fri Aug 11 05:12:36 2017 @@ -62,6 +62,7 @@ Clang-Tidy Checks google-runtime-member-string-references google-runtime-operator google-runtime-references + hicpp-braces-around-statements (redirects to readability-braces-around-statements) <hicpp-braces-around-statements> hicpp-explicit-conversions (redirects to google-explicit-constructor) <hicpp-explicit-conversions> hicpp-function-size (redirects to readability-function-size) <hicpp-function-size> hicpp-invalid-access-moved (redirects to misc-use-after-move) <hicpp-invalid-access-moved> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits