mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 13:35:38 +08:00
[lldb][NFC] Give CompilerType's IsArrayType/IsVectorType/IsBlockPointerType out-parameters default values
We already do this for most functions that have out-parameters, so let's do the same here and avoid all the `nullptr, nullptr, nullptr` in every call.
This commit is contained in:
@@ -914,7 +914,7 @@ ValueObject::ReadPointedString(lldb::DataBufferSP &buffer_sp, Status &error,
|
||||
if (is_array) {
|
||||
// We have an array
|
||||
uint64_t array_size = 0;
|
||||
if (compiler_type.IsArrayType(nullptr, &array_size, nullptr)) {
|
||||
if (compiler_type.IsArrayType(nullptr, &array_size)) {
|
||||
cstr_len = array_size;
|
||||
if (cstr_len > max_length) {
|
||||
capped_data = true;
|
||||
@@ -1608,9 +1608,7 @@ ValueObject::GetTypeInfo(CompilerType *pointee_or_element_compiler_type) {
|
||||
|
||||
bool ValueObject::IsPointerType() { return GetCompilerType().IsPointerType(); }
|
||||
|
||||
bool ValueObject::IsArrayType() {
|
||||
return GetCompilerType().IsArrayType(nullptr, nullptr, nullptr);
|
||||
}
|
||||
bool ValueObject::IsArrayType() { return GetCompilerType().IsArrayType(); }
|
||||
|
||||
bool ValueObject::IsScalarType() { return GetCompilerType().IsScalarType(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user