https://llvm.org/bugs/show_bug.cgi?id=31908
Bug ID: 31908 Summary: formatter doesn't understand preprocessor directives such as __has_include and incorrectly reformats them Product: clang Version: unspecified Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: Formatter Assignee: unassignedclangb...@nondot.org Reporter: dch...@google.com CC: djas...@google.com, kli...@google.com, llvm-bugs@lists.llvm.org Classification: Unclassified https://chromium-review.googlesource.com/c/439744/1/util/stdlib/cxx.h#37 for an example. #if !defined(_LIBCPP_VERSION) #if defined(__has_include) #if __has_include(<bits/c++config.h>) #include <bits/c++config.h> #endif #else #include <bits/c++config.h> #endif #endif gets turned into #if !defined(_LIBCPP_VERSION) #if defined(__has_include) #if __has_include(<bits / c++ config.h>) #include <bits/c++config.h> #endif #else #include <bits/c++config.h> #endif #endif -- 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