From 09b056975dacd1f0f815ad820b6dc9913b0118a3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger <vapier@chromium.org> Date: Tue, 23 Jun 2020 18:55:43 -0400 Subject: 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> --- src/tools/windows/dump_syms/dump_syms.cc | 2 +- src/tools/windows/dump_syms/dump_syms_unittest.cc | 4 ++-- src/tools/windows/dump_syms/testdata/dump_syms_regtest.cc | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/tools/windows/dump_syms') diff --git a/src/tools/windows/dump_syms/dump_syms.cc b/src/tools/windows/dump_syms/dump_syms.cc index 5b7d1777..1b1797dc 100644 --- a/src/tools/windows/dump_syms/dump_syms.cc +++ b/src/tools/windows/dump_syms/dump_syms.cc @@ -43,7 +43,7 @@ using google_breakpad::PDBSourceLineWriter; using google_breakpad::PESourceLineWriter; using std::unique_ptr; -int wmain(int argc, wchar_t **argv) { +int wmain(int argc, wchar_t** argv) { bool success; if (argc == 2) { PDBSourceLineWriter pdb_writer; diff --git a/src/tools/windows/dump_syms/dump_syms_unittest.cc b/src/tools/windows/dump_syms/dump_syms_unittest.cc index 766e5c09..494b7791 100644 --- a/src/tools/windows/dump_syms/dump_syms_unittest.cc +++ b/src/tools/windows/dump_syms/dump_syms_unittest.cc @@ -166,7 +166,7 @@ void GetFileContents(const std::wstring& path, std::string* content) { } } -class DumpSymsRegressionTest : public testing::TestWithParam<const wchar_t *> { +class DumpSymsRegressionTest : public testing::TestWithParam<const wchar_t*> { public: virtual void SetUp() { std::wstring self_dir; @@ -181,7 +181,7 @@ class DumpSymsRegressionTest : public testing::TestWithParam<const wchar_t *> { std::wstring testdata_dir; }; -class DumpSymsPEOnlyRegressionTest : public testing::TestWithParam<const wchar_t *> { +class DumpSymsPEOnlyRegressionTest : public testing::TestWithParam<const wchar_t*> { public: virtual void SetUp() { std::wstring self_dir; diff --git a/src/tools/windows/dump_syms/testdata/dump_syms_regtest.cc b/src/tools/windows/dump_syms/testdata/dump_syms_regtest.cc index e8efbeb8..de6109fe 100644 --- a/src/tools/windows/dump_syms/testdata/dump_syms_regtest.cc +++ b/src/tools/windows/dump_syms/testdata/dump_syms_regtest.cc @@ -48,7 +48,7 @@ class C { void f() { member_ = g(); } virtual int g() { return 2; } - static char* h(const C &that) { return 0; } + static char* h(const C& that) { return 0; } private: int member_; @@ -60,12 +60,12 @@ static int i() { } // namespace google_breakpad -int main(int argc, char **argv) { +int main(int argc, char** argv) { google_breakpad::C object; object.set_member(google_breakpad::i()); object.f(); int value = object.g(); - char *nothing = object.h(object); + char* nothing = object.h(object); return 0; } -- cgit v1.2.1