[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:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user