This allows access type be printed when running lldb-test -dump-ast and
lldb-test -dump-clang-ast.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I would like to see more extensive test cases, for example alternating public and private specifiers for both class and struct case.
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp | ||
---|---|---|
1356 | This feels a bit expensive, we have to go through all the fields every time we add a field. |
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp | ||
---|---|---|
1356 | Use a map now. |
Comment Actions
I like this feature, but I gotta say that a map feels a bit wasteful as well, given that the last access specifier is only needed for the short duration of time while the class definition is being parsed.
Maybe if you remove the relevant entry when CompleteTagDeclarationDefinition gets called, then we wouldn't at least have an unboundedly growing map on our hands?
Comment Actions
This dropped off my radar, but i think it generally looks good. Shafik, do you have anything to add?
This feels a bit expensive, we have to go through all the fields every time we add a field.