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

Issue 115756: Split nested namespaces declaration in two lines in accordance with C++ Style Guide. (Closed)

Created:
11 years, 7 months ago by Mikhail Naganov
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Split nested namespaces declaration in two lines in accordance with C++ Style Guide. This issue was raised by Brett Wilson while reviewing my changelist for readability. Craig Silverstein (one of C++ SG maintainers) confirmed that we should declare one namespace per line. Our way of namespaces closing seems not violating style guides (there is no clear agreement on it), so I left it intact. Committed: http://code.google.com/p/v8/source/detail?r=2038

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+452 lines, -226 lines) Patch
M src/accessors.h View 1 chunk +2 lines, -1 line 2 comments Download
M src/accessors.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/allocation.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/allocation.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arguments.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/assembler-arm.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/assembler-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/assembler-arm-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/builtins-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/codegen-arm.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/codegen-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/constants-arm.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/cpu-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/debug-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/disasm-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/frames-arm.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/frames-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/ic-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/jump-target-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/macro-assembler-arm.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/regexp-macro-assembler-arm.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/regexp-macro-assembler-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/register-allocator-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/simulator-arm.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/simulator-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/stub-cache-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/virtual-frame-arm.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/virtual-frame-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/assembler.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/assembler.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ast.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ast.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/bootstrapper.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/bootstrapper.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/builtins.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/builtins.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/bytecodes-irregexp.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/char-predicates.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/char-predicates-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/code.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/code-stubs.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/code-stubs.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/codegen.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/codegen.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/codegen-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/compilation-cache.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/compilation-cache.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/contexts.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/contexts.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/conversions.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/conversions.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/conversions-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/counters.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/counters.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/cpu.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/dateparser.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/dateparser.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/dateparser-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/debug.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/debug.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/debug-agent.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/debug-agent.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/disassembler.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/disassembler.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/execution.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/execution.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/factory.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/factory.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/flags.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/flags.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/frame-element.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/frames.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/frames.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/frames-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/func-name-inferrer.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/func-name-inferrer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/global-handles.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/global-handles.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/globals.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/handles.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/handles.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/handles-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/hashmap.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/hashmap.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/heap.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/heap.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/heap-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/assembler-ia32.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/assembler-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/assembler-ia32-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/builtins-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/codegen-ia32.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/codegen-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/cpu-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/debug-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/frames-ia32.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/frames-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/ic-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/jump-target-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/macro-assembler-ia32.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/regexp-macro-assembler-ia32.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/regexp-macro-assembler-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/register-allocator-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/stub-cache-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/virtual-frame-ia32.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/virtual-frame-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ic.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ic.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ic-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/interpreter-irregexp.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/interpreter-irregexp.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/jsregexp.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/jsregexp.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/jsregexp-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/jump-target.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/jump-target.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/jump-target-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/list.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/list-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/log.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/log.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/mark-compact.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/mark-compact.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/memory.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/messages.h View 2 chunks +4 lines, -2 lines 0 comments Download
M src/messages.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/natives.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/objects.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/objects.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/objects-debug.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/objects-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/oprofile-agent.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/oprofile-agent.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/parser.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/parser.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/platform.h View 2 chunks +4 lines, -2 lines 0 comments Download
M src/platform-freebsd.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/platform-linux.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/platform-macos.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/platform-nullos.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/platform-posix.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/platform-win32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/prettyprinter.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/prettyprinter.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/property.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/property.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/regexp-macro-assembler.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/regexp-macro-assembler.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/regexp-macro-assembler-irregexp.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/regexp-macro-assembler-irregexp.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/regexp-macro-assembler-irregexp-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/regexp-macro-assembler-tracer.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/regexp-macro-assembler-tracer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/regexp-stack.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/regexp-stack.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/register-allocator.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/register-allocator.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/register-allocator-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/rewriter.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/rewriter.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/scanner.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/scanner.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/scopeinfo.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/scopeinfo.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/scopes.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/scopes.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/serialize.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/serialize.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/shell.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/smart-pointer.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/snapshot.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/snapshot-common.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/snapshot-empty.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/spaces.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/spaces.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/spaces-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/string-stream.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/string-stream.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/stub-cache.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/stub-cache.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/token.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/token.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/top.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/top.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/usage-analyzer.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/usage-analyzer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/utils.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/utils.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/v8.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/v8.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/v8-counters.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/v8-counters.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/v8threads.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/variables.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/variables.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/version.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/version.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/virtual-frame.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/assembler-x64.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/assembler-x64.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M src/x64/assembler-x64-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/builtins-x64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/codegen-x64.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/codegen-x64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/cpu-x64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/debug-x64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/frames-x64.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/ic-x64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/macro-assembler-x64.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/virtual-frame-x64.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/zone.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/zone.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/zone-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-debug.cc View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-log-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-version.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Mikhail Naganov
Hi Kasper, I think Mads should review this issue, but he is on I/O. This ...
11 years, 7 months ago (2009-05-25 09:12:19 UTC) #1
Kasper Lund
Redirecting to Mads for review.
11 years, 7 months ago (2009-05-25 09:20:32 UTC) #2
Mads Ager (chromium)
LGTM. http://codereview.chromium.org/115756/diff/1/3 File src/accessors.h (right): http://codereview.chromium.org/115756/diff/1/3#newcode104 Line 104: } } // namespace v8::internal Shouldn't we ...
11 years, 7 months ago (2009-05-25 09:49:56 UTC) #3
Mikhail Naganov
11 years, 7 months ago (2009-05-25 09:59:34 UTC) #4
Thanks, Mads!

http://codereview.chromium.org/115756/diff/1/3
File src/accessors.h (right):

http://codereview.chromium.org/115756/diff/1/3#newcode104
Line 104: } }  // namespace v8::internal
On 2009/05/25 09:49:56, Mads Ager wrote:
> Shouldn't we fix this as well or is it usual to have these on the same line?
> 
> }  // namespace internal
> }  // namespace v8
> 

Craig Silverstein said that there's no agreement on this part yet. I've checked
Google's codebase---both 2-line and 1-line styles are used, so our style is OK
(at least for now). Personally, I like it more that 2-line style.

Powered by Google App Engine
This is Rietveld 408576698