mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-16 16:12:53 +00:00
CppLanguageServer: Make preprocessor ignore unsupported keywords
During typing the entered keywords can be incomplete and crash preprocessor. We enable the newly introduced option to prevent that crash.
This commit is contained in:
parent
0b5d414eba
commit
663fd9abb4
Notes:
sideshowbarker
2024-07-18 21:15:17 +09:00
Author: https://github.com/vpukhanov
Commit: 663fd9abb4
Pull-request: https://github.com/SerenityOS/serenity/pull/5848
Issue: https://github.com/SerenityOS/serenity/issues/5846
1 changed files with 1 additions and 0 deletions
|
@ -426,6 +426,7 @@ OwnPtr<ParserAutoComplete::DocumentData> ParserAutoComplete::create_document_dat
|
|||
document_data->m_filename = move(filename);
|
||||
document_data->m_text = move(text);
|
||||
document_data->m_preprocessor = make<Preprocessor>(document_data->m_filename, document_data->text());
|
||||
document_data->preprocessor().set_ignore_unsupported_keywords(true);
|
||||
document_data->preprocessor().process();
|
||||
|
||||
Preprocessor::Definitions all_definitions;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue