[clang] Add 'forNone' and 'forNoDescendant' AST matchers (PR #86230)

2024-03-21 Thread June Rhodes via cfe-commits
https://github.com/hach-que updated https://github.com/llvm/llvm-project/pull/86230 >From 941ac5286c0e5f859ae832dc397a55a9d21221c9 Mon Sep 17 00:00:00 2001 From: June Rhodes Date: Fri, 22 Mar 2024 13:07:57 +1100 Subject: [PATCH] Add 'forNone' and 'forNoDescendant' AST matchers --- clang/inclu

[clang] Add 'isPODType' AST matcher (PR #86233)

2024-03-21 Thread June Rhodes via cfe-commits
https://github.com/hach-que updated https://github.com/llvm/llvm-project/pull/86233 >From 0e6cfaba6ab55166b7b08eecb28714c0746707f1 Mon Sep 17 00:00:00 2001 From: June Rhodes Date: Fri, 22 Mar 2024 13:36:54 +1100 Subject: [PATCH] Add 'isPODType' AST matcher --- clang/include/clang/ASTMatchers/

[clang] Add 'forNone' and 'forNoDescendant' AST matchers (PR #86230)

2024-03-21 Thread June Rhodes via cfe-commits
https://github.com/hach-que updated https://github.com/llvm/llvm-project/pull/86230 >From 25e3b11324ba4fc43e36035d357d1aa785898bbc Mon Sep 17 00:00:00 2001 From: June Rhodes Date: Fri, 22 Mar 2024 13:07:57 +1100 Subject: [PATCH] Add 'forNone' and 'forNoDescendant' AST matchers --- clang/inclu

[clang] Add 'isPODType' AST matcher (PR #86233)

2024-03-21 Thread June Rhodes via cfe-commits
https://github.com/hach-que created https://github.com/llvm/llvm-project/pull/86233 This adds an `isPODType` AST matcher which matches if the matched type is a Plain Old Data (POD) type. Given: ```cpp class Y { public: int a; std::string b; }; ``` the matcher `fieldDecl(hasType(qual

[clang] Add 'forNone' and 'forNoDescendant' AST matchers (PR #86230)

2024-03-21 Thread June Rhodes via cfe-commits
https://github.com/hach-que edited https://github.com/llvm/llvm-project/pull/86230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add 'forNone' and 'forNoDescendant' AST matchers (PR #86230)

2024-03-21 Thread June Rhodes via cfe-commits
https://github.com/hach-que edited https://github.com/llvm/llvm-project/pull/86230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add 'forNone' and 'forNoDescendant' AST matchers (PR #86230)

2024-03-21 Thread June Rhodes via cfe-commits
https://github.com/hach-que edited https://github.com/llvm/llvm-project/pull/86230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add 'forNone' AST matcher (PR #86230)

2024-03-21 Thread June Rhodes via cfe-commits
https://github.com/hach-que updated https://github.com/llvm/llvm-project/pull/86230 >From 9b04a03646992a3366022dd7022858c98f7560e7 Mon Sep 17 00:00:00 2001 From: June Rhodes Date: Fri, 22 Mar 2024 13:07:57 +1100 Subject: [PATCH] Add 'forNone' and 'forNoDescendant' AST matchers --- clang/inclu

[clang] Add 'forNone' AST matcher (PR #86230)

2024-03-21 Thread June Rhodes via cfe-commits
https://github.com/hach-que updated https://github.com/llvm/llvm-project/pull/86230 >From bf78fb2172048c703824698b839e20ad1b8bf0b2 Mon Sep 17 00:00:00 2001 From: June Rhodes Date: Fri, 22 Mar 2024 13:07:57 +1100 Subject: [PATCH] Add 'forNone' AST matcher --- clang/include/clang/ASTMatchers/AS

[clang] Add 'forNone' AST matcher (PR #86230)

2024-03-21 Thread June Rhodes via cfe-commits
https://github.com/hach-que edited https://github.com/llvm/llvm-project/pull/86230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add 'forNone' AST matcher (PR #86230)

2024-03-21 Thread June Rhodes via cfe-commits
https://github.com/hach-que created https://github.com/llvm/llvm-project/pull/86230 This adds a `forNone` AST matcher, which matches only if there are no immediate children of the current node that match the inner matcher. For example, given: ```cpp class F { public: int A; F() {}; }; ```

[clang] Add 'refersToPack' AST matcher (PR #86228)

2024-03-21 Thread June Rhodes via cfe-commits
https://github.com/hach-que created https://github.com/llvm/llvm-project/pull/86228 This adds a 'refersToPack' AST matcher, which can be used to match against template arguments that are inside parameter packs. The inner matcher is evaluated against each argument in the parameter pack, such th