[PATCH] D138402: [clang-format] Correctly count a tab's width in a comment

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 21 14:17:09 PST 2022


owenpan added inline comments.


================
Comment at: clang/unittests/Format/FormatTestComments.cpp:736
+      "//* 0.2)",
+      "//\t\t\t\tofMap(message.velocity, 0, 127, 0, ofGetWidth() * 0.2)");
 }
----------------
```
error: reference to type 'const clang::format::FormatStyle' could not bind to an lvalue of type 'const char[61]'
      "//\t\t\t\tofMap(message.velocity, 0, 127, 0, ofGetWidth() * 0.2)");
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138402



More information about the cfe-commits mailing list