[PATCH] D13444: [clang-tidy] Clocky module and multiple check from my repository
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 5 11:47:37 PDT 2015
ClockMan created this revision.
ClockMan added a subscriber: cfe-commits.
ClockMan set the repository for this revision to rL LLVM.
This is bunch of checks that I created and keep on my private git repository (http://git.piotrzegar.eu/clockman/ClangTidy.git).
List of checks:
- clocky-broken-rule-of-five
- clocky-duplicated-variable-name
- clocky-exception-catch-by-value
- clocky-exception-function-try-in-destructor
- clocky-exception-rethrow-invalid
- clocky-exception-throw-in-noexcept
- clocky-exception-throw-large-type
- clocky-exception-throw-multiple-inheritance-type
- clocky-exception-throw-non-std-base-type
- clocky-exception-throw-std-type
- clocky-inefficient-container-insert
- clocky-inefficient-operator-use
- clocky-manual-memory-management
- clocky-member-bitfield-signed-single-bit
- clocky-member-double-initialization
- clocky-member-smart-ptr-reference
- clocky-object-copy-in-range-for
- clocky-operator-bitwise-various-size-type
- clocky-parameter-large-type-copied
- clocky-reorder-fields
- clocky-return-const-value-disable-move
- clocky-shared-ptr-with-new
- clocky-unique-ptr-with-new
- clocky-variable-double-initialization
- clocky-virtual-destructor
- clocky-virtual-inheritance
- clocky-virtual-method-private
- clocky-virtual-method-shadows
For details look into documentation.
Please check (I has some crashes related to this):
- if way used to get type size is correct
- if way used to get proper type/decl name is correct
I know that tests still require some work.
I hate 80 characters line long limit.
Any comments, suggestions are welcome.
Repository:
rL LLVM
http://reviews.llvm.org/D13444
Files:
clang-tidy/CMakeLists.txt
clang-tidy/Makefile
clang-tidy/clocky/BrokenRuleOfFiveCheck.cpp
clang-tidy/clocky/BrokenRuleOfFiveCheck.h
clang-tidy/clocky/CMakeLists.txt
clang-tidy/clocky/ClockyCheckBase.cpp
clang-tidy/clocky/ClockyCheckBase.h
clang-tidy/clocky/ClockyTidyModule.cpp
clang-tidy/clocky/DuplicatedVariableNameCheck.cpp
clang-tidy/clocky/DuplicatedVariableNameCheck.h
clang-tidy/clocky/ExceptionCatchByValueCheck.cpp
clang-tidy/clocky/ExceptionCatchByValueCheck.h
clang-tidy/clocky/ExceptionFunctionTryInDestructorCheck.cpp
clang-tidy/clocky/ExceptionFunctionTryInDestructorCheck.h
clang-tidy/clocky/ExceptionRethrowInvalidCheck.cpp
clang-tidy/clocky/ExceptionRethrowInvalidCheck.h
clang-tidy/clocky/ExceptionThrowInNoexceptCheck.cpp
clang-tidy/clocky/ExceptionThrowInNoexceptCheck.h
clang-tidy/clocky/ExceptionThrowLargeTypeCheck.cpp
clang-tidy/clocky/ExceptionThrowLargeTypeCheck.h
clang-tidy/clocky/ExceptionThrowMultipleInheritanceTypeCheck.cpp
clang-tidy/clocky/ExceptionThrowMultipleInheritanceTypeCheck.h
clang-tidy/clocky/ExceptionThrowNonStdBaseTypeCheck.cpp
clang-tidy/clocky/ExceptionThrowNonStdBaseTypeCheck.h
clang-tidy/clocky/ExceptionThrowStdTypeCheck.cpp
clang-tidy/clocky/ExceptionThrowStdTypeCheck.h
clang-tidy/clocky/InefficientContainerInsertCheck.cpp
clang-tidy/clocky/InefficientContainerInsertCheck.h
clang-tidy/clocky/InefficientOperatorUseCheck.cpp
clang-tidy/clocky/InefficientOperatorUseCheck.h
clang-tidy/clocky/Makefile
clang-tidy/clocky/ManualMemoryManagementCheck.cpp
clang-tidy/clocky/ManualMemoryManagementCheck.h
clang-tidy/clocky/MemberBitfieldSignedSingleBitCheck.cpp
clang-tidy/clocky/MemberBitfieldSignedSingleBitCheck.h
clang-tidy/clocky/MemberDoubleInitializationCheck.cpp
clang-tidy/clocky/MemberDoubleInitializationCheck.h
clang-tidy/clocky/MemberSmartPtrReferenceCheck.cpp
clang-tidy/clocky/MemberSmartPtrReferenceCheck.h
clang-tidy/clocky/ObjectCopyInRangeForCheck.cpp
clang-tidy/clocky/ObjectCopyInRangeForCheck.h
clang-tidy/clocky/OperatorBitwiseVariousSizeTypeCheck.cpp
clang-tidy/clocky/OperatorBitwiseVariousSizeTypeCheck.h
clang-tidy/clocky/ParameterLargeTypeCopiedCheck.cpp
clang-tidy/clocky/ParameterLargeTypeCopiedCheck.h
clang-tidy/clocky/ReorderFieldsCheck.cpp
clang-tidy/clocky/ReorderFieldsCheck.h
clang-tidy/clocky/ReturnConstValueDisableMoveCheck.cpp
clang-tidy/clocky/ReturnConstValueDisableMoveCheck.h
clang-tidy/clocky/SharedPtrWithNewCheck.cpp
clang-tidy/clocky/SharedPtrWithNewCheck.h
clang-tidy/clocky/UniquePtrWithNewCheck.cpp
clang-tidy/clocky/UniquePtrWithNewCheck.h
clang-tidy/clocky/VariableDoubleInitializationCheck.cpp
clang-tidy/clocky/VariableDoubleInitializationCheck.h
clang-tidy/clocky/VirtualDestructorCheck.cpp
clang-tidy/clocky/VirtualDestructorCheck.h
clang-tidy/clocky/VirtualInheritanceCheck.cpp
clang-tidy/clocky/VirtualInheritanceCheck.h
clang-tidy/clocky/VirtualMethodPrivateCheck.cpp
clang-tidy/clocky/VirtualMethodPrivateCheck.h
clang-tidy/clocky/VirtualMethodShadowsCheck.cpp
clang-tidy/clocky/VirtualMethodShadowsCheck.h
clang-tidy/tool/CMakeLists.txt
clang-tidy/tool/ClangTidyMain.cpp
docs/clang-tidy/checks/clocky-broken-rule-of-five.rst
docs/clang-tidy/checks/clocky-duplicated-variable-name.rst
docs/clang-tidy/checks/clocky-exception-catch-by-value.rst
docs/clang-tidy/checks/clocky-exception-function-try-in-destructor.rst
docs/clang-tidy/checks/clocky-exception-rethrow-invalid.rst
docs/clang-tidy/checks/clocky-exception-throw-in-noexcept.rst
docs/clang-tidy/checks/clocky-exception-throw-large-type.rst
docs/clang-tidy/checks/clocky-exception-throw-multiple-inheritance-type.rst
docs/clang-tidy/checks/clocky-exception-throw-non-std-base-type.rst
docs/clang-tidy/checks/clocky-exception-throw-std-type.rst
docs/clang-tidy/checks/clocky-inefficient-container-insert.rst
docs/clang-tidy/checks/clocky-inefficient-operator-use.rst
docs/clang-tidy/checks/clocky-manual-memory-management.rst
docs/clang-tidy/checks/clocky-member-bitfield-signed-single-bit.rst
docs/clang-tidy/checks/clocky-member-double-initialization.rst
docs/clang-tidy/checks/clocky-member-smart-ptr-reference.rst
docs/clang-tidy/checks/clocky-object-copy-in-range-for.rst
docs/clang-tidy/checks/clocky-operator-bitwise-various-size-type.rst
docs/clang-tidy/checks/clocky-parameter-large-type-copied.rst
docs/clang-tidy/checks/clocky-reorder-fields.rst
docs/clang-tidy/checks/clocky-return-const-value-disable-move.rst
docs/clang-tidy/checks/clocky-shared-ptr-with-new.rst
docs/clang-tidy/checks/clocky-unique-ptr-with-new.rst
docs/clang-tidy/checks/clocky-variable-double-initialization.rst
docs/clang-tidy/checks/clocky-virtual-destructor.rst
docs/clang-tidy/checks/clocky-virtual-inheritance.rst
docs/clang-tidy/checks/clocky-virtual-method-private.rst
docs/clang-tidy/checks/clocky-virtual-method-shadows.rst
docs/clang-tidy/checks/list.rst
test/clang-tidy/Inputs/clocky/containers.h
test/clang-tidy/Inputs/clocky/smart_ptrs.h
test/clang-tidy/clocky-broken-rule-of-five.cpp
test/clang-tidy/clocky-duplicated-variable-name.cpp
test/clang-tidy/clocky-exception-catch-by-value.cpp
test/clang-tidy/clocky-exception-function-try-in-destructor.cpp
test/clang-tidy/clocky-exception-rethrow-invalid.cpp
test/clang-tidy/clocky-exception-throw-in-noexcept.cpp
test/clang-tidy/clocky-exception-throw-large-type.cpp
test/clang-tidy/clocky-exception-throw-multiple-inheritance-type.cpp
test/clang-tidy/clocky-exception-throw-non-std-base-type.cpp
test/clang-tidy/clocky-exception-throw-std-type.cpp
test/clang-tidy/clocky-inefficient-container-insert.cpp
test/clang-tidy/clocky-inefficient-operator-use.cpp
test/clang-tidy/clocky-manual-memory-management.cpp
test/clang-tidy/clocky-member-bitfield-signed-single-bit.cpp
test/clang-tidy/clocky-member-double-initialization.cpp
test/clang-tidy/clocky-member-smart-ptr-reference.cpp
test/clang-tidy/clocky-object-copy-in-range-for.cpp
test/clang-tidy/clocky-operator-bitwise-various-size-type.cpp
test/clang-tidy/clocky-parameter-large-type-copied.cpp
test/clang-tidy/clocky-reorder-fields.cpp
test/clang-tidy/clocky-return-const-value-disable-move.cpp
test/clang-tidy/clocky-shared-ptr-with-new.cpp
test/clang-tidy/clocky-unique-ptr-with-new.cpp
test/clang-tidy/clocky-variable-double-initialization.cpp
test/clang-tidy/clocky-virtual-destructor.cpp
test/clang-tidy/clocky-virtual-inheritance.cpp
test/clang-tidy/clocky-virtual-method-private.cpp
test/clang-tidy/clocky-virtual-method-shadows.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13444.36538.patch
Type: text/x-patch
Size: 233252 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151005/a695b38e/attachment-0001.bin>
More information about the cfe-commits
mailing list