# llvm: set precise scopes on namespace types and variables · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/876258abe46273aeac7c9791c7ec69bceb29f5ae)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 876258abe46273aeac7c9791c7ec69bceb29f5ae

Requested commit: 876258abe46273aeac7c9791c7ec69bceb29f5ae

Commit: 876258abe46273aeac7c9791c7ec69bceb29f5ae

Tree: c21713bd3200a847d65aea06c64a9a5b408c6f62

Author: Tau

Committer: Tau

## Message

```
llvm: set precise scopes on namespace types and variables

This will allow accessing non-local declarations from debuggers, which,
AFAICT, was impossible before.
Getting scopes right already works for type declarations and functions,
but will need some fiddling for variables:

For those, I tried imitating what Clang does for static member
variables, but LLDB tries to re-mangle those and then fails at lookup,
while GDB outright crashes. Hopefully I can find some other dwarven
incantation to do the right thing.

```

## Parents

- [ebd9efa85052fc19d8296e8e0f4da079da9cab45](https://git.cafe/gitcafe/zig/commit/ebd9efa85052fc19d8296e8e0f4da079da9cab45?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/876258abe46273aeac7c9791c7ec69bceb29f5ae?format=markdown)
