[clang] [clang-tools-extra] [include cleaner] Use tooling::HeaderIncludes for include insertions and deletions (PR #212852)

via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 25 14:53:27 PDT 2026


================
@@ -73,15 +74,43 @@ class HeaderIncludes {
   /// same category in the code that should be sorted after \p IncludeName. If
   /// \p IncludeName already exists (with exactly the same spelling), this
   /// returns std::nullopt.
-  std::optional<tooling::Replacement> insert(llvm::StringRef Header,
-                                             bool IsAngled,
+  std::optional<tooling::Replacement> insert(StringRef Header, bool IsAngled,
----------------
dmaclach wrote:

Done

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


More information about the cfe-commits mailing list