diff options
author | Remy Farley <one-d-wide@protonmail.com> | 2025-07-15 18:09:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-15 14:09:24 -0400 |
commit | 041a8a9e5a00358491fb98e4f6156f0882bf5bea (patch) | |
tree | d8d238411d53a3e4623fcaa423eee4c1ba190d21 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 183f1ac412c1a0c69c7dc6aef85c28c0749609cb (diff) | |
download | llvm-041a8a9e5a00358491fb98e4f6156f0882bf5bea.zip llvm-041a8a9e5a00358491fb98e4f6156f0882bf5bea.tar.gz llvm-041a8a9e5a00358491fb98e4f6156f0882bf5bea.tar.bz2 |
[clang-query] Allow for trailing comma in matchers (#148018)
Allow AST matches in clang-query to have a trailing comma at the end of
matcher arguments. Makes it nicer to work with queries that span
multiple lines.
So, for example, the following is possible:
```clang-query
match namedDecl(
isExpansionInMainFile(),
anyOf(
varDecl().bind("var"),
functionDecl().bind("func"),
# enumDecl().bind("enum"),
),
)
```
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions