Commit 9b24dad6 authored by Raphael Isemann's avatar Raphael Isemann
Browse files

[lldb][NFC] Make some checks more readable in Variable::PrivateAutoComplete

parent f323ab91
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -705,9 +705,9 @@ static void PrivateAutoComplete(
            if (!var_sp)
              continue;

            const char *variable_name = var_sp->GetName().AsCString();
            if (strstr(variable_name, token.c_str()) == variable_name) {
              if (strcmp(variable_name, token.c_str()) == 0) {
            llvm::StringRef variable_name = var_sp->GetName().GetStringRef();
            if (variable_name.startswith(token)) {
              if (variable_name == token) {
                Type *variable_type = var_sp->GetType();
                if (variable_type) {
                  CompilerType variable_compiler_type(