summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/UseOverride.cpp
Commit message (Collapse)AuthorAgeFilesLines
* clang-tidy: Add override before the first attribute.Daniel Jasper2014-11-251-2/+4
| | | | | | Apparently attributes aren't sorted by source location. llvm-svn: 222751
* clang-tidy: [use-override] Tweak messages.Daniel Jasper2014-07-281-2/+2
| | | | | | | | It doesn't make sense to suggest 'virtual' as clang-tidy would complain about that on the next iteration (we are never issuing warnings for the base function). llvm-svn: 214063
* clang-tidy: [misc-use-override] Slightly tweak the wording of warning.Daniel Jasper2014-07-211-5/+5
| | | | | | 'final' should really be used with care. llvm-svn: 213501
* clang-tidy: [misc-use-override] Correctly handle defaulted destructors.Daniel Jasper2014-06-201-6/+4
| | | | | | Also, minor implementation and test fixes. llvm-svn: 211345
* clang-tidy: [use-override] Remove 'override' if 'final' is also present.Daniel Jasper2014-06-111-6/+18
| | | | | | Also, make warning more precise by distinguishing different cases. llvm-svn: 210651
* clang-tidy use override: Don't generate incorrect warnings without fixesDaniel Jasper2014-06-041-1/+2
| | | | | | Add basic testing for the emitted diagnostics. llvm-svn: 210171
* clang-tidy: Extend the use-override check to understand 'final'.Daniel Jasper2014-06-021-3/+5
| | | | llvm-svn: 210031
* Revert "Remove redundant check discovered in post-commit review of r209505."Daniel Jasper2014-05-301-1/+3
| | | | | | | | | This breaks with MSVC. With IsLateTemplateParsed, FunctionDecl::doesThisDeclarationHaveABody() returns true regardless of Body. This reinstates what was fixed in r208985. llvm-svn: 209896
* Remove redundant check discovered in post-commit review of r209505.Daniel Jasper2014-05-301-3/+1
| | | | llvm-svn: 209882
* clang-tidy: Only add 'override' before inlined bodies.Daniel Jasper2014-05-231-1/+2
| | | | llvm-svn: 209505
* Address review comments on r208954. No functional changes.Daniel Jasper2014-05-191-7/+6
| | | | llvm-svn: 209111
* Initializer list is unavailable. Use the constructor instead.NAKAMURA Takumi2014-05-161-2/+3
| | | | llvm-svn: 208986
* clang-tidy/misc/UseOverride.cpp: Appease targeting msvc.NAKAMURA Takumi2014-05-161-1/+1
| | | | | | With IsLateTemplateParsed, FunctionDecl::doesThisDeclarationHaveABody() returns True regardless of Body. llvm-svn: 208985
* Initial version of clang-tidy check to use override instead of virual.Daniel Jasper2014-05-161-0/+131
Review: http://reviews.llvm.org/D3688 llvm-svn: 208954
OpenPOWER on IntegriCloud