- Fix a false postive when an using class is used in an explicit template instantiation.
- Fix a false postive when an using template class is used as template argument.
Details
Diff Detail
- Build Status
Buildable 358 Build 358: arc lint + arc unit
Event Timeline
test/clang-tidy/misc-unused-using-decls.cpp | ||
---|---|---|
198 | Can you add a test using a non-type template argument, like an integer literal? I believe that still causes the diagnostic, though do we want it to? |
Add FIXME.
test/clang-tidy/misc-unused-using-decls.cpp | ||
---|---|---|
198 | Yeah, I agree that we need support non-type template arguments in the long term, but it seems out of scope of this patch (Supporting all non-type template arguments needs more stuff), I have added to FIXME. |
test/clang-tidy/misc-unused-using-decls.cpp | ||
---|---|---|
198 | Certainly; I would mostly like a test showing that we considered it and understand the current behavior. If the test has a FIXME comment with it, that's also totally fine. |
Can you add a test using a non-type template argument, like an integer literal? I believe that still causes the diagnostic, though do we want it to?