[PATCH] D67460: clang-tidy: modernize-use-using work with multi-argument templates
Conrad Poelman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 11 17:21:15 PDT 2019
poelmanc added a comment.
Wow, thanks for the super-quick testing, feedback and a new test case! I added a slightly enhanced version of your test case to the modernize-use-using.cpp test file and got it passing by treating tok::less and tok::right as AngleBrackets //only when ParenLevel == 0//. See updated patch above. Holler if you think of any other stressing cases!
P.S. What do we think of actually handling the comma cases? (A) that's probably hard, and (B) as a C++ programmer I don't use them myself, so would we expand:
typedef S<(0 < 0)> S_t, *S_p;
to:
using S_t = S<(0 < 0)>;
using S_p = S_t*;
?
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67460/new/
https://reviews.llvm.org/D67460
More information about the cfe-commits
mailing list