[PATCH] D117142: [clang-format] Fix short functions being considered as inline inside an indented namespace.

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 12 12:31:57 PST 2022


curdeius added inline comments.


================
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:278
+            // Just checking TheLine->Level != 0 is not enough, because it
+            // provokes treating functions inside intended namespaces as short.
+            if ((*I)->Level != 0) {
----------------
TODO: typo


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117142



More information about the cfe-commits mailing list