[clang-tools-extra] [clangd] Enable parsing of forwarding functions in the preamble by default (PR #127359)

via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 15 16:49:47 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clangd

@llvm/pr-subscribers-clang-tools-extra

Author: Nathan Ridge (HighCommander4)

<details>
<summary>Changes</summary>

Fixes https://github.com/clangd/clangd/issues/2324

---
Full diff: https://github.com/llvm/llvm-project/pull/127359.diff


1 Files Affected:

- (modified) clang-tools-extra/clangd/Compiler.h (+1-1) 


``````````diff
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;
 };

``````````

</details>


https://github.com/llvm/llvm-project/pull/127359


More information about the cfe-commits mailing list