Commit be911d8
committed
Handle variable templates in isInstantiated and isInTemplateInstantiation matchers
Fix isInstantiated and isInTemplateInstantiation matchers, so they return true for instantiations of variable templates, and any declaration in statements contained in such instantiations.1 parent b8b036a commit be911d8
File tree
2 files changed
+44
-4
lines changed- clang
- include/clang/ASTMatchers
- unittests/ASTMatchers
2 files changed
+44
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6750 | 6750 | | |
6751 | 6751 | | |
6752 | 6752 | | |
6753 | | - | |
| 6753 | + | |
| 6754 | + | |
6754 | 6755 | | |
6755 | 6756 | | |
6756 | 6757 | | |
| |||
6769 | 6770 | | |
6770 | 6771 | | |
6771 | 6772 | | |
6772 | | - | |
6773 | | - | |
6774 | | - | |
| 6773 | + | |
| 6774 | + | |
| 6775 | + | |
6775 | 6776 | | |
6776 | 6777 | | |
6777 | 6778 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3313 | 3313 | | |
3314 | 3314 | | |
3315 | 3315 | | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
| 3319 | + | |
| 3320 | + | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
| 3328 | + | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
| 3332 | + | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
| 3337 | + | |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
| 3341 | + | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
| 3345 | + | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
| 3353 | + | |
| 3354 | + | |
3316 | 3355 | | |
3317 | 3356 | | |
3318 | 3357 | | |
| |||
0 commit comments