[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:
Raphael Isemann
2021-02-23 10:38:48 +01:00
parent 16ede0956c
commit 03310c1e95
7 changed files with 18 additions and 17 deletions

View File

@@ -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(); }