diff options
author | Joel E. Denny <jdenny.ornl@gmail.com> | 2018-05-30 18:33:53 +0000 |
---|---|---|
committer | Joel E. Denny <jdenny.ornl@gmail.com> | 2018-05-30 18:33:53 +0000 |
commit | 857613bc6ded429c9a4bb9e4a01839fc62a3e36a (patch) | |
tree | 6324996b9425660da92f9c9aa2e4145ce6182d83 /lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestCommandInterpreterAPI.py | |
parent | 2fbbffa4bf66efa3715fa9c80ef6c43e61bcedfb (diff) | |
download | bcm5719-llvm-857613bc6ded429c9a4bb9e4a01839fc62a3e36a.tar.gz bcm5719-llvm-857613bc6ded429c9a4bb9e4a01839fc62a3e36a.zip |
[AST] Fix loss of enum forward decl from decl context
For example, given:
enum __attribute__((deprecated)) T *p;
-ast-print produced:
enum T *p;
The attribute was lost because the enum forward decl was lost.
Another example is the loss of enum forward decls from C++ namespaces
(in MS compatibility mode).
The trouble was that the EnumDecl node was suppressed, as revealed by
-ast-dump. The suppression of the EnumDecl was intentional in
r116122, but I don't understand why. The suppression isn't needed for
the test suite to behave.
Reviewed by: rsmith
Differential Revision: https://reviews.llvm.org/D46846
llvm-svn: 333574
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestCommandInterpreterAPI.py')
0 files changed, 0 insertions, 0 deletions