| Issue |
61553
|
| Summary |
clang-format does not handle JS conditional (ternary) operator correctly.
|
| Labels |
clang-format,
typescript,
_javascript_
|
| Assignees |
|
| Reporter |
ZequanWu
|
Before:
```
var options =
useNewWallpaperPicker ?
{
frame: 'none',
innerBounds: {width: 768, height: 512, minWidth: 768, minHeight: 512},
resizable: true,
alphaEnabled: true
} :
{
frame: 'none',
width: 574,
height: 420,
resizable: false,
alphaEnabled: true
};
```
After:
```
var options = useNewWallpaperPicker ? {
frame: 'none',
innerBounds: {width: 768, height: 512, minWidth: 768, minHeight: 512},
resizable: true,
alphaEnabled: true
} :
{
frame: 'none',
width: 574,
height: 420,
resizable: false,
alphaEnabled: true
};
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs