Details
- Reviewers
alexfh
Diff Detail
Event Timeline
clang-tidy/misc/UnusedUsingDeclsCheck.cpp | ||
---|---|---|
47 | I don't think using declarations in functions are inherently related to ADL. This check doesn't seem like a useful heuristic. |
clang-tidy/misc/UnusedUsingDeclsCheck.cpp | ||
---|---|---|
47 | Yeah, the current work around is only to ignore all using-decls in function context which is not perfect. I didn't find out a better way. |
clang-tidy/misc/UnusedUsingDeclsCheck.cpp | ||
---|---|---|
47 | If we're talking about this pattern: using std::swap; ... ::ns::T x, y; swap(x, y); // ::ns::swap() is used then for each function name resolved using ADL, we can find all using declarations for the same name in different namespaces and mark them used. WDYT? |
clang-tidy/misc/UnusedUsingDeclsCheck.cpp | ||
---|---|---|
47 | Great, this idea looks good to me. Will make the change. |
I don't think using declarations in functions are inherently related to ADL. This check doesn't seem like a useful heuristic.