================
@@ -4901,6 +4901,12 @@ bool TokenAnnotator::spaceRequiredBetween(const 
AnnotatedLine &Line,
     // Handle builtins like identifiers.
     if (Line.Type != LT_PreprocessorDirective &&
         (Left.Tok.getIdentifierInfo() || Left.is(tok::r_paren))) {
+      // Check for special case: single underscore token (gettext macro)
+      if (Left.Tok.getIdentifierInfo() && !Style.SpaceBeforeUnderscoreParens) {
+        StringRef TokenText = Left.TokenText;
+        if (TokenText == "_")
----------------
HazardyKnusperkeks wrote:

```suggestion
      if (Left.Tok.getIdentifierInfo() && !Style.SpaceBeforeUnderscoreParens && 
Left.TokenText == "_")
```
I'd merge that.

https://github.com/llvm/llvm-project/pull/159925
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to