aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Tooling/ToolingTest.cpp
diff options
context:
space:
mode:
authorWenju He <wenju.he@intel.com>2025-06-07 00:05:13 +0000
committerGitHub <noreply@github.com>2025-06-07 08:05:13 +0800
commit8a51fb29b6f315f1ee0ba3b0b9f0f4a4c2b51dcc (patch)
treed45e2e01e9e595922dae8104f61c37d89df97afd /clang/unittests/Tooling/ToolingTest.cpp
parent6a21dfaac66ffa39dc7faaec1cd7932099c052d4 (diff)
downloadllvm-8a51fb29b6f315f1ee0ba3b0b9f0f4a4c2b51dcc.zip
llvm-8a51fb29b6f315f1ee0ba3b0b9f0f4a4c2b51dcc.tar.gz
llvm-8a51fb29b6f315f1ee0ba3b0b9f0f4a4c2b51dcc.tar.bz2
Revert "[Clang] Add resource_dir_EQ flag to CC1Option group (#140870)" (#142509)
This reverts commit c7b8d6e1dcb0a277f95496cbc6bb27143afb80a6. Fix check-clang CodeGenTest.TestNonAlterTest regression, see https://github.com/llvm/llvm-project/pull/140870#issuecomment-2931610238
Diffstat (limited to 'clang/unittests/Tooling/ToolingTest.cpp')
-rw-r--r--clang/unittests/Tooling/ToolingTest.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/clang/unittests/Tooling/ToolingTest.cpp b/clang/unittests/Tooling/ToolingTest.cpp
index 562f87d..32af4b6 100644
--- a/clang/unittests/Tooling/ToolingTest.cpp
+++ b/clang/unittests/Tooling/ToolingTest.cpp
@@ -771,25 +771,6 @@ TEST(ClangToolTest, BaseVirtualFileSystemUsage) {
EXPECT_EQ(0, Tool.run(Action.get()));
}
-// Check -cc1 command doesn't fail.
-TEST(ClangToolTest, CC1Arg) {
- FixedCompilationDatabase Compilations("/", {"-cc1"});
- llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> OverlayFileSystem(
- new llvm::vfs::OverlayFileSystem(llvm::vfs::getRealFileSystem()));
- llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem(
- new llvm::vfs::InMemoryFileSystem);
- OverlayFileSystem->pushOverlay(InMemoryFileSystem);
-
- InMemoryFileSystem->addFile(
- "a.cpp", 0, llvm::MemoryBuffer::getMemBuffer("int main() {}"));
-
- ClangTool Tool(Compilations, std::vector<std::string>(1, "a.cpp"),
- std::make_shared<PCHContainerOperations>(), OverlayFileSystem);
- std::unique_ptr<FrontendActionFactory> Action(
- newFrontendActionFactory<SyntaxOnlyAction>());
- EXPECT_EQ(0, Tool.run(Action.get()));
-}
-
// Check getClangStripDependencyFileAdjuster doesn't strip args after -MD/-MMD.
TEST(ClangToolTest, StripDependencyFileAdjuster) {
FixedCompilationDatabase Compilations("/", {"-MD", "-c", "-MMD", "-w"});