mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-30 19:24:45 +01:00
fix pointer style to match the style guide
We do this in a lot of places, but we're inconsistent. Normalize the code to the Google C++ style guide. Change-Id: Ic2aceab661ce8f6b993dda21b1cdf5d2198dcbbf Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2262932 Reviewed-by: Sterling Augustine <saugustine@google.com> Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
a741027533
commit
09b056975d
289 changed files with 3770 additions and 3775 deletions
|
|
@ -90,9 +90,9 @@ class SymbolParseHelper {
|
|||
// can't be const. On success, <id>, and <filename> are stored in |*index|,
|
||||
// and |*filename|. No allocation is done, |*filename| simply points inside
|
||||
// |file_line|.
|
||||
static bool ParseFile(char *file_line, // in
|
||||
long *index, // out
|
||||
char **filename); // out
|
||||
static bool ParseFile(char* file_line, // in
|
||||
long* index, // out
|
||||
char** filename); // out
|
||||
|
||||
// Parses a |function_line| declaration. Returns true on success.
|
||||
// Format: FUNC [<multiple>] <address> <size> <stack_param_size> <name>.
|
||||
|
|
@ -101,12 +101,12 @@ class SymbolParseHelper {
|
|||
// <stack_param_size>, and <name> are stored in |*is_multiple|, |*address|,
|
||||
// |*size|, |*stack_param_size|, and |*name|. No allocation is done, |*name|
|
||||
// simply points inside |function_line|.
|
||||
static bool ParseFunction(char *function_line, // in
|
||||
bool *is_multiple, // out
|
||||
uint64_t *address, // out
|
||||
uint64_t *size, // out
|
||||
long *stack_param_size, // out
|
||||
char **name); // out
|
||||
static bool ParseFunction(char* function_line, // in
|
||||
bool* is_multiple, // out
|
||||
uint64_t* address, // out
|
||||
uint64_t* size, // out
|
||||
long* stack_param_size, // out
|
||||
char** name); // out
|
||||
|
||||
// Parses a |line| declaration. Returns true on success.
|
||||
// Format: <address> <size> <line number> <source file id>
|
||||
|
|
@ -114,11 +114,11 @@ class SymbolParseHelper {
|
|||
// it can't be const. On success, <address>, <size>, <line number>, and
|
||||
// <source file id> are stored in |*address|, |*size|, |*line_number|, and
|
||||
// |*source_file|.
|
||||
static bool ParseLine(char *line_line, // in
|
||||
uint64_t *address, // out
|
||||
uint64_t *size, // out
|
||||
long *line_number, // out
|
||||
long *source_file); // out
|
||||
static bool ParseLine(char* line_line, // in
|
||||
uint64_t* address, // out
|
||||
uint64_t* size, // out
|
||||
long* line_number, // out
|
||||
long* source_file); // out
|
||||
|
||||
// Parses a |public_line| declaration. Returns true on success.
|
||||
// Format: PUBLIC [<multiple>] <address> <stack_param_size> <name>
|
||||
|
|
@ -127,15 +127,15 @@ class SymbolParseHelper {
|
|||
// <stack_param_size>, <name> are stored in |*is_multiple|, |*address|,
|
||||
// |*stack_param_size|, and |*name|. No allocation is done, |*name| simply
|
||||
// points inside |public_line|.
|
||||
static bool ParsePublicSymbol(char *public_line, // in
|
||||
bool *is_multiple, // out
|
||||
uint64_t *address, // out
|
||||
long *stack_param_size, // out
|
||||
char **name); // out
|
||||
static bool ParsePublicSymbol(char* public_line, // in
|
||||
bool* is_multiple, // out
|
||||
uint64_t* address, // out
|
||||
long* stack_param_size, // out
|
||||
char** name); // out
|
||||
|
||||
private:
|
||||
// Used for success checks after strtoull and strtol.
|
||||
static bool IsValidAfterNumber(char *after_number);
|
||||
static bool IsValidAfterNumber(char* after_number);
|
||||
|
||||
// Only allow static methods.
|
||||
SymbolParseHelper();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue