printTemplateSpecializationArgs was not printing partial variable specialization args. This adds an additional If clause where we check if it's a VariableTemplatePartialSpecializationDecl and returns the ArgumentLocs if that's the case.
Also adds tests for printTemplateSpecializationArgs in ASTTests.cpp.
Details
Details
- Reviewers
hokein ilya-biryukov - Commits
- rGef0c3ddc7f4b: [clangd] Fixed printTemplateSpecializationArgs not printing partial variable…
rCTE368403: [clangd] Fixed printTemplateSpecializationArgs not printing partial variable…
rL368403: [clangd] Fixed printTemplateSpecializationArgs not printing partial variable…
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 36422 Build 36421: arc lint + arc unit
Event Timeline
clang-tools-extra/clangd/unittests/ASTTests.cpp | ||
---|---|---|
40 ↗ | (On Diff #214077) | looks like the related tests are in PrintASTTests.cpp, could you move the test there? |
clang-tools-extra/clangd/unittests/ASTTests.cpp | ||
---|---|---|
40 ↗ | (On Diff #214077) | Oh I didn't see that test file. Seems like a lot of this is already tested, so just removing everything that isn't related to template variables. |