summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/google/ExplicitConstructorCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] google-explicit-constructor: improve the warning messageAlexander Kornienko2015-11-281-3/+5
| | | | | | Also switch some more tests to %check_clang_tidy. llvm-svn: 254216
* Refactors AST matching code to use the new AST matcher names. This patch ↵Aaron Ballman2015-09-171-2/+2
| | | | | | correlates to r247885 which performs the AST matcher rename in Clang. llvm-svn: 247886
* Disable clang-tidy Google checkers when not compiling in C++ mode. None of ↵Aaron Ballman2015-09-021-2/+5
| | | | | | the checkers require additional testing as the tests will not compile for other languages or modes, or the checkers would never match a valid construct. llvm-svn: 246663
* [clang-tidy] Clarify message for the google-explicit-constructor checkAlexander Kornienko2015-03-311-1/+5
| | | | | | | | Use "constructors that are callable with a single argument" instead of "single-argument constructors" when referring to constructors using default arguments or parameter packs. llvm-svn: 233702
* Make helpers static. clang-tools edition.Benjamin Kramer2015-03-231-5/+5
| | | | | | Also purge dead code found by it. NFC. llvm-svn: 232948
* [clang-tidy] Refactor: Move google clang-tidy checks to namespace ↵Alexander Kornienko2015-03-051-0/+2
| | | | | | | | | | clang::tidy::google http://reviews.llvm.org/D7994 Patch by Richard Thomson! llvm-svn: 231364
* [clang-tidy] Detect dependent initializer_lists in google-explicit-constructor.Alexander Kornienko2015-02-051-9/+16
| | | | | | | | | | | | | | | | Summary: Detect constructors taking a single std::initializer_list even when it is instantiation-dependent. Reviewers: djasper Reviewed By: djasper Subscribers: curdeius, cfe-commits Differential Revision: http://reviews.llvm.org/D7431 llvm-svn: 228289
* [clang-tidy] google-explicit-constructor: don't match in template instantiationsAlexander Kornienko2014-11-301-1/+2
| | | | | | | This helps avoiding false positives related to the recently added std::initializer_list<> handling. llvm-svn: 222981
* [clang-tidy] Support initializer_list in google-explicit-constructor checkAlexander Kornienko2014-11-271-6/+34
| | | | | | | | | | | | | | | | | | | Summary: According to the Google C++ Style Guide, constructors taking a single std::initializer_list<> should not be marked explicit. This change also changes the messages according to conventions used in Clang diagnostics: no capitalization of the first letter, no trailing dot. Reviewers: djasper Reviewed By: djasper Subscribers: curdeius, cfe-commits Differential Revision: http://reviews.llvm.org/D6427 llvm-svn: 222878
* Move google-explicit-constructor check to a separate source file.Alexander Kornienko2014-06-181-0/+85
Summary: No functional changes. Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4188 llvm-svn: 211154
OpenPOWER on IntegriCloud