hanchenye-llvm-project/clang-tools-extra
Benjamin Kramer 1188792480 [clang-tidy] Add a checker for code that looks like a delegate constructors but doesn't delegate.
Summary:
class Foo {
  Foo() {
    Foo(42); // oops
  }
  Foo(int);
};

This is valid code but it does nothing and we can't emit a warning in clang
because there might be side effects. The checker emits a warning for this
pattern and also for base class initializers written in this style.

There is some overlap with the unused-rtti checker but they follow different
goals and fire in different places most of the time.

Reviewers: alexfh, djasper

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D4667

llvm-svn: 214397
2014-07-31 09:58:52 +00:00
..
clang-apply-replacements Track clang r213171 2014-07-16 16:50:17 +00:00
clang-modernize Plug memory leaks. 2014-07-24 10:23:33 +00:00
clang-query Track clang r213171 2014-07-16 16:50:17 +00:00
clang-tidy [clang-tidy] Add a checker for code that looks like a delegate constructors but doesn't delegate. 2014-07-31 09:58:52 +00:00
docs Added documentation on how clang diagnostics are reported by clang-tidy. 2014-07-16 13:26:51 +00:00
modularize Plug memory leaks. 2014-07-24 10:23:33 +00:00
module-map-checker Revert "unique_ptr-ify ownership of ASTConsumers" 2014-07-17 22:33:56 +00:00
pp-trace Plug memory leaks. 2014-07-24 10:23:33 +00:00
remove-cstr-calls Track clang r213171 2014-07-16 16:50:17 +00:00
test [clang-tidy] Add a checker for code that looks like a delegate constructors but doesn't delegate. 2014-07-31 09:58:52 +00:00
tool-template Track clang r213171 2014-07-16 16:50:17 +00:00
unittests Revert "unique_ptr-ify ownership of ASTConsumers" 2014-07-17 22:33:56 +00:00
.arcconfig Update arc config to new domain. 2014-04-07 10:23:19 +00:00
.gitignore .gitignore: ignore docs/_build 2013-03-03 15:15:12 +00:00
CMakeLists.txt Track clang r213171 2014-07-16 16:50:17 +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 Initial checkin of new module-map-checker tool. 2014-01-07 15:22:08 +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/