<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/81569>81569</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format produces `#if(abc && def) || ghi`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nabijaczleweli
</td>
</tr>
</table>
<pre>
I get
```cpp
#if(__linux__ && !__GLIBC__) || __OpenBSD__ // cpuid
```
with config
```yaml
---
Language : Cpp
BasedOnStyle : LLVM
AlignAfterOpenBracket : true
AlignEscapedNewlinesLeft : true
AlignConsecutiveAssignments : true
AllowShortFunctionsOnASingleLine : Inline
AlwaysBreakTemplateDeclarations : true
ColumnLimit : 160
ConstructorInitializerIndentWidth : 6
IndentCaseLabels : true
MaxEmptyLinesToKeep : 2
KeepEmptyLinesAtTheStartOfBlocks : false
NamespaceIndentation : All
PointerAlignment : Middle
SpacesBeforeTrailingComments : 2
IndentWidth : 2
TabWidth : 2
UseTab : ForIndentation
SpaceBeforeParens : Never
FixNamespaceComments : false
...
```
on 1:19.0-58\~exp2+0~20240125133033.7\~1.gbp0cd83c.
I think it's obvious it should not be like that, and it should just be
```cpp
#if (__linux__ && !__GLIBC__) || __OpenBSD__ // cpuid
```
and match all the other `#if`s.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0lUFvozgUxz-Nc7GCjEkgOXAgdLKqNm1HSnb3iIx5gFtjI9s0zRzms6-AZMqmM5letqqUYL_fe-__f45h1opKAcRouUHLuxnrXK1NrFgunhn_JuEIUsxyXZzie1yBQ-QOkQSFZPznbXteoYEoEV1lmRSqe8syjGiIaIgR9bPsj939Js0yRNcYRSmKUpxlTy2ozf4uyzBGdIvoFvO2E8VVgfHxKFyNuValqK72T6yR49J8Ph-_7JiqOlYBRkGC00uDG2aheFJ7d5KAf__Xs7vd3w8jnEhRqaR0YIauDe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