[clang] [llvm] [llvm][clang] Remove `format_object_base` forward declarations (PR #206526)
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 29 09:58:15 PDT 2026
https://github.com/jansvoboda11 created https://github.com/llvm/llvm-project/pull/206526
PR https://github.com/llvm/llvm-project/pull/206319 removed the `format_object_base` class itself, but not some of its forward-declarations. NFCI
>From 0d1bc5e0e54f84af0619df8cde09c26359f2ebbb Mon Sep 17 00:00:00 2001
From: Jan Svoboda <jan_svoboda at apple.com>
Date: Mon, 29 Jun 2026 09:56:44 -0700
Subject: [PATCH] [llvm][clang] Remove `format_object_base` forward
declarations
---
clang/tools/libclang/CLog.h | 4 ----
llvm/include/llvm/Support/raw_ostream.h | 1 -
2 files changed, 5 deletions(-)
diff --git a/clang/tools/libclang/CLog.h b/clang/tools/libclang/CLog.h
index a880fb03b4e87..042a7605b6dd2 100644
--- a/clang/tools/libclang/CLog.h
+++ b/clang/tools/libclang/CLog.h
@@ -20,10 +20,6 @@
#include "llvm/Support/raw_ostream.h"
#include <string>
-namespace llvm {
-class format_object_base;
-}
-
namespace clang {
namespace cxindex {
diff --git a/llvm/include/llvm/Support/raw_ostream.h b/llvm/include/llvm/Support/raw_ostream.h
index 23acf743606b5..841fe90515608 100644
--- a/llvm/include/llvm/Support/raw_ostream.h
+++ b/llvm/include/llvm/Support/raw_ostream.h
@@ -32,7 +32,6 @@ namespace llvm {
class Duration;
class formatv_object_base;
-class format_object_base;
class FormattedString;
class FormattedNumber;
class FormattedBytes;
More information about the cfe-commits
mailing list