| Issue |
240552
|
| Summary |
[clang][ASTMatcher] No way to match the string of an annotate attribute
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
ramang-unity
|
Given
```c++
[[clang::annotate("foo")]] int *p;
[[clang::annotate("bar")]] int *q;
```
there is no matcher that matches `p` but not `q`. `varDecl(hasAttr(attr::Annotate))` matches both, and no matcher looks at `AnnotateAttr::getAnnotation()` (checked `llvmorg-22.1.0` and `main`).
https://godbolt.org/z/bzff3eohW
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs