Skip to content

Commit 9dcb16b

Browse files
committed
Switch this function to the LLVM variable naming convention, to match the rest of the file.
1 parent 9a6a696 commit 9dcb16b

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -195,30 +195,30 @@ static bool parseCommand(StringRef InputString, Command &Cmd,
195195
// If no cmd, assume it's CODE.
196196
Cmd = Command::Code;
197197
}
198-
const char *pos = InputString.data();
198+
const char *Pos = InputString.data();
199199
// Skip delimiters and parse input filename (if needed).
200200
if (ClBinaryName.empty()) {
201-
pos += strspn(pos, kDelimiters);
202-
if (*pos == '"' || *pos == '\'') {
203-
char quote = *pos;
204-
pos++;
205-
const char *end = strchr(pos, quote);
206-
if (!end)
201+
Pos += strspn(Pos, kDelimiters);
202+
if (*Pos == '"' || *Pos == '\'') {
203+
char Quote = *Pos;
204+
Pos++;
205+
const char *End = strchr(Pos, Quote);
206+
if (!End)
207207
return false;
208-
ModuleName = std::string(pos, end - pos);
209-
pos = end + 1;
208+
ModuleName = std::string(Pos, End - Pos);
209+
Pos = End + 1;
210210
} else {
211-
int name_length = strcspn(pos, kDelimiters);
212-
ModuleName = std::string(pos, name_length);
213-
pos += name_length;
211+
int NameLength = strcspn(Pos, kDelimiters);
212+
ModuleName = std::string(Pos, NameLength);
213+
Pos += NameLength;
214214
}
215215
} else {
216216
ModuleName = ClBinaryName;
217217
}
218218
// Skip delimiters and parse module offset.
219-
pos += strspn(pos, kDelimiters);
220-
int offset_length = strcspn(pos, kDelimiters);
221-
return !StringRef(pos, offset_length).getAsInteger(0, ModuleOffset);
219+
Pos += strspn(Pos, kDelimiters);
220+
int OffsetLength = strcspn(Pos, kDelimiters);
221+
return !StringRef(Pos, OffsetLength).getAsInteger(0, ModuleOffset);
222222
}
223223

224224
static void symbolizeInput(StringRef InputString, LLVMSymbolizer &Symbolizer,

0 commit comments

Comments
 (0)