[clang] [APINotes] Remove unused includes (NFC) (PR #142406)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 2 07:42:49 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142406
These are identified by misc-include-cleaner. I've filtered out those
that break builds. Also, I'm staying away from llvm-config.h,
config.h, and Compiler.h, which likely cause platform- or
compiler-specific build failures.
>From 6fe2dd8eb56b768f4e22a04c1affb1d7f767bb68 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Mon, 2 Jun 2025 07:16:08 -0700
Subject: [PATCH] [APINotes] Remove unused includes (NFC)
These are identified by misc-include-cleaner. I've filtered out those
that break builds. Also, I'm staying away from llvm-config.h,
config.h, and Compiler.h, which likely cause platform- or
compiler-specific build failures.
---
clang/lib/APINotes/APINotesManager.cpp | 2 --
clang/lib/APINotes/APINotesReader.cpp | 2 --
2 files changed, 4 deletions(-)
diff --git a/clang/lib/APINotes/APINotesManager.cpp b/clang/lib/APINotes/APINotesManager.cpp
index 7f8a126ffaa03..4dc6ffd66bd53 100644
--- a/clang/lib/APINotes/APINotesManager.cpp
+++ b/clang/lib/APINotes/APINotesManager.cpp
@@ -15,9 +15,7 @@
#include "clang/Basic/Module.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/SourceMgrAdapter.h"
-#include "clang/Basic/Version.h"
#include "llvm/ADT/APInt.h"
-#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
diff --git a/clang/lib/APINotes/APINotesReader.cpp b/clang/lib/APINotes/APINotesReader.cpp
index b55872446ac43..7cc4df2a99369 100644
--- a/clang/lib/APINotes/APINotesReader.cpp
+++ b/clang/lib/APINotes/APINotesReader.cpp
@@ -16,10 +16,8 @@
#include "APINotesFormat.h"
#include "clang/APINotes/Types.h"
#include "llvm/ADT/Hashing.h"
-#include "llvm/ADT/StringExtras.h"
#include "llvm/Bitstream/BitstreamReader.h"
#include "llvm/Support/DJB.h"
-#include "llvm/Support/EndianStream.h"
#include "llvm/Support/OnDiskHashTable.h"
namespace clang {
More information about the cfe-commits
mailing list