diff options
author | Gabor Horvath <xazax.hun@gmail.com> | 2016-02-11 09:23:33 +0000 |
---|---|---|
committer | Gabor Horvath <xazax.hun@gmail.com> | 2016-02-11 09:23:33 +0000 |
commit | 8b6434e56e77a2a60138ffb0085a298b4f38ea1b (patch) | |
tree | 615840584bb7c2da8a312675d0997fff19b14939 /clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp | |
parent | 6e2edc4b84352c126eab02196c3002ab71381808 (diff) | |
download | bcm5719-llvm-8b6434e56e77a2a60138ffb0085a298b4f38ea1b.tar.gz bcm5719-llvm-8b6434e56e77a2a60138ffb0085a298b4f38ea1b.zip |
[clang-tidy] Add a check to find unintended semicolons that changes the semantics.
Reviewers: hokein, alexfh
Differential Revision: http://reviews.llvm.org/D16535
llvm-svn: 260503
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp b/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp index 16fbf2de986..efb5cb9cf24 100644 --- a/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp @@ -29,6 +29,7 @@ #include "SizeofContainerCheck.h" #include "StaticAssertCheck.h" #include "StringIntegerAssignmentCheck.h" +#include "SuspiciousSemicolonCheck.h" #include "SwappedArgumentsCheck.h" #include "ThrowByValueCatchByReferenceCheck.h" #include "UndelegatedConstructor.h" @@ -81,6 +82,8 @@ public: "misc-static-assert"); CheckFactories.registerCheck<StringIntegerAssignmentCheck>( "misc-string-integer-assignment"); + CheckFactories.registerCheck<SuspiciousSemicolonCheck>( + "misc-suspicious-semicolon"); CheckFactories.registerCheck<SwappedArgumentsCheck>( "misc-swapped-arguments"); CheckFactories.registerCheck<ThrowByValueCatchByReferenceCheck>( |