Match Non-Type Template Parameter Using AST Matchers

I see that templateTypeParmType() can match can match the name of a type template parameter. How do you match the name of a non-type template parameter? I am not seeing a similar function in the AST Matchers documentation.

Does anyone have any ideas on how to do this?

Does anyone have any ideas on how to do this?

That functionality doesn't currently exist. However, it should be
relatively straight-forward to add. I'm happy to do so if you would
find it useful.

~Aaron

> Does anyone have any ideas on how to do this?

That functionality doesn't currently exist. However, it should be
relatively straight-forward to add. I'm happy to do so if you would
find it useful.

Yes, it is something that I would find useful. Also, it seems like

something that should be there anyway, since it exists for type template
parameters.

Agreed, I think it was an oversight that it had not been included.
I've added it in r249341.

~Aaron

Wow! That was fast. Has it been added to

http://clang.llvm.org/docs/LibASTMatchersReference.html

?

Wow! That was fast. Has it been added to

AST Matcher Reference

?

Relatively straight-forward, indeed. :wink:

Yes, the documentation was also updated. However, this will only be
available if you pull the ToT from SVN and build from there (at least,
until 3.8 gets released sometime in the future).

~Aaron

Two remaining questions:

  1. What does ToT mean?
  2. What is the name of the function? I am not seeing anything that catches my eye on the reference page.

Two remaining questions:
1. What does ToT mean?

Tip of Tree -- aka, the latest version of the code from svn.

2. What is the name of the function? I am not seeing anything that catches
my eye on the reference page.

When we name AST matchers, we pull the name from the AST nodes
themselves, so in this case: nonTypeTemplateParmDecl()

~Aaron