From e972068840710a8c832d21603b8409692604b865 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Mon, 31 May 2021 07:42:15 +0200 Subject: [PATCH] [clangd] Move gtest include to TestTU.cpp from TestTU.h --- clang-tools-extra/clangd/unittests/TestTU.cpp | 1 + clang-tools-extra/clangd/unittests/TestTU.h | 1 - clang-tools-extra/clangd/unittests/TestWorkspace.cpp | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/clangd/unittests/TestTU.cpp b/clang-tools-extra/clangd/unittests/TestTU.cpp index b0c0d1b..36f4290 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 3e0c089..2542e8fe 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 #include #include diff --git a/clang-tools-extra/clangd/unittests/TestWorkspace.cpp b/clang-tools-extra/clangd/unittests/TestWorkspace.cpp index 52cf45f..84e6132 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 -- 2.7.4