Include what you spell
PiperOrigin-RevId: 551832968
Change-Id: Ic15aebf81d7e5507d95d74ccbd7929f2a8a8e80b
diff --git a/lifetime_annotations/test/BUILD b/lifetime_annotations/test/BUILD
index 2e0019a..8ab71cc 100644
--- a/lifetime_annotations/test/BUILD
+++ b/lifetime_annotations/test/BUILD
@@ -26,6 +26,8 @@
deps = [
"//lifetime_annotations",
"@llvm-project//clang:ast",
+ "@llvm-project//clang:frontend",
+ "@llvm-project//clang:serialization",
"@llvm-project//clang:tooling",
"@llvm-project//llvm:Support",
],
diff --git a/lifetime_annotations/test/run_on_code.cc b/lifetime_annotations/test/run_on_code.cc
index 5c0ea51..8ea6c3a 100644
--- a/lifetime_annotations/test/run_on_code.cc
+++ b/lifetime_annotations/test/run_on_code.cc
@@ -5,9 +5,16 @@
#include "lifetime_annotations/test/run_on_code.h"
#include <functional>
+#include <memory>
#include <string>
#include "lifetime_annotations/lifetime_annotations.h"
+#include "clang/AST/ASTConsumer.h"
+#include "clang/Frontend/FrontendAction.h"
+#include "clang/Serialization/PCHContainerOperations.h"
+#include "clang/Tooling/Tooling.h"
+#include "llvm/ADT/ArrayRef.h"
+#include "llvm/ADT/StringRef.h"
namespace clang {
namespace tidy {