llvm-project/clang-tools-extra/clang-tidy
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
..
google Add clang-tidy check google-global-names-in-headers. 2015-02-11 21:21:05 +00:00
llvm [cleanup] Re-sort the #include lines with llvm/utils/sort_includes.py 2015-01-14 11:24:38 +00:00
misc [clang-tidy] Assert related checkers 2015-03-02 10:46:43 +00:00
readability Re-sort includes using the LLVM utils/sort_includes.py script. 2015-02-13 09:07:58 +00:00
tool Revert "Adapt clang-tools-extra to clang module format changes." 2015-02-25 02:46:37 +00:00
utils [clang-tidy] Use the new ArrayRef<FixItHint> inserter. 2015-02-25 14:42:02 +00:00
CMakeLists.txt [CMake] Add dependencies on clangToolingCore. 2014-10-30 00:44:01 +00:00
ClangTidy.cpp Add flag --enable-check-profile to clang-tidy. 2014-10-23 17:23:20 +00:00
ClangTidy.h [clang-tidy] Correct confusion between overwrite and override. NFC. 2015-02-25 13:05:33 +00:00
ClangTidyDiagnosticConsumer.cpp [clang-tidy] Count errors in ClangTidyDiagnosticConsumer 2014-11-20 12:05:51 +00:00
ClangTidyDiagnosticConsumer.h Fixed a typo in a comment. NFC. 2014-12-19 15:37:02 +00:00
ClangTidyModule.cpp [clang-tidy] Default options in modules. 2014-10-16 11:27:57 +00:00
ClangTidyModule.h [clang-tidy] Default options in modules. 2014-10-16 11:27:57 +00:00
ClangTidyModuleRegistry.h
ClangTidyOptions.cpp [clang-tidy] Don't ignore default set of checks when a config file is found. 2015-02-05 14:50:17 +00:00
ClangTidyOptions.h [clang-tidy] Make ClangTidyOptionsProvider::getOptions return by value. 2015-01-20 09:48:51 +00:00
Makefile Add NamespaceCommentCheck to the Google module. 2014-09-22 10:41:39 +00:00
add_new_check.py [clang-tidy] Extended the example check, added a fix-it, etc. 2014-12-09 12:43:09 +00:00