llvm-project/clang-tools-extra/clang-tidy/misc
Alexander Kornienko 1ca3b83255 [clang-tidy] Assert related checkers
This patch contains two assert related checkers. These checkers are the part of
those that is being open sourced by Ericsson
(http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-December/040520.html).

The checkers:

AssertSideEffect:
/// \brief Finds \c assert() with side effect.
///
/// The conition of \c assert() is evaluated only in debug builds so a condition
/// with side effect can cause different behaviour in debug / relesase builds.

StaticAssert:
/// \brief Replaces \c assert() with \c static_assert() if the condition is 
/// evaluatable at compile time.
///
/// The condition of \c static_assert() is evaluated at compile time which is
/// safer and more efficient.

http://reviews.llvm.org/D7375

Patch by Szabolcs Sipos!

llvm-svn: 230943
2015-03-02 10:46:43 +00:00
..
ArgumentCommentCheck.cpp Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
ArgumentCommentCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
AssertSideEffectCheck.cpp [clang-tidy] Assert related checkers 2015-03-02 10:46:43 +00:00
AssertSideEffectCheck.h [clang-tidy] Assert related checkers 2015-03-02 10:46:43 +00:00
AssignOperatorSignatureCheck.cpp Verify assign operator signatures. 2015-02-09 17:50:40 +00:00
AssignOperatorSignatureCheck.h Verify assign operator signatures. 2015-02-09 17:50:40 +00:00
BoolPointerImplicitConversion.cpp [clang-tidy] Use new ASTMatchers to identify template instantiations instead of copying it everywhere. 2014-09-03 13:21:51 +00:00
BoolPointerImplicitConversion.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
CMakeLists.txt [clang-tidy] Assert related checkers 2015-03-02 10:46:43 +00:00
InaccurateEraseCheck.cpp [clang-tidy] Fixed a false positive case in misc-inaccurate-erase checker. 2015-02-25 12:17:03 +00:00
InaccurateEraseCheck.h [clang-tidy] Checker for inaccurate use of erase() method. 2015-02-10 09:14:26 +00:00
InefficientAlgorithmCheck.cpp [clang-tidy] Fixed two wrong fix-it cases in misc-inefficient-algorithm checker. 2015-02-17 21:45:38 +00:00
InefficientAlgorithmCheck.h [clang-tidy] Checker for inefficient use of algorithms on associative containers 2015-02-07 19:54:19 +00:00
Makefile
MiscTidyModule.cpp [clang-tidy] Assert related checkers 2015-03-02 10:46:43 +00:00
StaticAssertCheck.cpp [clang-tidy] Assert related checkers 2015-03-02 10:46:43 +00:00
StaticAssertCheck.h [clang-tidy] Assert related checkers 2015-03-02 10:46:43 +00:00
SwappedArgumentsCheck.cpp [clang-tidy] Add a checker for swapped arguments. 2014-07-14 14:24:30 +00:00
SwappedArgumentsCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
UndelegatedConstructor.cpp [clang-tidy] Eliminate inline copies of InTemplateInstantiation matcher. 2014-09-03 13:30:28 +00:00
UndelegatedConstructor.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
UniqueptrResetRelease.cpp [clang-tidy] Add clang-tidy check for unique_ptr's reset+release -> move 2014-12-05 11:59:05 +00:00
UniqueptrResetRelease.h [clang-tidy] Add clang-tidy check for unique_ptr's reset+release -> move 2014-12-05 11:59:05 +00:00
UnusedRAII.cpp [clang-tidy] Eliminate inline copies of InTemplateInstantiation matcher. 2014-09-03 13:30:28 +00:00
UnusedRAII.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
UseOverride.cpp [clang-tidy] Various improvements in misc-use-override 2015-02-27 16:50:32 +00:00
UseOverride.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00