simark wrote:
Here's an idea for an oddly-specific setting, but less oddly-specific than the
proposed one: a setting that is a list of identifiers that are exceptions to
the "space before parenthesis" rule, which we'd use like:
SpaceBeforeIdentifierExceptions:
- "_"
This has the advantage that `_` is not hardcoded in clang-format. If we want
to omit the space for another identifier, we can. For instance, the gettext
doc also suggests `N_` as an alternative, so some people may want to handle it
the same way. Finally, by being configurable, there is some chance that this
will be useful to someone else out there.
https://github.com/llvm/llvm-project/pull/159925
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits