[clang-tools-extra] [clangd] Enable parsing of forwarding functions in the preamble by default (PR #127359)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 15 16:49:18 PST 2025
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/127359
Fixes https://github.com/clangd/clangd/issues/2324
>From 0ff06807c2c8255f472fc45e9a8922201384bf08 Mon Sep 17 00:00:00 2001
From: Nathan Ridge <zeratul976 at hotmail.com>
Date: Sat, 15 Feb 2025 01:57:10 -0500
Subject: [PATCH] [clangd] Enable parsing of forwarding functions in the
preamble by default
Fixes https://github.com/clangd/clangd/issues/2324
---
clang-tools-extra/clangd/Compiler.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang-tools-extra/clangd/Compiler.h b/clang-tools-extra/clangd/Compiler.h
index 4e68da7610ca2..e513e4c40794a 100644
--- a/clang-tools-extra/clangd/Compiler.h
+++ b/clang-tools-extra/clangd/Compiler.h
@@ -40,7 +40,7 @@ class IgnoreDiagnostics : public DiagnosticConsumer {
// Options to run clang e.g. when parsing AST.
struct ParseOptions {
- bool PreambleParseForwardingFunctions = false;
+ bool PreambleParseForwardingFunctions = true;
bool ImportInsertions = false;
};
More information about the cfe-commits
mailing list