Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Issue 608593006: gn format: don't crash when there's no block on a function call (Closed)

Created:
6 years, 2 months ago by scottmg
Modified:
6 years, 2 months ago
Reviewers:
brettw
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@gn-format-list-end
Project:
chromium
Visibility:
Public.

Description

gn format: don't crash when there's no block on a function call (Child of https://codereview.chromium.org/607173002/) R=brettw@chromium.org BUG=348474 Committed: https://crrev.com/c5e6f0acd2b1e1a44f8919c85dccf21fb4ca1aaf Cr-Commit-Position: refs/heads/master@{#297228}

Patch Set 1 #

Patch Set 2 : trailing space #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
M tools/gn/command_format.cc View 1 1 chunk +6 lines, -4 lines 0 comments Download
M tools/gn/command_format_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
A tools/gn/format_test_data/018.gn View 1 chunk +3 lines, -0 lines 0 comments Download
A tools/gn/format_test_data/018.golden View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
scottmg
6 years, 2 months ago (2014-09-26 21:28:03 UTC) #1
brettw
lgtm
6 years, 2 months ago (2014-09-26 23:50:29 UTC) #2
scottmg
Thanks, need https://codereview.chromium.org/607173002/ first though. :)
6 years, 2 months ago (2014-09-27 00:29:23 UTC) #3
tfarina
This fixes this crash? Program received signal SIGSEGV, Segmentation fault. 0x00000000004dfe1b in commands::(anonymous namespace)::Printer::Block (this=0x7fffffffcc00, ...
6 years, 2 months ago (2014-09-27 00:57:55 UTC) #4
scottmg
Yeah, I was dumb, any import() will fail, because it's assuming there's a {} block ...
6 years, 2 months ago (2014-09-27 01:29:50 UTC) #5
scottmg
Committed patchset #2 (id:20001) manually as c5e6f0acd2b1e1a44f8919c85dccf21fb4ca1aaf (presubmit successful).
6 years, 2 months ago (2014-09-29 19:27:24 UTC) #6
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 19:27:24 UTC) #7
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c5e6f0acd2b1e1a44f8919c85dccf21fb4ca1aaf
Cr-Commit-Position: refs/heads/master@{#297228}

Powered by Google App Engine
This is Rietveld 408576698