[PATCH] D58819: [clang-format] clang-format off/on not respected when using C Style comments

Jonas Toth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 1 10:22:31 PST 2019


JonasToth added inline comments.


================
Comment at: clang/lib/Format/Format.cpp:1792
+    else if (Trimmed == "// clang-format on" ||
+             Trimmed == "/* clang-format on */")
       FormattingOff = false;
----------------
Should we allow 
```
/* clang-format off
    It is just horrible for this piece of code. */
```

? Multiline-comments could span multiple lines and to deactivates clang-format and give reasons.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58819/new/

https://reviews.llvm.org/D58819





More information about the llvm-commits mailing list