Skip to content

Commit 0b719d3

Browse files
[clangd] Enable parsing of forwarding functions in the preamble by default (#127359)
Fixes clangd/clangd#2324
1 parent 663db5c commit 0b719d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang-tools-extra/clangd/ClangdServer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class ClangdServer {
184184
bool UseDirtyHeaders = false;
185185

186186
// If true, parse emplace-like functions in the preamble.
187-
bool PreambleParseForwardingFunctions = false;
187+
bool PreambleParseForwardingFunctions = true;
188188

189189
/// Whether include fixer insertions for Objective-C code should use #import
190190
/// instead of #include.
@@ -501,7 +501,7 @@ class ClangdServer {
501501
// Whether the client supports folding only complete lines.
502502
bool LineFoldingOnly = false;
503503

504-
bool PreambleParseForwardingFunctions = false;
504+
bool PreambleParseForwardingFunctions = true;
505505

506506
bool ImportInsertions = false;
507507

clang-tools-extra/clangd/Compiler.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class IgnoreDiagnostics : public DiagnosticConsumer {
4040

4141
// Options to run clang e.g. when parsing AST.
4242
struct ParseOptions {
43-
bool PreambleParseForwardingFunctions = false;
43+
bool PreambleParseForwardingFunctions = true;
4444

4545
bool ImportInsertions = false;
4646
};

0 commit comments

Comments
 (0)