[PATCH] D145435: Choose style (file) from within code for use in IDEs

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 7 12:31:24 PST 2023


HazardyKnusperkeks added inline comments.


================
Comment at: clang/lib/Format/Format.cpp:3542
+
+    // Prefix found, and at start of file or preceded by white space?
+    if (PrefixPos != StringRef::npos &&
----------------
I understand the reasoning, but the check down below I think does not match this. You only look if there is exactly one whitespace character before your `Prefix`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145435



More information about the cfe-commits mailing list