aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRemy Farley <one-d-wide@protonmail.com>2025-07-15 18:09:24 +0000
committerGitHub <noreply@github.com>2025-07-15 14:09:24 -0400
commit041a8a9e5a00358491fb98e4f6156f0882bf5bea (patch)
treed8d238411d53a3e4623fcaa423eee4c1ba190d21 /clang/lib/Frontend/CompilerInvocation.cpp
parent183f1ac412c1a0c69c7dc6aef85c28c0749609cb (diff)
downloadllvm-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