Builder crashes when ClangFormat plugin encounteres invalid .clang-format configuration
Affected version
- Other: Fedora 40 v46.1
Steps to reproduce
- Create
.clang-format
:--- Language: Cpp AlignEscapedNewlines: Align
- Make sure
ClangFormat
plugin is enabled - Create new file and insert some content, e.g.
int main(void){}
. - Hit Ctrl+S to save the file
Current behavior
Builder crashes
Expected behavior
The buffer contents is saved to the file.
Additional information
For me it looks someone is expecting error
being set when it is not set as we just return FALSE
here. Another return with FALSE
without error
set is in here. The crash looks to happen in the former.
I have clang-format
version 18.1.1 so the .clang-format
does not produce error, change Align
to something that is invalid.