Skip to content

Truly independent web browser

Tests/ClangPlugins: Run the GC::Root field test with its plugin option

Shannon Booth5aec3592d188
diff --git a/Tests/ClangPlugins/CMakeLists.txt b/Tests/ClangPlugins/CMakeLists.txt
index 542b170375a..f8d5f1a7d81 100644
--- a/Tests/ClangPlugins/CMakeLists.txt
+++ b/Tests/ClangPlugins/CMakeLists.txt
@@ -12,10 +12,6 @@ list(APPEND CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS
-Wno-user-defined-literals
)
-# Ensure we always check for invalid function field types regardless of the value of ENABLE_CLANG_PLUGINS_INVALID_FUNCTION_MEMBERS
-# FIXME: Enabling this with lit and llvm 18 seems to not work as expected
-# list(APPEND CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS -fplugin-arg-libjs_gc_scanner-detect-invalid-function-members)
-
get_property(CLANG_PLUGINS_INCLUDE_DIRECTORIES TARGET AK PROPERTY INCLUDE_DIRECTORIES)
configure_lit_site_cfg(
diff --git a/Tests/ClangPlugins/LibJSGCTests/strong_root_fields_in_gc_allocated_types.cpp b/Tests/ClangPlugins/LibJSGCTests/strong_root_fields_in_gc_allocated_types.cpp
index 74497cf776e..bfa85da9c85 100644
--- a/Tests/ClangPlugins/LibJSGCTests/strong_root_fields_in_gc_allocated_types.cpp
+++ b/Tests/ClangPlugins/LibJSGCTests/strong_root_fields_in_gc_allocated_types.cpp
@@ -4,12 +4,10 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-// RUN: %clang++ -Xclang -verify %plugin_opts% -c %s -o %t 2>&1
-// FIXME: Un-XFAIL this when re-enabling the plugin option in the Tests CMakeLists.txt
-// XFAIL: true
+// RUN: %clang++ -Xclang -verify %plugin_opts% -fplugin-arg-libjs_gc_scanner-detect-invalid-function-members -c %s -o %t 2>&1
+#include <LibGC/Root.h>
#include <LibJS/Heap/Cell.h>
-#include <LibJS/Heap/Handle.h>
class CellClass : JS::Cell {
GC_CELL(CellClass, JS::Cell);