This handles both methods and freestanding overloads.
Details
Diff Detail
Event Timeline
clang-tidy/google/OverloadedUnaryAndCheck.cpp | ||
---|---|---|
31 | Why is the outer matcher just "decl" and not "functionDecl"? | |
39 | The original cpplint.py message is not very clear. I think, it should say "do not overload it". | |
test/clang-tidy/google-overloaded-unary-and.cpp | ||
2 | With -implicit-check-not it becomes bulky. We should make both CHECK-MESSAGES and CHECK-FIXES optional in check_clang_tidy_fix.sh and give the script a more generic name. There's no need to do it in this patch, though. | |
5 | How about tests with template instantiations? ;) |
- Reworded message
- Added test with template instance. Not as valuable here as with the other checkers as we don't have fixits.
Why is the outer matcher just "decl" and not "functionDecl"?