[Lldb-commits] [lldb] [NFCI][lldb][test][Recognizer] Fix mismatched C/C++ frontend subtitutions (PR #167220)

Raul Tambre via lldb-commits lldb-commits at lists.llvm.org
Sun Nov 9 05:29:44 PST 2025


https://github.com/tambry created https://github.com/llvm/llvm-project/pull/167220

The explicit language specifications for Objective C/C++ don't seem necessary either so I've removed them too.

I found these by using Clang frontend configuration files containing language-specific options for both C and C++ (e.g. `-std=c2y` and `-std=c++26`).

Prior-art: 21041c92925faf529717d96279b6d8f20b17c70c

>From fe9584c3239ea6bf4b1b4d5957e1e57530299485 Mon Sep 17 00:00:00 2001
From: Raul Tambre <raul at tambre.ee>
Date: Sun, 9 Nov 2025 15:25:18 +0200
Subject: [PATCH] [NFCI][lldb][test][Recognizer] Fix mismatched C/C++ frontend
 substitutions

The explicit language specifications for Objective C/C++ don't seem necessary either so I've removed
them too.

I found these by using Clang frontend configuration files containing language-specific options for
both C and C++ (e.g. `-std=c2y` and `-std=c++26`).

Prior-art: 21041c92925faf529717d96279b6d8f20b17c70c
---
 lldb/test/Shell/Recognizer/registration-unique.test | 6 +++---
 lldb/test/Shell/Recognizer/verbose_trap-objc.test   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lldb/test/Shell/Recognizer/registration-unique.test b/lldb/test/Shell/Recognizer/registration-unique.test
index 34400d9a27575..e9641923faedf 100644
--- a/lldb/test/Shell/Recognizer/registration-unique.test
+++ b/lldb/test/Shell/Recognizer/registration-unique.test
@@ -5,16 +5,16 @@
 
 # RUN: split-file %s %t
 
-# RUN: %clang_host %t/main.cpp -g -o %t/cpp.out
+# RUN: %clangxx_host %t/main.cpp -g -o %t/cpp.out
 # RUN: %lldb -b -s %t/commands.input %t/cpp.out | FileCheck %s
 
-# RUN: %clang_host -x objective-c++ %t/main.mm -g -o %t/objcxx.out
+# RUN: %clangxx_host %t/main.mm -g -o %t/objcxx.out
 # RUN: %lldb -b -s %t/commands.input %t/objcxx.out | FileCheck %s
 
 # RUN: %clang_host %t/main.c -g -o %t/c.out
 # RUN: %lldb -b -s %t/commands.input %t/c.out | FileCheck %s
 
-# RUN: %clang_host -x objective-c %t/main.m -g -o %t/objc.out
+# RUN: %clang_host %t/main.m -g -o %t/objc.out
 # RUN: %lldb -b -s %t/commands.input %t/objc.out | FileCheck %s
 
 #--- main.m
diff --git a/lldb/test/Shell/Recognizer/verbose_trap-objc.test b/lldb/test/Shell/Recognizer/verbose_trap-objc.test
index 789e79c9542c5..0dbb04e0fd671 100644
--- a/lldb/test/Shell/Recognizer/verbose_trap-objc.test
+++ b/lldb/test/Shell/Recognizer/verbose_trap-objc.test
@@ -1,6 +1,6 @@
 # REQUIRES: system-darwin
 #
-# RUN: %clangxx_host -x objective-c -g %S/Inputs/verbose_trap.m -o %t.out
+# RUN: %clang_host -g %S/Inputs/verbose_trap.m -o %t.out
 # RUN: %lldb -b -s %s %t.out | FileCheck %s
 
 run



More information about the lldb-commits mailing list