[PATCH] D136723: [include-cleaner] Record main-file macro occurences and includes
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 25 17:29:47 PDT 2022
sammccall added inline comments.
================
Comment at: clang-tools-extra/include-cleaner/include/clang-include-cleaner/Record.h:75
+ // - for a logical file like <vector>, we check Spelled
+ llvm::SmallVector<const Include *> match(Header H) const;
+
----------------
in the prototype I reimplemented this function in clangd, but I expect we can just reuse the RecordedIncludes class instead, copying from clangd's includes list is cheap.
(That's one argument for putting this in a different header, which I can do already if you prefer)
================
Comment at: clang-tools-extra/include-cleaner/include/clang-include-cleaner/Types.h:22
-#ifndef CLANG_INCLUDE_CLEANER_RECORD_H
-#define CLANG_INCLUDE_CLEANER_RECORD_H
+#ifndef CLANG_INCLUDE_CLEANER_TYPES_H
+#define CLANG_INCLUDE_CLEANER_TYPES_H
----------------
(this is already fixed at head)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136723/new/
https://reviews.llvm.org/D136723
More information about the cfe-commits
mailing list