[clang] [clang-format] Add SpaceBeforeUnderscoreParens option for GNU gettext… (PR #159925)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 22 03:39:14 PDT 2025
================
@@ -4667,6 +4667,16 @@ struct FormatStyle {
/// \version 7
bool SpaceBeforeInheritanceColon;
+ /// If ``false``, spaces will be removed between underscore and an opening
+ /// parenthesis. This is specifically for the gettext macro ``_()`` commonly
+ /// used in GNU projects.
+ /// \code
+ /// true: false:
+ /// _ (message); vs. _(message);
+ /// \endcode
+ /// \version 19
+ bool SpaceBetweenUnderscoreParens;
----------------
kgerlich wrote:
resorted, thanks.
GDB would have two out of the three requirements @owenca mentioned to allow for a new option. I'm trying to see if in the GDB coding style docs, the _() macro can be described which would then meet all reqs.
https://github.com/llvm/llvm-project/pull/159925
More information about the cfe-commits
mailing list