[clang] clang-format: Add "AllowShortNamespacesOnASingleLine" option (PR #105597)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 23 12:07:26 PDT 2024
================
@@ -27981,6 +27981,118 @@ TEST_F(FormatTest, BreakBinaryOperations) {
Style);
}
+TEST_F(FormatTest, ShortNamespacesOption) {
+ FormatStyle Style = getLLVMStyle();
+ Style.AllowShortNamespacesOnASingleLine = true;
+ Style.FixNamespaceComments = false;
+
+ // Basic functionality
----------------
HazardyKnusperkeks wrote:
```suggestion
// Basic functionality.
```
Comments ending with full stop.
https://github.com/llvm/llvm-project/pull/105597
More information about the cfe-commits
mailing list