Updating fuchsia-overloaded-operator check to not issue warnings for invalid locations.
Fixes PR35803.
Differential D41708
[clang-tidy] Update fuchsia-overloaded-operator to check for valid loc juliehockett on Jan 3 2018, 12:18 PM. Authored by
Details
Updating fuchsia-overloaded-operator check to not issue warnings for invalid locations. Fixes PR35803.
Diff Detail
Event TimelineComment Actions LGTM with a minor suggestion to not call getLocStart() twice and a formatting fix. I think you should also ping @hans to get this pulled into the 6.0 branch once it's been commit.
Comment Actions Alex, do you think the fix is still OK for the 6.0 branch? Let me know, and I'll merge it. |
This is not related to the fix, but the warning message is unclear, incorrect and confusing: one most certainly _can_ overload these functions, but shouldn't do this in fuchsia code due to certain reasons. Ideally, warning messages should make it clear to the reader what's wrong with the code, why, and how to fix it.