sandboxed-api/sandboxed_api/tools
Christian Blichmann c501379056 Clang tool: Prevent extra nesting of namespaces
When specifying the `namespace` argument in Bazel (`NAMESPACE` in CMake), the
Clang tool used to put _all_ dependent types in that namespace.

For a declaration of `namespace a::b { struct S {...};` and a `namespace`
argument of `a::b`, this means that the header output was similar to
```
namespace a::b {
namespace a::b {
struct S { ...
```

This was never intended and also does not match the Python based header
generator. The Clang tool now "merges" those same namespaces. This is
correct, as it processes `namespace`d spellings with their full namespace
path.

PiperOrigin-RevId: 557393076
Change-Id: I1474dd30b6c4150d0ae3c1c48579f88060974980
2023-08-16 01:17:54 -07:00
..
clang_generator Clang tool: Prevent extra nesting of namespaces 2023-08-16 01:17:54 -07:00
filewrapper Mostly internal change: Optimize OSS transforms 2023-06-07 02:23:18 -07:00
generator2 generator2: Skip anonymous structs/unions 2023-08-15 05:20:47 -07:00