[PATCH] D134416: Allow getting template args for ClassTemplateSpecializations

2022-09-23 Thread Aaron Ballman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGe8c78d8528a6: Allow getting template args for ClassTemplateSpecializations (authored by anderslanglands, committed by aaron.ballman). Changed prior to commit: https://reviews.llvm.org/D134416?vs=462392

[PATCH] D134416: Allow getting template args for ClassTemplateSpecializations

2022-09-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! I can fix up the minor nit with the release note formatting when I land on your behalf. Comment at: clang/docs/ReleaseNotes.rst:407-408 + ``clang_Cursor

[PATCH] D134416: Allow getting template args for ClassTemplateSpecializations

2022-09-22 Thread Anders Langlands via Phabricator via cfe-commits
anderslanglands added a comment. I ended up modifying c-index-test to print out the template arguments in the same way it does for FunctionDecl, which ends up working all cases in the existing test suite. The only other thing I added was a specific case in index-templates.cpp to check whether i

[PATCH] D134416: Allow getting template args for ClassTemplateSpecializations

2022-09-22 Thread Anders Langlands via Phabricator via cfe-commits
anderslanglands updated this revision to Diff 462392. anderslanglands marked 7 inline comments as done. anderslanglands added a comment. Add testing, address style notes Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134416/new/ https://reviews.llvm

[PATCH] D134416: Allow getting template args for ClassTemplateSpecializations

2022-09-22 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Mostly nits from me (FWIW, we use `auto` when the type is explicitly spelled out in the initialization and we don't usually use `else` after an unconditional `return` as a matter of coding style.) In terms of the test coverage, I would probably make a new test mod

[PATCH] D134416: Allow getting template args for ClassTemplateSpecializations

2022-09-22 Thread Anders Langlands via Phabricator via cfe-commits
anderslanglands updated this revision to Diff 462103. anderslanglands added a comment. Herald added a subscriber: arphaman. Updating doc comments to reflect new functionality Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134416/new/ https://reviews

[PATCH] D134416: Allow getting template args for ClassTemplateSpecializations

2022-09-22 Thread Anders Langlands via Phabricator via cfe-commits
anderslanglands added reviewers: tbaeder, aaron.ballman. anderslanglands added a comment. Hello again, this generalizes the template argument functionality to operate on cursor kinds other than functions. I could use some help creating a test for this. On my previous path I was able to just cop

[PATCH] D134416: Allow getting template args for ClassTemplateSpecializations

2022-09-22 Thread Anders Langlands via Phabricator via cfe-commits
anderslanglands created this revision. Herald added a project: All. anderslanglands requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Modifies clang_Cursor_getNumTemplateArguments() and friends to work on Struct, Class and ClassTemplateParti