This patch makes the implementation of parseUnaryOperator non-recursive. We had
a problem with a file starting with tens of thousands of +'es and -'es which
caused clang-format to stack overflow.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
lg
lib/Format/TokenAnnotator.cpp | ||
---|---|---|
1671 ↗ | (On Diff #121147) | for (FormatToken *Token : llvm::reverse(Tokens)) |
lib/Format/TokenAnnotator.cpp | ||
---|---|---|
1671 ↗ | (On Diff #121147) | Wow! That's so cool! Thanks! |