llvm-project/clang-tools-extra/test
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
..
Unit Let test/Unit/lit.cfg add config.shlibdir to $PATH on DLL platforms like cygming. 2014-07-04 05:11:55 +00:00
clang-apply-replacements clang-apply-replacements: Add code formatting functionality 2013-09-30 13:59:21 +00:00
clang-modernize Delete removed formatting option. 2014-07-09 08:18:31 +00:00
clang-query Add a makefile for clang-query. Patch by Alex Horn! 2014-02-18 19:46:01 +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
modularize Added module map generation option. 2013-10-15 13:52:33 +00:00
module-map-checker Initial checkin of new module-map-checker tool. 2014-01-07 15:22:08 +00:00
pp-trace clang-tools-extra/test/pp-trace/pp-trace-modules.cpp: Flush module cache to let robust around r203317. 2014-03-09 04:10:17 +00:00
remove-cstr-calls Fix a remove-cstr-calls test that fails checking of the produced code. 2013-06-19 15:43:40 +00:00
.clang-format Add a .clang-format to avoid reflow of test RUN lines 2013-12-01 05:08:00 +00:00
CMakeLists.txt Add a makefile for clang-query. Patch by Alex Horn! 2014-02-18 19:46:01 +00:00
Makefile Make the clang-tidy-diff.py test conditional on the presence of Python 2.7. Use the python binary from the configuration. 2014-06-26 16:32:26 +00:00
lit.cfg Make the clang-tidy-diff.py test conditional on the presence of Python 2.7. Use the python binary from the configuration. 2014-06-26 16:32:26 +00:00
lit.site.cfg.in Make the clang-tidy-diff.py test conditional on the presence of Python 2.7. Use the python binary from the configuration. 2014-06-26 16:32:26 +00:00