[Lldb-commits] [clang] [lldb] [clang] Honor ShowLevel for diagnostics without a source location (PR #203520)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 12 06:10:38 PDT 2026


================
@@ -95,4 +96,29 @@ TEST(TextDiagnostic, ShowLine) {
   EXPECT_EQ("main.cpp:1: warning: message\n", PrintDiag(DiagOpts, Loc));
 }
 
+// Parameterized fixture for ShowLevel tests: bool param = ShowLevel value.
+struct ShowLevelNoLocationTest : public ::testing::TestWithParam<bool> {};
----------------
Michael137 wrote:

```suggestion
struct ShowLevelNoLocationTest : public ::testing::TestWithParam<bool /* ShowLevel */> {};
```

https://github.com/llvm/llvm-project/pull/203520


More information about the lldb-commits mailing list