self.runCmd("settings set target.import-std-module true")
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
deque_type = "std::deque<int>"
else:
deque_type = "std::deque<int, std::allocator<int> >"
self.runCmd("settings set target.import-std-module true")
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
deque_type = "std::deque<Foo>"
else:
deque_type = "std::deque<Foo, std::allocator<Foo> >"
self.runCmd("settings set target.import-std-module true")
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
list_type = "std::forward_list<Foo>"
else:
list_type = "std::forward_list<Foo, std::allocator<Foo> >"
self.runCmd("settings set target.import-std-module true")
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
list_type = "std::forward_list<int>"
else:
list_type = "std::forward_list<int, std::allocator<int> >"
self.runCmd("settings set target.import-std-module true")
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
list_type = "std::list<Foo>"
else:
list_type = "std::list<Foo, std::allocator<Foo> >"
self.runCmd("settings set target.import-std-module true")
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
list_type = "std::list<int>"
else:
list_type = "std::list<int, std::allocator<int> >"
ValueCheck(value="2"),
]
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
vector_type = "std::vector<int>"
dbg_vec_type = "std::vector<DbgInfoClass>"
module_vector_type = "std::vector<int>"
self.runCmd("settings set target.import-std-module true")
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
queue_type = "std::queue<C>"
else:
queue_type = "std::queue<C, std::deque<C, std::allocator<C> > >"
result_value="5")
# Test std::queue functionality with a std::list.
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
queue_type = "std::queue<C, std::list<C> >"
else:
queue_type = "std::queue<C, std::list<C, std::allocator<C> > >"
"// Set break point at this line.",
lldb.SBFileSpec("main.cpp"))
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
vec_type = "std::vector<int>"
else:
vec_type = "std::vector<int, std::allocator<int> >"
self.runCmd("settings set target.import-std-module true")
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
ptr_type = "std::unique_ptr<Foo>"
else:
ptr_type = "std::unique_ptr<Foo, std::default_delete<Foo> >"
self.runCmd("settings set target.import-std-module true")
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
ptr_type = "std::unique_ptr<int>"
else:
ptr_type = "std::unique_ptr<int, std::default_delete<int> >"
self.runCmd("settings set target.import-std-module true")
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
vector_type = "std::vector<Foo>"
else:
vector_type = "std::vector<Foo, std::allocator<Foo> >"
"// Set break point at this line.",
lldb.SBFileSpec("main.cpp"))
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
vector_type = "std::vector<int>"
vector_of_vector_type = "std::vector<std::vector<int> >"
else:
self.assertRegex(valobj.summary, r"^10( strong=1)? weak=1$")
self.assertNotEqual(valobj.child[0].unsigned, 0)
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
string_type = "std::basic_string<char>"
else:
string_type = "std::basic_string<char, std::char_traits<char>, std::allocator<char> >"
ns = self.namespace
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
expected_basic_string = '%s::basic_string<unsigned char>'%ns
else:
expected_basic_string = '%s::basic_string<unsigned char, %s::char_traits<unsigned char>, ' \
# Execute the cleanup function during test case tear down.
self.addTearDownHook(cleanup)
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
expected_basic_string = 'std::basic_string<unsigned char>'
expected_basic_string_view = 'std::basic_string_view<unsigned char>'
else:
if qualifiers:
qualifiers = ' ' + qualifiers
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
return f'std::unique_ptr<{pointee_type}>{qualifiers}'
else:
return f'std::unique_ptr<{pointee_type}, std::default_delete<{pointee_type}> >{qualifiers}'
def make_expected_basic_string_ptr(self) -> str:
- if self.expectedCompilerVersion(['>', '16.0']):
+ if self.expectedCompiler(["clang"]) and self.expectedCompilerVersion(['>', '16.0']):
return f'std::unique_ptr<std::basic_string<char> >'
else:
return 'std::unique_ptr<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, ' \