[llvm-bugs] [Bug 48229] New: clang-format performance issues with nested lambdas - 3h to prettify a single file
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Nov 19 02:38:51 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48229
Bug ID: 48229
Summary: clang-format performance issues with nested lambdas -
3h to prettify a single file
Product: clang
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: officesamurai at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Created attachment 24184
--> https://bugs.llvm.org/attachment.cgi?id=24184&action=edit
The code in question
It looks like the formatting of nested lambdas has exponential cost.
---
$ /home/brd/soft/llvm-11.0.0/bin/clang-format --version
clang-format version 11.0.0
$ time cat nested_lambdas.cpp | /home/brd/soft/llvm-11.0.0/bin/clang-format
-style=LLVM
void foo() {
--- skipped ---
}
real 182m4.186s
user 181m57.792s
sys 0m3.568s
---
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201119/f63057ed/attachment.html>
More information about the llvm-bugs
mailing list