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

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 22 00:08:08 PST 2022


HazardyKnusperkeks marked an inline comment as done.
HazardyKnusperkeks 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)");
 }
----------------
owenpan wrote:
> ```
> 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)");
>       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ```
Just needs the verifyFormat from D138263.


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