[llvm-bugs] [Bug 38486] New: Formatted output is not stable

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 8 08:03:19 PDT 2018


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

            Bug ID: 38486
           Summary: Formatted output is not stable
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: thom at codehawks.eu
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

Created attachment 20657
  --> https://bugs.llvm.org/attachment.cgi?id=20657&action=edit
Example sequence

I've discovered an issue whereby if I were to run clang-format not once but
twice consecutively on the same input then the output of the first and second
runs are not identical. After two runs the output seems to be correct and
"stable".

I'm attaching a minimal test case with a clang-format configuration file.

I believe the issue might be related to the lack of space after the trailing
single-line comments.

-- 
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/20180808/7fe22331/attachment.html>


More information about the llvm-bugs mailing list