diff options
author | Mitchell Balan <mitchell@stellarscience.com> | 2019-11-15 14:30:41 -0500 |
---|---|---|
committer | Mitchell Balan <mitchell@stellarscience.com> | 2019-11-15 16:09:10 -0500 |
commit | 782392db8122cafb5e0e4ad5fe0c24c46f11b2b7 (patch) | |
tree | c2c6a97f0751be9826f468ea388dffe192da165d /lldb/packages/Python/lldbsuite/test | |
parent | 9c1baa23526c6d7d06eafefbf82d73bfe9bb3aaf (diff) | |
download | bcm5719-llvm-782392db8122cafb5e0e4ad5fe0c24c46f11b2b7.tar.gz bcm5719-llvm-782392db8122cafb5e0e4ad5fe0c24c46f11b2b7.zip |
[clang-tidy] modernize-use-using work with multi-argument templates
Summary:
If clang-tidy's modernize-use-using feature finds any commas that are not within parentheses, it won't create a fix. That means it won't change lines like:
typedef std::pair<int, int> Point;
to
using Point = std::pair<int, int>;
or even:
typedef std::map<std::string, Foo> MyMap;
typedef std::vector<int,MyCustomAllocator<int>> MyVector;
This patch allows the fix to apply to lines with commas if they are within parentheses or angle brackets that were not themselves within parentheses.
Reviewers: alexfh, hokein, aaron.ballman
Patch by: poelmanc
Subscribers: jonathanmeier, cfe-commits
Tags: #clang, #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D67460
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions