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

            Bug ID: 27616
           Summary: clang-format 3.6 vs 3.7
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: sbchish...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org
    Classification: Unclassified

Below is an example of a source file test.cpp formatted by both clang-format
versions 3.6 and 3.7.  I like the output from 3.6 far better than what I'm
getting from 3.7. Wondering if it's a bug that it's formatted differently in
3.7 or if there is a configuration item that I'm missing to have it behave the
same as 3.6.

$ cat test.cpp
size_t tempYLTFileCount =
  Helpers::getFiles(m_pvSimulatedUnsortedYLTFilePattern,
                    regex(".*~", regex::basic)).size() +
  Helpers::getFiles(m_lvSimulatedUnsortedYLTFilePattern,
                    regex(".*~", regex::basic)).size();


$ clang-format-3.7 -style=google test.cpp 
size_t tempYLTFileCount =
Helpers::getFiles(m_pvSimulatedUnsortedYLTFilePattern,
                                            regex(".*~", regex::basic))
                              .size() +
                         
Helpers::getFiles(m_lvSimulatedUnsortedYLTFilePattern,
                                            regex(".*~", regex::basic))
                              .size();


$ clang-format-3.6 -style=google test.cpp 
size_t tempYLTFileCount =
Helpers::getFiles(m_pvSimulatedUnsortedYLTFilePattern,
                                            regex(".*~", regex::basic)).size()
+
                         
Helpers::getFiles(m_lvSimulatedUnsortedYLTFilePattern,
                                            regex(".*~", regex::basic)).size();

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