Skip to content

Conversation

@tambry
Copy link
Contributor

@tambry tambry commented Nov 9, 2025

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: 21041c9

…tions

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: 21041c9
@tambry tambry requested a review from Michael137 November 9, 2025 13:29
@tambry tambry self-assigned this Nov 9, 2025
@tambry tambry requested a review from JDevlieghere as a code owner November 9, 2025 13:29
@llvmbot llvmbot added the lldb label Nov 9, 2025
@llvmbot
Copy link
Member

llvmbot commented Nov 9, 2025

@llvm/pr-subscribers-lldb

Author: Raul Tambre (tambry)

Changes

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: 21041c9


Full diff: https://github.com/llvm/llvm-project/pull/167220.diff

2 Files Affected:

  • (modified) lldb/test/Shell/Recognizer/registration-unique.test (+3-3)
  • (modified) lldb/test/Shell/Recognizer/verbose_trap-objc.test (+1-1)
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

@tambry tambry merged commit d858aad into llvm:main Nov 9, 2025
12 checks passed
@tambry tambry deleted the lldb_clang_subst branch November 9, 2025 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants