aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python
diff options
context:
space:
mode:
authorSteven Watanabe <steven@providere-consulting.com>2016-03-18 21:35:59 +0000
committerSteven Watanabe <steven@providere-consulting.com>2016-03-18 21:35:59 +0000
commit9359b8fe5d944c8355ea49ba949d481fe080cec9 (patch)
tree7a71c84630ee4d071b428f63a266d758c91e0fd6 /lldb/scripts/Python
parent26628d3015028ad2f4d07acea0acc7168db0e107 (diff)
downloadllvm-9359b8fe5d944c8355ea49ba949d481fe080cec9.zip
llvm-9359b8fe5d944c8355ea49ba949d481fe080cec9.tar.gz
llvm-9359b8fe5d944c8355ea49ba949d481fe080cec9.tar.bz2
Fix printing of anonymous struct typedefs.
clang -cc1 -ast-print put the struct definition in the wrong place, like this: struct {} typedef S; The reason that this happens is that the printing code first prints the struct definition, and then tells the next declaration to leave out the type. This behavior is correct for simple variable declarations, but fails for typedefs (or extern, mutable, etc). The patch address this problem by skipping the struct declaration when we first see it, and then telling the first subsequent declaration that it needs to print out the full struct definition. Differential Revision: http://reviews.llvm.org/D17285 llvm-svn: 263836
Diffstat (limited to 'lldb/scripts/Python')
0 files changed, 0 insertions, 0 deletions