[PATCH] D58922: [clang-format] broken after lambda with return type template with boolean literal
Jan Korous via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 4 13:47:29 PST 2019
jkorous added a comment.
Thanks for fixing this!
The patch LGTM.
I am just wondering what else are we missing here. I guess arithmetic and logical operators are also allowed:
template<int> struct foo {};
int main() {
auto lambda1 = []() -> foo<!1> { return foo<!1>{}; };
auto lambda2 = []() -> foo<5+3> { return foo<5+3>{}; };
}
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58922/new/
https://reviews.llvm.org/D58922
More information about the cfe-commits
mailing list