Commit cb4a48d
[ASTMatchers] AST matcher support for ObjC pointers (llvm#117021)
Add `ObjCInterfaceDecl` to the list of types supported by the `hasType`
and `hasDeclaration` matchers, `ObjCObjectPointerType` to the list of
types supported by `pointee`.
These AST matcher improvements will help the new WebKit checker for
unsafe casts
([https://github.com/llvm/llvm-project/pull/114606](https://github.com/llvm/llvm-project/pull/114606))
match on unsafe Objective-C pointer casts.1 parent ca7ae4e commit cb4a48d
File tree
5 files changed
+24
-4
lines changed- clang
- docs
- include/clang/ASTMatchers
- lib/ASTMatchers
- unittests/ASTMatchers
5 files changed
+24
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1367 | 1367 | | |
1368 | 1368 | | |
1369 | 1369 | | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
1370 | 1374 | | |
1371 | 1375 | | |
1372 | 1376 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4033 | 4033 | | |
4034 | 4034 | | |
4035 | 4035 | | |
4036 | | - | |
| 4036 | + | |
4037 | 4037 | | |
4038 | 4038 | | |
4039 | 4039 | | |
| |||
7433 | 7433 | | |
7434 | 7434 | | |
7435 | 7435 | | |
7436 | | - | |
| 7436 | + | |
| 7437 | + | |
7437 | 7438 | | |
7438 | 7439 | | |
7439 | 7440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
| |||
1113 | 1116 | | |
1114 | 1117 | | |
1115 | 1118 | | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
1116 | 1124 | | |
1117 | 1125 | | |
1118 | 1126 | | |
| |||
1213 | 1221 | | |
1214 | 1222 | | |
1215 | 1223 | | |
1216 | | - | |
| 1224 | + | |
1217 | 1225 | | |
1218 | 1226 | | |
1219 | 1227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
1089 | | - | |
| 1089 | + | |
| 1090 | + | |
1090 | 1091 | | |
1091 | 1092 | | |
1092 | 1093 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
286 | 292 | | |
287 | 293 | | |
288 | 294 | | |
| |||
0 commit comments