mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-03-12 16:46:28 +00: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:
8
src/processor/testdata/linux_test_app.cc
vendored
8
src/processor/testdata/linux_test_app.cc
vendored
@@ -51,8 +51,8 @@
|
||||
namespace {
|
||||
|
||||
// google_breakpad::MinidumpCallback to invoke after minidump generation.
|
||||
static bool callback(const char *dump_path, const char *id,
|
||||
void *context,
|
||||
static bool callback(const char* dump_path, const char* id,
|
||||
void* context,
|
||||
bool succeeded) {
|
||||
if (succeeded) {
|
||||
printf("dump guid is %s\n", id);
|
||||
@@ -65,13 +65,13 @@ static bool callback(const char *dump_path, const char *id,
|
||||
}
|
||||
|
||||
static void CrashFunction() {
|
||||
int *i = reinterpret_cast<int*>(0x45);
|
||||
int* i = reinterpret_cast<int*>(0x45);
|
||||
*i = 5; // crash!
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
int main(int argc, char** argv) {
|
||||
google_breakpad::ExceptionHandler eh(".", NULL, callback, NULL, true);
|
||||
if (!eh.WriteMinidump()) {
|
||||
printf("Failed to generate on-demand minidump\n");
|
||||
|
||||
10
src/processor/testdata/test_app.cc
vendored
10
src/processor/testdata/test_app.cc
vendored
@@ -38,9 +38,9 @@
|
||||
|
||||
namespace {
|
||||
|
||||
static bool callback(const wchar_t *dump_path, const wchar_t *id,
|
||||
void *context, EXCEPTION_POINTERS *exinfo,
|
||||
MDRawAssertionInfo *assertion,
|
||||
static bool callback(const wchar_t* dump_path, const wchar_t* id,
|
||||
void* context, EXCEPTION_POINTERS* exinfo,
|
||||
MDRawAssertionInfo* assertion,
|
||||
bool succeeded) {
|
||||
if (succeeded) {
|
||||
printf("dump guid is %ws\n", id);
|
||||
@@ -53,13 +53,13 @@ static bool callback(const wchar_t *dump_path, const wchar_t *id,
|
||||
}
|
||||
|
||||
static void CrashFunction() {
|
||||
int *i = reinterpret_cast<int*>(0x45);
|
||||
int* i = reinterpret_cast<int*>(0x45);
|
||||
*i = 5; // crash!
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
int main(int argc, char** argv) {
|
||||
google_breakpad::ExceptionHandler eh(
|
||||
L".", NULL, callback, NULL,
|
||||
google_breakpad::ExceptionHandler::HANDLER_ALL);
|
||||
|
||||
Reference in New Issue
Block a user