[clang] 4ad3de9 - [driver][test] Only check for unused plugin options (#91522)
via cfe-commits
cfe-commits at lists.llvm.org
Thu May 9 06:54:01 PDT 2024
Author: Jake Egan
Date: 2024-05-09T09:53:57-04:00
New Revision: 4ad3de901e8acfafdeb59406064f24a3c2ea27e8
URL: https://github.com/llvm/llvm-project/commit/4ad3de901e8acfafdeb59406064f24a3c2ea27e8
DIFF: https://github.com/llvm/llvm-project/commit/4ad3de901e8acfafdeb59406064f24a3c2ea27e8.diff
LOG: [driver][test] Only check for unused plugin options (#91522)
This fixes matching `clang: error: argument unused during compilation:
'-Werror' [-Werror,-Wunused-command-line-argument]` on AIX.
---------
Co-authored-by: Hubert Tong <hubert-reinterpretcast at users.noreply.github.com>
Added:
Modified:
clang/test/Driver/plugin-driver-args.cpp
Removed:
################################################################################
diff --git a/clang/test/Driver/plugin-driver-args.cpp b/clang/test/Driver/plugin-driver-args.cpp
index 6f0e6e2ba7525..6efd859f9d085 100644
--- a/clang/test/Driver/plugin-driver-args.cpp
+++ b/clang/test/Driver/plugin-driver-args.cpp
@@ -23,5 +23,5 @@
// Plugins are only relevant for the -cc1 phase. No warning should be raised
// when only using the assembler. See GH #88173.
-// RUN: %clang -c -fpass-plugin=bar.so -fplugin=bar.so -fplugin-arg-bar-option -Werror -x assembler %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PLUGIN-ASM
-// CHECK-PLUGIN-ASM-NOT: argument unused during compilation
+// RUN: %clang -c -fpass-plugin=bar.so -fplugin=bar.so -fplugin-arg-bar-option -Wunused-command-line-argument -x assembler %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PLUGIN-ASM
+// CHECK-PLUGIN-ASM-NOT: argument unused during compilation: '-f{{[a-z-]*plugin[^']*}}'
More information about the cfe-commits
mailing list