You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var x=cond?"A":"B";
var y=(cond?"A":"B");
Func(cond?"A":"B");
(cond?"A":"B");
cond?"A":"B";
When I run clang-format --style=LLVM mwe.cs, I get the output:
var x = cond ? "A" : "B";
var y = (cond ? "A" : "B");
Func(cond? "A": "B");
(cond? "A": "B");
cond? "A" : "B";
In the variable assignments, the formatting is correct. In the function call, both spaces are missing, and the same in the following line with parentheses around the ternary expression. In the final line, only the space before the question mark is missing.
As is expected, adding spaces to the input file before the ?s and :s does not change the output.
I have clang-format version 15.0.1 installed.
The text was updated successfully, but these errors were encountered:
I have a file
mwe.cs
:When I run
clang-format --style=LLVM mwe.cs
, I get the output:In the variable assignments, the formatting is correct. In the function call, both spaces are missing, and the same in the following line with parentheses around the ternary expression. In the final line, only the space before the question mark is missing.
As is expected, adding spaces to the input file before the
?
s and:
s does not change the output.I have clang-format version 15.0.1 installed.
The text was updated successfully, but these errors were encountered: