[clangd] Enable parsing of forwarding functions in the preamble by default (#127359)

Fixes https://github.com/clangd/clangd/issues/2324
This commit is contained in:
Nathan Ridge
2025-02-18 00:59:45 -05:00
committed by GitHub
parent 663db5c70d
commit 0b719d3d63
2 changed files with 3 additions and 3 deletions

View File

@@ -184,7 +184,7 @@ public:
bool UseDirtyHeaders = false; bool UseDirtyHeaders = false;
// If true, parse emplace-like functions in the preamble. // If true, parse emplace-like functions in the preamble.
bool PreambleParseForwardingFunctions = false; bool PreambleParseForwardingFunctions = true;
/// Whether include fixer insertions for Objective-C code should use #import /// Whether include fixer insertions for Objective-C code should use #import
/// instead of #include. /// instead of #include.
@@ -501,7 +501,7 @@ private:
// Whether the client supports folding only complete lines. // Whether the client supports folding only complete lines.
bool LineFoldingOnly = false; bool LineFoldingOnly = false;
bool PreambleParseForwardingFunctions = false; bool PreambleParseForwardingFunctions = true;
bool ImportInsertions = false; bool ImportInsertions = false;

View File

@@ -40,7 +40,7 @@ public:
// Options to run clang e.g. when parsing AST. // Options to run clang e.g. when parsing AST.
struct ParseOptions { struct ParseOptions {
bool PreambleParseForwardingFunctions = false; bool PreambleParseForwardingFunctions = true;
bool ImportInsertions = false; bool ImportInsertions = false;
}; };