Commit 65c807e
authored
[lldb][TypeSystemClang] Allow transparent lookup through anonymous namespaces (#97275)
This patch allows expressions to reference entities in anonymous
namespaces. Previously this would have resulted in:
```
(lldb) expr foo::FooAnonymousVar
error: <user expression 0>:1:6: no member named 'FooAnonymousVar' in namespace 'foo'
1 | foo::FooAnonymousVar
| ~~~~~^
```
We already allow such lookups through inline namespaces, and for the
purposes of lookup, anonymous namespaces shouldn't behave any different.
Fixes #96963.1 parent ea4cf92 commit 65c807e
File tree
3 files changed
+45
-5
lines changed- lldb
- source/Plugins/TypeSystem/Clang
- test/API/lang/cpp/namespace
3 files changed
+45
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9484 | 9484 | | |
9485 | 9485 | | |
9486 | 9486 | | |
| 9487 | + | |
| 9488 | + | |
| 9489 | + | |
| 9490 | + | |
| 9491 | + | |
| 9492 | + | |
| 9493 | + | |
| 9494 | + | |
| 9495 | + | |
| 9496 | + | |
| 9497 | + | |
| 9498 | + | |
9487 | 9499 | | |
9488 | 9500 | | |
9489 | 9501 | | |
9490 | 9502 | | |
9491 | | - | |
9492 | | - | |
9493 | | - | |
9494 | | - | |
| 9503 | + | |
| 9504 | + | |
9495 | 9505 | | |
9496 | 9506 | | |
9497 | 9507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
130 | 146 | | |
131 | 147 | | |
132 | 148 | | |
| |||
140 | 156 | | |
141 | 157 | | |
142 | 158 | | |
143 | | - | |
| 159 | + | |
| 160 | + | |
144 | 161 | | |
0 commit comments