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

            Bug ID: 31258
           Summary: clang-format needlessly inserts newline
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: nicolaswe...@gmx.de
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org
    Classification: Unclassified

Input:

  std::string err_string(
      "The variable \"" + name_unused + "\" was set as a build argument\n"
      "but never appeared in a declare_args() block in any buildfile.\n\n"
      "To view possible args, run \"gn args --list <builddir>\"");

Output:

  std::string err_string(
      "The variable \"" + name_unused +
      "\" was set as a build argument\n"
      "but never appeared in a declare_args() block in any buildfile.\n\n"
      "To view possible args, run \"gn args --list <builddir>\"");


The newline is not only unnecessary, it also makes the code less clear.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to