From 9dcb16bc9aff676f45b530398dc75bd52526b0b5 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 30 Mar 2020 20:14:02 -0700 Subject: [PATCH] Switch this function to the LLVM variable naming convention, to match the rest of the file. --- llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp b/llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp index d4de443..8d46bd2 100644 --- a/llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp +++ b/llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp @@ -195,30 +195,30 @@ static bool parseCommand(StringRef InputString, Command &Cmd, // If no cmd, assume it's CODE. Cmd = Command::Code; } - const char *pos = InputString.data(); + const char *Pos = InputString.data(); // Skip delimiters and parse input filename (if needed). if (ClBinaryName.empty()) { - pos += strspn(pos, kDelimiters); - if (*pos == '"' || *pos == '\'') { - char quote = *pos; - pos++; - const char *end = strchr(pos, quote); - if (!end) + Pos += strspn(Pos, kDelimiters); + if (*Pos == '"' || *Pos == '\'') { + char Quote = *Pos; + Pos++; + const char *End = strchr(Pos, Quote); + if (!End) return false; - ModuleName = std::string(pos, end - pos); - pos = end + 1; + ModuleName = std::string(Pos, End - Pos); + Pos = End + 1; } else { - int name_length = strcspn(pos, kDelimiters); - ModuleName = std::string(pos, name_length); - pos += name_length; + int NameLength = strcspn(Pos, kDelimiters); + ModuleName = std::string(Pos, NameLength); + Pos += NameLength; } } else { ModuleName = ClBinaryName; } // Skip delimiters and parse module offset. - pos += strspn(pos, kDelimiters); - int offset_length = strcspn(pos, kDelimiters); - return !StringRef(pos, offset_length).getAsInteger(0, ModuleOffset); + Pos += strspn(Pos, kDelimiters); + int OffsetLength = strcspn(Pos, kDelimiters); + return !StringRef(Pos, OffsetLength).getAsInteger(0, ModuleOffset); } static void symbolizeInput(StringRef InputString, LLVMSymbolizer &Symbolizer, -- 2.7.4