summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/google/ExplicitConstructorCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Fix google-explicit-constructor issue with out-of-line conversionsAlexander Kornienko2017-04-181-0/+2
| | | | llvm-svn: 300569
* [clang-tidy] Verify some conditions in a matcher instead of check(). NFCAlexander Kornienko2017-03-171-6/+7
| | | | llvm-svn: 298057
* [clang-tidy] Ignore deleted members in google-explicit-constructor.Alexander Kornienko2017-03-171-1/+1
| | | | | | This fixes http://llvm.org/PR32221. llvm-svn: 298052
* [clang-tidy] google-explicit-constructor: ignore macrosAlexander Kornienko2016-12-301-0/+4
| | | | llvm-svn: 290756
* [clang-tidy] google-explicit-constructor: ignore template instantiationsAlexander Kornienko2016-12-301-2/+4
| | | | llvm-svn: 290753
* [clang-tidy] google-explicit-constructor: ignore compiler-generated ↵Alexander Kornienko2016-12-281-2/+5
| | | | | | conversion operators. llvm-svn: 290668
* [clang-tidy] Flag implicit conversion operators.Alexander Kornienko2016-12-231-9/+21
| | | | llvm-svn: 290434
* modernize-use-auto NFC fixesPiotr Padlewski2016-12-141-2/+1
| | | | llvm-svn: 289656
* [clang-tidy] Cleaning up language options.Gabor Horvath2016-09-241-1/+1
| | | | | | Differential Revision: https://reviews.llvm.org/D24881 llvm-svn: 282319
* Apply performance-unnecessary-value-param to clang-tidy.Benjamin Kramer2016-06-151-1/+2
| | | | | | With minor manual tweaks. No functionality change intended. llvm-svn: 272795
* [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