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

            Bug ID: 36363
           Summary: Clang-format deletes whitespace between return-value
                    attribute and return-value type
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: alex.druin...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

When I run clang-format on the file

  #include <string>

  __attribute__((warn_unused_result)) ::std::string foo() { return ""; }

  __attribute__((warn_unused_result)) std::string bar() { return ""; }

The output is

  #include <string>

  __attribute__((warn_unused_result))::std::string foo() { return ""; }

  __attribute__((warn_unused_result)) std::string bar() { return ""; }

In the foo function, clang-format deletes the space between the closing paren
and the colon. Is this a bug in the formatter?

-- 
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