From 0b719d3d63100c6af66b015f796ab74d3d218107 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Tue, 18 Feb 2025 00:59:45 -0500 Subject: [PATCH] [clangd] Enable parsing of forwarding functions in the preamble by default (#127359) Fixes https://github.com/clangd/clangd/issues/2324 --- clang-tools-extra/clangd/ClangdServer.h | 4 ++-- clang-tools-extra/clangd/Compiler.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clang-tools-extra/clangd/ClangdServer.h b/clang-tools-extra/clangd/ClangdServer.h index e030bf04122d..1e612e2ba618 100644 --- a/clang-tools-extra/clangd/ClangdServer.h +++ b/clang-tools-extra/clangd/ClangdServer.h @@ -184,7 +184,7 @@ public: bool UseDirtyHeaders = false; // 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 /// instead of #include. @@ -501,7 +501,7 @@ private: // Whether the client supports folding only complete lines. bool LineFoldingOnly = false; - bool PreambleParseForwardingFunctions = false; + bool PreambleParseForwardingFunctions = true; bool ImportInsertions = false; diff --git a/clang-tools-extra/clangd/Compiler.h b/clang-tools-extra/clangd/Compiler.h index 4e68da7610ca..e513e4c40794 100644 --- a/clang-tools-extra/clangd/Compiler.h +++ b/clang-tools-extra/clangd/Compiler.h @@ -40,7 +40,7 @@ public: // Options to run clang e.g. when parsing AST. struct ParseOptions { - bool PreambleParseForwardingFunctions = false; + bool PreambleParseForwardingFunctions = true; bool ImportInsertions = false; };