[clang] 313f8a2 - Don't include private gtest/gmock headers
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 18 07:35:07 PDT 2022
Author: Benjamin Kramer
Date: 2022-07-18T16:34:36+02:00
New Revision: 313f8a20fdf968501a79c7f9aaaf77ae0faaf907
URL: https://github.com/llvm/llvm-project/commit/313f8a20fdf968501a79c7f9aaaf77ae0faaf907
DIFF: https://github.com/llvm/llvm-project/commit/313f8a20fdf968501a79c7f9aaaf77ae0faaf907.diff
LOG: Don't include private gtest/gmock headers
Only gmock.h and gtest.h are supposed to be user-visible.
Added:
Modified:
clang/unittests/Basic/SarifTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Basic/SarifTest.cpp b/clang/unittests/Basic/SarifTest.cpp
index 123be8e924fe..05221c828afe 100644
--- a/clang/unittests/Basic/SarifTest.cpp
+++ b/clang/unittests/Basic/SarifTest.cpp
@@ -20,9 +20,7 @@
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/VirtualFileSystem.h"
#include "llvm/Support/raw_ostream.h"
-#include "gmock/gmock-matchers.h"
-#include "gtest/gtest-death-test.h"
-#include "gtest/gtest-matchers.h"
+#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <algorithm>
More information about the cfe-commits
mailing list