hanchenye-llvm-project/clang-tools-extra/clang-tidy
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
..
google [clang-tidy] Fix a false positive in the make_pair checker if an argument has a explicit template argument. 2014-07-21 09:40:52 +00:00
llvm [clang-tidy] Address review comments for the Twine checker. 2014-07-08 15:41:20 +00:00
misc [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 Track clang r213171 2014-07-16 16:50:17 +00:00
CMakeLists.txt Track clang r213171 2014-07-16 16:50:17 +00:00
ClangTidy.cpp Plug memory leaks. 2014-07-24 10:23:33 +00:00
ClangTidy.h Revert "unique_ptr-ify ownership of ASTConsumers" 2014-07-17 22:33:56 +00:00
ClangTidyDiagnosticConsumer.cpp Set up clang-tidy diagnostic consumer to print types etc. 2014-07-14 14:10:03 +00:00
ClangTidyDiagnosticConsumer.h Set up clang-tidy diagnostic consumer to print types etc. 2014-07-14 14:10:03 +00:00
ClangTidyModule.cpp Allow per-file clang-tidy options. 2014-06-05 13:31:45 +00:00
ClangTidyModule.h Allow per-file clang-tidy options. 2014-06-05 13:31:45 +00:00
ClangTidyModuleRegistry.h clang-tidy: Instantiate llvm::Registry<clang::tidy::ClangTidyModule>. 2014-07-03 14:12:47 +00:00
ClangTidyOptions.cpp Replace llvm::error_code with std::error_code. 2014-06-12 13:32:11 +00:00
ClangTidyOptions.h include system_error directly. 2014-06-12 16:53:02 +00:00
Makefile Added a module for checks not related to LLVM or Google coding style. 2014-03-05 13:14:32 +00:00