[clang-tools-extra] [include-cleaner] Fix a race issue when editing multiple files. (PR #76960)
kadir çetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 5 00:22:15 PST 2024
================
@@ -215,11 +208,15 @@ class ActionFactory : public tooling::FrontendActionFactory {
: HeaderFilter(HeaderFilter) {}
std::unique_ptr<clang::FrontendAction> create() override {
- return std::make_unique<Action>(HeaderFilter);
+ return std::make_unique<Action>(HeaderFilter, EditFiles);
}
+ const llvm::StringMap<std::string> &getEditFiles() const { return EditFiles; }
----------------
kadircet wrote:
s/getEditFiles/editedFiles
https://github.com/llvm/llvm-project/pull/76960
More information about the cfe-commits
mailing list