commit | 426726041461ea1c77fb5d6580d3ad53e745ef25 | [log] [tgz] |
---|---|---|
author | Zachary Turner <zturner@google.com> | Tue Dec 18 23:12:08 2018 +0000 |
committer | Zachary Turner <zturner@google.com> | Tue Dec 18 23:12:08 2018 +0000 |
tree | 51b828a1e99511eb8978cb224c8b25c840b7bc4e | |
parent | 2c29d441702d92a703266f10154ac1e5497d4f68 [diff] |
[NativePDB] Correctly reconstruct DeclContext for nested enums. We reconstruct the AST hierarchy by trying to hack up a mangled name for the parent type using the child type's mangled name. This was failing for enums because their tag type is represented with two letters ("W4") instead of one letter ("T", "U", etc) as it is with classes, structs, and unions. After accounting for this we can now correctly determine when an enum is nested inside of a namespace or a class.