[clang] [ASMMatchers] Extend hasName matcher when matching templates (PR #100349)

2024-07-24 Thread Nathan James via cfe-commits
https://github.com/njames93 updated https://github.com/llvm/llvm-project/pull/100349 >From d623ba571fb8091f53637ae5810b68a69cb772b2 Mon Sep 17 00:00:00 2001 From: Nathan James Date: Wed, 24 Jul 2024 12:43:39 +0100 Subject: [PATCH] [ASMMatchers] Extend hasName matcher when matching templates Al

[clang] [ASMMatchers] Extend hasName matcher when matching templates (PR #100349)

2024-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nathan James (njames93) Changes Allow users to match all record instantiations by using <> as a wildcard. With ```cpp template struct Foo { void Bar(); }; ``` The following code: ```cpp Foo{}.Bar(); ``` Will match agai

[clang] [ASMMatchers] Extend hasName matcher when matching templates (PR #100349)

2024-07-24 Thread Nathan James via cfe-commits
https://github.com/njames93 created https://github.com/llvm/llvm-project/pull/100349 Allow users to match all record instantiations by using <> as a wildcard. With ```cpp template struct Foo { void Bar(); }; ``` The following code: ```cpp Foo{}.Bar(); ``` Will match against: ``` callExpr(ca