outcoldman added a comment.

The actual problem is with that clang-format does not know anything about c++17 
features, because it does not set it in lang options. Not sure if that will fix 
constexpr problem as well, but I could solve some other problems with

  tools/clang                                                                   
                                                     ✓  13:45:12 
  ╰─ svn diff
  Index: lib/Format/Format.cpp
  ===================================================================
  --- lib/Format/Format.cpp     (revision 297506)
  +++ lib/Format/Format.cpp     (working copy)
  @@ -1893,6 +1893,7 @@
     LangOpts.CPlusPlus = 1;
     LangOpts.CPlusPlus11 = Style.Standard == FormatStyle::LS_Cpp03 ? 0 : 1;
     LangOpts.CPlusPlus14 = Style.Standard == FormatStyle::LS_Cpp03 ? 0 : 1;
  +  LangOpts.CPlusPlus1z = Style.Standard == FormatStyle::LS_Cpp03 ? 0 : 1;
     LangOpts.LineComment = 1;
     bool AlternativeOperators = Style.IsCpp();
     LangOpts.CXXOperatorNames = AlternativeOperators ? 1 : 0;


https://reviews.llvm.org/D26953



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to