[clang-tools-extra] e972068 - [clangd] Move gtest include to TestTU.cpp from TestTU.h
Kadir Cetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Sun May 30 23:02:51 PDT 2021
Author: Kadir Cetinkaya
Date: 2021-05-31T07:56:56+02:00
New Revision: e972068840710a8c832d21603b8409692604b865
URL: https://github.com/llvm/llvm-project/commit/e972068840710a8c832d21603b8409692604b865
DIFF: https://github.com/llvm/llvm-project/commit/e972068840710a8c832d21603b8409692604b865.diff
LOG: [clangd] Move gtest include to TestTU.cpp from TestTU.h
Added:
Modified:
clang-tools-extra/clangd/unittests/TestTU.cpp
clang-tools-extra/clangd/unittests/TestTU.h
clang-tools-extra/clangd/unittests/TestWorkspace.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/unittests/TestTU.cpp b/clang-tools-extra/clangd/unittests/TestTU.cpp
index b0c0d1b7c2a11..36f4290bd5a3a 100644
--- a/clang-tools-extra/clangd/unittests/TestTU.cpp
+++ b/clang-tools-extra/clangd/unittests/TestTU.cpp
@@ -17,6 +17,7 @@
#include "clang/Frontend/CompilerInvocation.h"
#include "clang/Frontend/Utils.h"
#include "llvm/ADT/ScopeExit.h"
+#include "gtest/gtest.h"
namespace clang {
namespace clangd {
diff --git a/clang-tools-extra/clangd/unittests/TestTU.h b/clang-tools-extra/clangd/unittests/TestTU.h
index 3e0c089dc5be1..2542e8fe654b7 100644
--- a/clang-tools-extra/clangd/unittests/TestTU.h
+++ b/clang-tools-extra/clangd/unittests/TestTU.h
@@ -25,7 +25,6 @@
#include "index/Index.h"
#include "support/Path.h"
#include "llvm/ADT/StringMap.h"
-#include "gtest/gtest.h"
#include <memory>
#include <string>
#include <utility>
diff --git a/clang-tools-extra/clangd/unittests/TestWorkspace.cpp b/clang-tools-extra/clangd/unittests/TestWorkspace.cpp
index 52cf45f5be244..84e61323ee5de 100644
--- a/clang-tools-extra/clangd/unittests/TestWorkspace.cpp
+++ b/clang-tools-extra/clangd/unittests/TestWorkspace.cpp
@@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
#include "TestWorkspace.h"
+#include "gtest/gtest.h"
namespace clang {
namespace clangd {
@@ -46,4 +47,4 @@ void TestWorkspace::addInput(llvm::StringRef Filename,
TU.AdditionalFiles.insert(std::make_pair(Filename, Input.Code));
}
} // namespace clangd
-} // namespace clang
\ No newline at end of file
+} // namespace clang
More information about the cfe-commits
mailing list