aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python
diff options
context:
space:
mode:
authorMitchell Balan <mitchell@stellarscience.com>2020-01-07 13:49:55 -0500
committerMitchell Balan <mitchell@stellarscience.com>2020-01-07 16:36:11 -0500
commit73d93617d3ae23bad232fa3a160c638728c71c01 (patch)
treea19ab6545740fa5f3c7359c63edd8aa98e78aa75 /lldb/scripts/Python
parent0c5102bd939131b27105b74e73fc25b90207ef36 (diff)
downloadllvm-73d93617d3ae23bad232fa3a160c638728c71c01.zip
llvm-73d93617d3ae23bad232fa3a160c638728c71c01.tar.gz
llvm-73d93617d3ae23bad232fa3a160c638728c71c01.tar.bz2
[clang-tidy] modernize-use-using uses AST and now supports struct defintions and multiple types in a typedef
Summary: It now handles `typedef`s that include comma-separated multiple types, and handles embedded struct definitions, which previously could not be automatically converted. For example, with this patch `modernize-use-using` now can convert: typedef struct { int a; } R_t, *R_p; to: using R_t = struct { int a; }; using R_p = R_t*; `-ast-dump` showed that the `CXXRecordDecl` definitions and multiple `TypedefDecl`s come consecutively in the tree, so `check()` stores information between calls to determine when it is receiving a second or additional `TypedefDecl` within a single `typedef`, or when the current `TypedefDecl` refers to an embedded `CXXRecordDecl` like a `struct`. Reviewers: alexfh, aaron.ballman Patch by: poelmanc Subscribers: riccibruno, sammccall, cfe-commits, aaron.ballman Tags: clang-tools-extra, clang Differential Revision: https://reviews.llvm.org/D70270
Diffstat (limited to 'lldb/scripts/Python')
0 files changed, 0 insertions, 0 deletions