aboutsummaryrefslogtreecommitdiff
path: root/include-fixer
diff options
context:
space:
mode:
Diffstat (limited to 'include-fixer')
-rw-r--r--include-fixer/SymbolIndexManager.h11
-rw-r--r--include-fixer/plugin/CMakeLists.txt1
2 files changed, 12 insertions, 0 deletions
diff --git a/include-fixer/SymbolIndexManager.h b/include-fixer/SymbolIndexManager.h
index e1e52879..feb5de3b 100644
--- a/include-fixer/SymbolIndexManager.h
+++ b/include-fixer/SymbolIndexManager.h
@@ -13,8 +13,19 @@
#include "SymbolIndex.h"
#include "find-all-symbols/SymbolInfo.h"
#include "llvm/ADT/StringRef.h"
+
+#ifdef _MSC_VER
+// Disable warnings from ppltasks.h transitively included by <future>.
+#pragma warning(push)
+#pragma warning(disable:4530)
+#endif
+
#include <future>
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
+
namespace clang {
namespace include_fixer {
diff --git a/include-fixer/plugin/CMakeLists.txt b/include-fixer/plugin/CMakeLists.txt
index fb05e844..2799fd4a 100644
--- a/include-fixer/plugin/CMakeLists.txt
+++ b/include-fixer/plugin/CMakeLists.txt
@@ -9,4 +9,5 @@ add_clang_library(clangIncludeFixerPlugin
clangParse
clangSema
clangTooling
+ ${PTHREAD_LIB}
)