| Issue |
56438
|
| Summary |
clang-format assertion failure on -lines=0:n
|
| Labels |
clang-format,
crash
|
| Assignees |
owenca
|
| Reporter |
owenca
|
clang-format crashes if the starting line number is 0 for the `-lines` command-line option:
```
$ clang-format -version
clang-format version 15.0.0 (https://github.com/llvm/llvm-project c84d29acbfa671b4a7fb24764cbd4bfa5f6aad5c)
$ echo 'int i;' | clang-format -lines=0:1
Assertion failed: (Line && Col && "Line and column should start from 1!"), function translateLineCol, file SourceManager.cpp, line 1696.
...
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs