From 0f6959f3632a1131fe74f7dde33cc52778b02280 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Thu, 27 Feb 2020 14:32:10 -0800 Subject: [PATCH] Add some missing header dependencies Unit tests are not part of `all` O_O, and I tested on Windows with -fdelayed-template-parsing. --- clang/lib/StaticAnalyzer/Checkers/Yaml.h | 1 + clang/unittests/AST/ASTVectorTest.cpp | 4 +++- clang/unittests/CodeGen/TBAAMetadataTest.cpp | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/clang/lib/StaticAnalyzer/Checkers/Yaml.h b/clang/lib/StaticAnalyzer/Checkers/Yaml.h index 968c50e..ec612dd 100644 --- a/clang/lib/StaticAnalyzer/Checkers/Yaml.h +++ b/clang/lib/StaticAnalyzer/Checkers/Yaml.h @@ -15,6 +15,7 @@ #define LLVM_CLANG_LIB_STATICANALYZER_CHECKER_YAML_H #include "clang/StaticAnalyzer/Core/CheckerManager.h" +#include "llvm/Support/VirtualFileSystem.h" #include "llvm/Support/YAMLTraits.h" namespace clang { diff --git a/clang/unittests/AST/ASTVectorTest.cpp b/clang/unittests/AST/ASTVectorTest.cpp index f5b208a..7953acb 100644 --- a/clang/unittests/AST/ASTVectorTest.cpp +++ b/clang/unittests/AST/ASTVectorTest.cpp @@ -10,9 +10,11 @@ // //===----------------------------------------------------------------------===// -#include "clang/AST/ASTContext.h" #include "clang/AST/ASTVector.h" +#include "clang/AST/ASTContext.h" #include "clang/Basic/Builtins.h" +#include "clang/Basic/FileManager.h" +#include "clang/Basic/SourceManager.h" #include "gtest/gtest.h" using namespace clang; diff --git a/clang/unittests/CodeGen/TBAAMetadataTest.cpp b/clang/unittests/CodeGen/TBAAMetadataTest.cpp index 6535fe2..9726838 100644 --- a/clang/unittests/CodeGen/TBAAMetadataTest.cpp +++ b/clang/unittests/CodeGen/TBAAMetadataTest.cpp @@ -9,12 +9,13 @@ #include "IRMatchers.h" #include "clang/AST/ASTConsumer.h" #include "clang/AST/ASTContext.h" +#include "clang/Basic/SourceManager.h" #include "clang/CodeGen/ModuleBuilder.h" #include "clang/Frontend/CompilerInstance.h" #include "clang/Parse/ParseAST.h" #include "llvm/ADT/Triple.h" -#include "llvm/IR/LLVMContext.h" #include "llvm/IR/Constants.h" +#include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" #include "llvm/Support/MemoryBuffer.h" #include "gtest/gtest.h" -- 2.7.4