Jonas Toth
a735803801
[clang-tidy] add more aliases for the hicpp module
...
This patch will introduce even more aliases for the hicpp-module to already existing
checks and is a follow up for D30383 finishing the other sections.
It fixes a forgotten highlight in hicpp-braces-around-statements.rst, too.
llvm-svn: 312901
2017-09-11 09:20:07 +00:00
Jonas Toth
a8c34530df
[clang-tidy] hicpp bitwise operations on signed integers
...
Summary:
This check implements the rule [[ http://www.codingstandard.com/section/5-6-shift-operators/ | 5.6. HIC++ ]]
that forbidds bitwise operations on signed integer types.
Reviewers: aaron.ballman, hokein, alexfh, Eugene.Zelenko
Reviewed By: aaron.ballman
Subscribers: cfe-commits, mgorny, JDevlieghere, xazax.hun
Differential Revision: https://reviews.llvm.org/D36586
llvm-svn: 312122
2017-08-30 13:32:05 +00:00
Aaron Ballman
a3274e5443
Add hicpp-exception-baseclass to the HIC++ module.
...
This enforces that throwing an exception in C++ requires that exception to inherit from std::exception.
Patch by Jonas Toth.
llvm-svn: 310727
2017-08-11 16:31:51 +00:00
Aaron Ballman
6c2920a30a
Implement hicpp-braces-around-statements as an alias to readability-braces-around-statements.
...
Patch by Jonas Toth.
llvm-svn: 310707
2017-08-11 12:12:36 +00:00
Jonathan Coe
88232264ac
[clang-tidy] add aliases for hicpp module
...
Summary: Add some hicpp checks that can be implmented as alises for existing clang-tidy checks:
hicpp-explicit-conversions
hicpp-function-size
hicpp-named-parameter
hicpp-invalid-access-moved
hicpp-member-init
hicpp-new-delete-operators
hicpp-noexcept-move
hicpp-special-member-functions
hicpp-undelegated-constructor
hicpp-use-equals-default
hicpp-use-equals-delete
hicpp-use-override
Reviewers: dberlin, jbcoe, aaron.ballman, alexfh
Reviewed By: aaron.ballman
Subscribers: JDevlieghere
Differential Revision: https://reviews.llvm.org/D30383
Patch By: Jonas Toth
llvm-svn: 299068
2017-03-30 11:57:54 +00:00
Aaron Ballman
dbdbabf205
Rename the clang-tidy safety module to be hicpp, for the High-Integrity C++ coding standard from PRQA.
...
This commit renames all of the safety functionality to be hicpp, adds an appropriate LICENSE.TXT, and updates the documentation accordingly.
llvm-svn: 298229
2017-03-19 17:23:23 +00:00