llvm-project
041a8a9e - [clang-query] Allow for trailing comma in matchers (#148018)

Commit
76 days ago
[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"), ), ) ```
Author
Parents
Loading