This handles both methods and freestanding overloads.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
| clang-tidy/google/OverloadedUnaryAndCheck.cpp | ||
|---|---|---|
| 30 ↗ | (On Diff #11387) | Why is the outer matcher just "decl" and not "functionDecl"? |
| 38 ↗ | (On Diff #11387) | 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 | ||
| 1 ↗ | (On Diff #11387) | 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. |
| 4 ↗ | (On Diff #11387) | How about tests with template instantiations? ;) |
Comment Actions
- Reworded message
- Added test with template instance. Not as valuable here as with the other checkers as we don't have fixits.