File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
source/Plugins/Language/CPlusPlus
test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1740,7 +1740,7 @@ lldb::TypeCategoryImplSP CPlusPlusLanguage::GetFormatters() {
1740
1740
// NOTE: the libstdcpp formatters are loaded after libcxx formatters
1741
1741
// because we don't want to the libcxx formatters to match the potential
1742
1742
// `__debug` inline namespace that libstdcpp may use. since LLDB
1743
- // priorities the last loaded matching formatter.
1743
+ // prioritizes the last loaded matching formatter.
1744
1744
LoadLibCxxFormatters (g_category);
1745
1745
LoadLibStdcppFormatters (g_category);
1746
1746
LoadSystemFormatters (g_category);
Original file line number Diff line number Diff line change @@ -19,13 +19,12 @@ def setUp(self):
19
19
@add_test_categories (["libstdcxx" ])
20
20
@expectedFailureAll (bugnumber = "llvm.org/pr50861" , compiler = "gcc" )
21
21
def test_with_run_command (self ):
22
- build_args = {"EXE" : "a.out" }
23
- self .with_run_command ("" , build_args )
22
+ self .with_run_command ("" , {})
24
23
25
24
@add_test_categories (["libstdcxx" ])
26
25
@expectedFailureAll (bugnumber = "llvm.org/pr50861" , compiler = "gcc" )
27
26
def test_with_run_command_debug (self ):
28
- build_args = {"CXXFLAGS " : "-D_GLIBCXX_DEBUG" , "EXE" : "debug_a.out " }
27
+ build_args = {"CXXFLAGS_EXTRAS " : "-D_GLIBCXX_DEBUG" }
29
28
self .with_run_command ("__debug::" , build_args )
30
29
31
30
def with_run_command (self , namespace : str , dictionary : dict ):
@@ -64,7 +63,6 @@ def cleanup():
64
63
65
64
match = f"std::{ namespace } map<"
66
65
self .runCmd (
67
- 'type summary add -x "std::map<" --summary-string "map has ${svar%#} items" -e'
68
66
f'type summary add -x "{ match } " --summary-string "map has ${{svar%#}} items" -e'
69
67
)
70
68
Original file line number Diff line number Diff line change @@ -16,20 +16,20 @@ def setUp(self):
16
16
# Find the line number to break at.
17
17
self .line = line_number ("main.cpp" , "// Set break point at this line." )
18
18
19
+ @skip
19
20
@add_test_categories (["libstdcxx" ])
20
21
def test_with_run_command (self ):
21
22
self .with_run_command ({})
22
23
23
24
@add_test_categories (["libstdcxx" ])
24
25
def test_with_run_command_debug (self ):
25
- build_args = {"CXXFLAGS " : "-D_GLIBCXX_DEBUG" }
26
+ build_args = {"CXXFLAGS_EXTRAS " : "-D_GLIBCXX_DEBUG" }
26
27
self .with_run_command (build_args )
27
28
28
29
def with_run_command (self , dictionary : dict ):
29
30
"""Test that that file and class static variables display correctly."""
30
31
self .build (dictionary = dictionary )
31
32
artifact_name = dictionary .get ("EXE" , "a.out" )
32
- self .runCmd ("file " + self .getBuildArtifact (artifact_name ), CURRENT_EXECUTABLE_SET )
33
33
self .runCmd (
34
34
"file " + self .getBuildArtifact (artifact_name ), CURRENT_EXECUTABLE_SET
35
35
)
Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ def test_with_run_command(self):
24
24
@add_test_categories (["libstdcxx" ])
25
25
@expectedFailureAll (bugnumber = "llvm.org/pr50861" , compiler = "gcc" )
26
26
def test_with_run_command_debug (self ):
27
- build_args = {"CXXFLAGS " : "-D_GLIBCXX_DEBUG" }
27
+ build_args = {"CXXFLAGS_EXTRAS " : "-D_GLIBCXX_DEBUG" }
28
28
self .with_run_command (build_args )
29
29
30
30
def with_run_command (self , dictionary : dict ):
31
31
"""Test that that file and class static variables display correctly."""
32
32
self .build (dictionary = dictionary )
33
33
artifact_name = "a.out"
34
- self .runCmd ("file " + self .getBuildArtifact (artifact_name ), CURRENT_EXECUTABLE_SET )
34
+ self .runCmd (
35
+ "file " + self .getBuildArtifact (artifact_name ), CURRENT_EXECUTABLE_SET
36
+ )
35
37
36
38
lldbutil .run_break_set_by_source_regexp (self , "Set break point at this line." )
37
39
You can’t perform that action at this time.
0 commit comments