summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/VirtualNearMissCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Move a few more checks from misc to bugprone.Alexander Kornienko2017-11-241-274/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: clang_tidy/rename_check.py misc-assert-side-effect bugprone-assert-side-effect clang_tidy/rename_check.py misc-bool-pointer-implicit-conversion bugprone-bool-pointer-implicit-conversion clang_tidy/rename_check.py misc-fold-init-type bugprone-fold-init-type clang_tidy/rename_check.py misc-forward-declaration-namespace bugprone-forward-declaration-namespace clang_tidy/rename_check.py misc-inaccurate-erase bugprone-inaccurate-erase clang_tidy/rename_check.py misc-move-forwarding-reference bugprone-move-forwarding-reference clang_tidy/rename_check.py misc-multiple-statement-macro bugprone-multiple-statement-macro clang_tidy/rename_check.py misc-use-after-move bugprone-use-after-move clang_tidy/rename_check.py misc-virtual-near-miss bugprone-virtual-near-miss Manually fixed a reference to UseAfterMoveCheck in the hicpp module. Manually fixed header guards. Reviewers: hokein Reviewed By: hokein Subscribers: nemanjai, mgorny, javed.absar, xazax.hun, kbarton, cfe-commits Differential Revision: https://reviews.llvm.org/D40426 llvm-svn: 318950
* [clang-tidy] Don't compute the edit distance if it's over the threshold.Benjamin Kramer2017-08-091-2/+2
| | | | | | No functional change intended. llvm-svn: 310532
* Merge branch 'arcpatch-D16922'Cong Liu2016-02-111-3/+11
| | | | llvm-svn: 260532
* [clang-tidy] Fix a crash issue on misc-virtual-near-miss check.Haojian Wu2016-02-031-0/+3
| | | | | | | | | | | | | | Summary: The crash is caused by triggering a Assertion failed in DeclCXX.h when the check detects non-defined class return type in a class method declaration. Reviewers: congliu, alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D16854 llvm-svn: 259668
* [clang-tidy] Fix minor style issues. NFCAlexander Kornienko2016-01-291-2/+1
| | | | llvm-svn: 259198
* Fixed function params comparison. Updated docs and tests.Alexander Kornienko2016-01-291-36/+37
| | | | | | | | | | | | | | Summary: "checkParamTypes" may fail if the the type of some parameter is not canonical. Fixed it by comparing canonical types. And added "getCanonicalType()" and "getCanonicalDecl()" on more places to prevent potential fail. Reviewers: alexfh Subscribers: cfe-commits Patch by Cong Liu! Differential Revision: http://reviews.llvm.org/D16587 llvm-svn: 259197
* Fix crashing on user-defined conversion.Alexander Kornienko2016-01-261-3/+5
| | | | | | | | | | | | | | Summary: Fix the assertion failure for the user-defined conversion method. e.g.: operator bool() Reviewers: alexfh, aaron.ballman Subscribers: aaron.ballman, cfe-commits Patch by Cong Liu! Differential Revision: http://reviews.llvm.org/D16536 llvm-svn: 258801
* [clang-tidy] Handle decayed types and other improvements in VirtualNearMiss ↵Gabor Horvath2016-01-221-35/+30
| | | | | | | | | | | check. Handle decayed types, ignore qualifiers and accessibility when considering a method as a possible overload. Differential Revision: http://reviews.llvm.org/D16179 llvm-svn: 258562
* Support virtual-near-miss check.Alexander Kornienko2016-01-131-0/+266
Summary: Virtual function override near miss detection. Function complete. Test complete. Do not conduct Fix for now. Reviewers: alexfh Subscribers: cfe-commits Patch by Cong Liu! Differential Revision: http://reviews.llvm.org/D15823 llvm-svn: 257599
OpenPOWER on IntegriCloud