[Lldb-commits] [lldb] [LLDB] Remove C++ language runtime dependency of Clang expression parser (PR #185450)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 9 09:20:26 PDT 2026
https://github.com/Nerixyz created https://github.com/llvm/llvm-project/pull/185450
>From https://github.com/llvm/llvm-project/pull/169225#issuecomment-4024377289: There was a dependency cycle involving the C++ language runtime:
```
//lldb/source/Plugins/TypeSystem/Clang:Clang ->
//lldb/source/Plugins/ExpressionParser/Clang:Clang ->
//lldb/source/Plugins/LanguageRuntime/CPlusPlus:CPlusPlus ->
//lldb/source/Plugins/TypeSystem/Clang:Clang
```
`ExpressionParserClang` doesn't need to depend on the C++ language runtime. It only included a file, but didn't use it. This PR removes that dependency.
>From 88c030277e2ae4be5bbf2146fbaa97d0ccf5758b Mon Sep 17 00:00:00 2001
From: Nerixyz <nerixdev at outlook.de>
Date: Mon, 9 Mar 2026 17:15:15 +0100
Subject: [PATCH] [LLDB] Remove CPP language runtime dependency of Clang
expression parser
---
lldb/source/Plugins/ExpressionParser/Clang/CMakeLists.txt | 1 -
.../Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp | 1 -
2 files changed, 2 deletions(-)
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/CMakeLists.txt b/lldb/source/Plugins/ExpressionParser/Clang/CMakeLists.txt
index 759a7c4dd14fb..fe56d5072ce3a 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/CMakeLists.txt
+++ b/lldb/source/Plugins/ExpressionParser/Clang/CMakeLists.txt
@@ -45,7 +45,6 @@ add_lldb_library(lldbPluginExpressionParserClang
lldbUtility
lldbValueObject
lldbPluginCPlusPlusLanguage
- lldbPluginCPPRuntime
lldbPluginObjCRuntime
lldbPluginTypeSystemClang
CLANG_LIBS
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
index e7305ec4f3d07..de6bec592df55 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
@@ -58,7 +58,6 @@
#include "clang/AST/DeclarationName.h"
#include "clang/AST/RecursiveASTVisitor.h"
-#include "Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.h"
#include "Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h"
using namespace lldb;
More information about the lldb-commits
mailing list