llvm-project/clang-tools-extra
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
..
clang-apply-replacements Revert "Adapt clang-tools-extra to clang module format changes." 2015-02-25 02:46:37 +00:00
clang-modernize Update for clang r230512 2015-02-25 17:36:49 +00:00
clang-query Add 'let' to the help message. 2015-02-27 17:53:23 +00:00
clang-rename Revert "Adapt clang-tools-extra to clang module format changes." 2015-02-25 02:46:37 +00:00
clang-tidy [clang-tidy] Assert related checkers 2015-03-02 10:46:43 +00:00
docs Fixed script name in the clang-tidy documentation. 2015-02-23 01:12:41 +00:00
modularize Fixed canonical path function. 2015-02-26 19:31:10 +00:00
pp-trace Revert "Adapt clang-tools-extra to clang module format changes." 2015-02-25 02:46:37 +00:00
remove-cstr-calls Revert "Adapt clang-tools-extra to clang module format changes." 2015-02-25 02:46:37 +00:00
test [clang-tidy] Assert related checkers 2015-03-02 10:46:43 +00:00
tool-template Revert "Adapt clang-tools-extra to clang module format changes." 2015-02-25 02:46:37 +00:00
unittests Revert "Adapt clang-tools-extra to clang module format changes." 2015-02-25 02:46:37 +00:00
.arcconfig Update arc config to new domain. 2014-04-07 10:23:19 +00:00
.gitignore
CMakeLists.txt Deleted module-map-checker, as it's been folded into modularize. 2015-02-20 14:28:10 +00:00
CODE_OWNERS.TXT Switching code owner email address. 2013-10-08 16:28:05 +00:00
LICENSE.TXT Update the copyright credits -- Happy new year 2014! 2014-01-01 08:27:31 +00:00
Makefile Deleted module-map-checker, as it's been folded into modularize. 2015-02-20 14:28:10 +00:00
README.txt Reverted Test commit; added new line to the end of README.txt 2013-10-12 20:43:36 +00:00

README.txt

//===----------------------------------------------------------------------===//
// Clang Tools repository
//===----------------------------------------------------------------------===//

Welcome to the repository of extra Clang Tools.  This repository holds tools
that are developed as part of the LLVM compiler infrastructure project and the
Clang frontend.  These tools are kept in a separate "extra" repository to
allow lighter weight checkouts of the core Clang codebase.

This repository is only intended to be checked out inside of a full LLVM+Clang
tree, and in the 'tools/extra' subdirectory of the Clang checkout.

All discussion regarding Clang, Clang-based tools, and code in this repository
should be held using the standard Clang mailing lists:
  http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

Code review for this tree should take place on the standard Clang patch and
commit lists:
  http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

If you find a bug in these tools, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/