[clang] [clang-format] adds a space after not inside macros (PR #78176)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 22 02:18:31 PST 2024
================
@@ -4842,19 +4842,19 @@ bool TokenAnnotator::spaceRequiredBefore(const AnnotatedLine &Line,
return true;
}
if (Left.is(TT_UnaryOperator)) {
- if (Right.isNot(tok::l_paren)) {
+ if (Right.isOneOf(tok::identifier, tok::numeric_constant)) {
// The alternative operators for ~ and ! are "compl" and "not".
// If they are used instead, we do not want to combine them with
// the token to the right, unless that is a left paren.
----------------
owenca wrote:
The comment needs to be updated.
https://github.com/llvm/llvm-project/pull/78176
More information about the cfe-commits
mailing list