[llvm-bugs] [Bug 36488] New: clang-format memory usage increases constantly up to machine crash with very long #define

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Feb 23 01:53:54 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36488

            Bug ID: 36488
           Summary: clang-format memory usage increases constantly up to
                    machine crash with very long #define
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ufospoke at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

Created attachment 19936
  --> https://bugs.llvm.org/attachment.cgi?id=19936&action=edit
File that make clang-format fail

The attached 600 lines #define makes clang-format constantly use more memory up
to system crash (32 Gb).

clang-format -style=LLVM x.cpp

tested on linux with clang-format 4.0.1 and 5.0.1.

-- 
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/20180223/1851b9a5/attachment.html>


More information about the llvm-bugs mailing list