[Lldb-commits] [lldb] 5423839 - [lldb] Forward-declare ClangExpressionParser (NFC)
Kazu Hirata via lldb-commits
lldb-commits at lists.llvm.org
Sun Jan 30 12:33:14 PST 2022
Author: Kazu Hirata
Date: 2022-01-30T12:32:53-08:00
New Revision: 5423839929e2d07d2cc5b7a497772074ec13df12
URL: https://github.com/llvm/llvm-project/commit/5423839929e2d07d2cc5b7a497772074ec13df12
DIFF: https://github.com/llvm/llvm-project/commit/5423839929e2d07d2cc5b7a497772074ec13df12.diff
LOG: [lldb] Forward-declare ClangExpressionParser (NFC)
ClangUserExpression.h is relying on the forward declaration of
ClangExpressionParser in ClangFunctionCaller.h. This patch moves the
forward declaration to ClangUserExpression.h.
Added:
Modified:
lldb/source/Plugins/ExpressionParser/Clang/ClangFunctionCaller.h
lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h
Removed:
################################################################################
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangFunctionCaller.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangFunctionCaller.h
index 8060b8c0aedc1..151935b0ce68f 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangFunctionCaller.h
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangFunctionCaller.h
@@ -21,7 +21,6 @@
namespace lldb_private {
class ASTStructExtractor;
-class ClangExpressionParser;
/// \class ClangFunctionCaller ClangFunctionCaller.h
/// "lldb/Expression/ClangFunctionCaller.h" Encapsulates a function that can
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h
index b628f6debf661..30cdd2f3e990e 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h
@@ -28,6 +28,8 @@
namespace lldb_private {
+class ClangExpressionParser;
+
/// \class ClangUserExpression ClangUserExpression.h
/// "lldb/Expression/ClangUserExpression.h" Encapsulates a single expression
/// for use with Clang
More information about the lldb-commits
mailing list