summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/modernize-use-default-member-init.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Handle anonymous structs/unions in member init checks.Malcolm Parsons2017-08-011-0/+10
| | | | | | | | | | | | Use getAnyMember() instead of getMember() to avoid crash on anonymous structs/unions. Don't warn about initializing members of an anonymous union. Fixes PR32966. Reviewed by alexfh. llvm-svn: 309668
* clang-tidy: add IgnoreMacros option to modernize-use-default-member-initMiklos Vajna2017-05-081-0/+9
| | | | | | | | | | | | | | | | | | | Summary: And also enable it by default to be consistent with e.g. modernize-use-using. This helps e.g. when running this check on cppunit client code where the macro is provided by the system, so there is no easy way to modify it. Reviewers: alexfh, malcolm.parsons Reviewed By: malcolm.parsons Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D32945 llvm-svn: 302429
* [clang-tidy] Ignore default arguments in modernize-default-member-initMalcolm Parsons2017-01-041-0/+6
| | | | | | | | | | | | | | | | | Summary: Default member initializers cannot refer to constructor parameters, but modernize-default-member-init was trying to when the default constructor had default arguments. Change the check to ignore default arguments to the default constructor. Fixes PR31524. Reviewers: alexfh, aaron.ballman Subscribers: cfe-commits, JDevlieghere, Eugene.Zelenko Differential Revision: https://reviews.llvm.org/D28287 llvm-svn: 290972
* Comment out char16_t and char32_t testsMalcolm Parsons2016-12-201-7/+7
| | | | llvm-svn: 290210
* [clang-tidy] Add modernize-use-default-member-init checkMalcolm Parsons2016-12-201-0/+376
Summary: Fixes PR18858 Reviewers: alexfh, hokein, aaron.ballman Subscribers: JDevlieghere, Eugene.Zelenko, Prazek, mgorny, cfe-commits, modocache Differential Revision: https://reviews.llvm.org/D26750 llvm-svn: 290202
OpenPOWER on IntegriCloud