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

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 13 02:04:30 PST 2022


HazardyKnusperkeks added inline comments.


================
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:297
+                  return true;
+                if (Style.isCpp() && RecordTok->is(tok::kw_union))
+                  return true;
----------------
Is union used in another language and behaves then differently?


================
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:304
+                  return true;
+                if (Style.isJavaScript() && RecordTok->is(Keywords.kw_function))
+                  return true;
----------------
Is there a test for that?


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