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

Issue 121303005: Use std:: on symbols declared in C++-style C headers. (Closed)

Created:
6 years, 11 months ago by c.truta
Modified:
6 years, 11 months ago
CC:
v8-dev, cosmin.truta, lzolotarev_blackberry.com, Liam Quinn
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Use std:: on symbols declared in C++-style C headers. Some libraries (e.g. Dinkumware) perform strict checks on whether the symbols defined in classic C library headers (e.g. <stdio.h>), or in C++-style C library headers (e.g. <cmath>) are used correctly (respectively, in the global namespace, or in namespace std). BUG= R=danno@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=18578

Patch Set 1 #

Patch Set 2 : Including <cstdlib> in cctest/test-time.cc is no longer necessary. #

Total comments: 4

Patch Set 3 : Rebase on bleeding_edge and add missing bits in assembler.cc #

Patch Set 4 : Same as the previous CL, but with an addition to cctest/test-log.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -86 lines) Patch
M src/arm/codegen-arm.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/arm/simulator-arm.cc View 4 chunks +6 lines, -5 lines 0 comments Download
M src/assembler.cc View 1 2 5 chunks +10 lines, -6 lines 0 comments Download
M src/bignum-dtoa.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/cached-powers.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/conversions.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M src/conversions-inl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cpu.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M src/d8-readline.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/heap-inl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M src/mark-compact.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/mips/codegen-mips.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/mips/simulator-mips.cc View 5 chunks +10 lines, -8 lines 0 comments Download
M src/platform.h View 2 chunks +1 line, -2 lines 0 comments Download
M src/platform-cygwin.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-freebsd.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-macos.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-openbsd.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-posix.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/platform-solaris.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform/condition-variable.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/platform/mutex.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform/semaphore.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform/socket.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform/time.h View 1 chunk +1 line, -1 line 0 comments Download
M src/platform/time.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.cc View 1 2 8 chunks +8 lines, -8 lines 0 comments Download
M src/utils.h View 1 chunk +1 line, -1 line 0 comments Download
M src/utils/random-number-generator.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/x64/codegen-x64.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-log.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-time.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
c.truta
Hello, and thank you very much for reviewing and landing the first QNX-supporting patch for ...
6 years, 11 months ago (2014-01-06 15:38:58 UTC) #1
Benedikt Meurer
I'm fine with the change personally, but I'd like to hear other peoples opinion on ...
6 years, 11 months ago (2014-01-07 08:20:27 UTC) #2
c.truta
Thank you, Benedikt. I missed std::modf and std::ldexp because they were #ifdef'ed inside MinGW64 code, ...
6 years, 11 months ago (2014-01-07 08:59:33 UTC) #3
danno
LGTM, I'm fine with this large-scale semi-mechanical change since it solves a real, concrete problem.
6 years, 11 months ago (2014-01-13 10:05:28 UTC) #4
Benedikt Meurer
Ok, I'll land it.
6 years, 11 months ago (2014-01-13 11:19:42 UTC) #5
Benedikt Meurer
Can you rebase this on bleeding_edge?
6 years, 11 months ago (2014-01-13 11:20:20 UTC) #6
c.truta
Done, including the missing bits.
6 years, 11 months ago (2014-01-13 13:52:15 UTC) #7
c.truta
Here's a thought: would it be too much (e.g. potential overall cpplint'ing slowdown) if presubmit.py ...
6 years, 11 months ago (2014-01-13 14:06:47 UTC) #8
Sven Panne
On 2014/01/13 14:06:47, cosmin.truta wrote: > Here's a thought: would it be too much (e.g. ...
6 years, 11 months ago (2014-01-13 14:35:06 UTC) #9
c.truta
On 2014/01/13 14:35:06, Sven Panne wrote: > Doing that would require running a C++ compiler ...
6 years, 11 months ago (2014-01-13 17:23:03 UTC) #10
Benedikt Meurer
6 years, 11 months ago (2014-01-14 09:57:31 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 manually as r18578 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698