Author: Christopher Di Bella Date: 2021-07-04T06:00:39Z New Revision: 478092d33116ec01ad0b82f7eeedb1e1f07aef93
URL: https://github.com/llvm/llvm-project/commit/478092d33116ec01ad0b82f7eeedb1e1f07aef93 DIFF: https://github.com/llvm/llvm-project/commit/478092d33116ec01ad0b82f7eeedb1e1f07aef93.diff LOG: [clangd][iwyu] explicitly includes `<atomic>` Compiling clangd with Clang modules and libc++ revealed that `support/Threading.h` uses `std::atomic` but wasn't including the correct header. Differential Revision: https://reviews.llvm.org/D105400 Added: Modified: clang-tools-extra/clangd/support/Threading.h Removed: ################################################################################ diff --git a/clang-tools-extra/clangd/support/Threading.h b/clang-tools-extra/clangd/support/Threading.h index da9e3b8ea8b68..7f4ef6c0b1cbe 100644 --- a/clang-tools-extra/clangd/support/Threading.h +++ b/clang-tools-extra/clangd/support/Threading.h @@ -12,6 +12,7 @@ #include "support/Context.h" #include "llvm/ADT/FunctionExtras.h" #include "llvm/ADT/Twine.h" +#include <atomic> #include <cassert> #include <condition_variable> #include <future> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits