Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29332020: Noissue - Add tracing function 'ToHexLiteral()' (Closed)

Created:
Dec. 6, 2015, 6:24 p.m. by Eric
Modified:
Jan. 5, 2016, 2:38 p.m.
Reviewers:
sergei, Oleksandr
CC:
Felix Dahlke
Visibility:
Public.

Description

Noissue - Add tracing function 'ToHexLiteral()' ----- Another review depends upon this one: Noissue - Trace life cycle of 'CPluginClass' https://codereview.adblockplus.org/29332677/

Patch Set 1 #

Total comments: 11

Patch Set 2 : address comments #

Total comments: 7

Patch Set 3 : fix error messages #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -1 line) Patch
M adblockplus.gyp View 2 chunks +2 lines, -1 line 0 comments Download
M src/plugin/PluginDebug.h View 1 chunk +7 lines, -0 lines 0 comments Download
M src/plugin/PluginDebug.cpp View 1 2 2 chunks +27 lines, -0 lines 2 comments Download
A test/plugin/DebugTest.cpp View 1 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 14
Eric
Now that we have a functioning x64 build, this function has become ripe for review. ...
Dec. 6, 2015, 6:33 p.m. (2015-12-06 18:33:17 UTC) #1
sergei
https://codereview.adblockplus.org/29332020/diff/29332021/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/29332020/diff/29332021/src/plugin/PluginDebug.cpp#newcode266 src/plugin/PluginDebug.cpp:266: typedef long long voidIntegral; what about uint64_t and uint32_t ...
Dec. 7, 2015, 11:04 a.m. (2015-12-07 11:04:03 UTC) #2
Oleksandr
https://codereview.adblockplus.org/29332020/diff/29332021/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/29332020/diff/29332021/src/plugin/PluginDebug.cpp#newcode283 src/plugin/PluginDebug.cpp:283: return ss.str(); On 2015/12/07 11:04:02, sergei wrote: > Do ...
Dec. 7, 2015, noon (2015-12-07 12:00:50 UTC) #3
Eric
https://codereview.adblockplus.org/29332020/diff/29332021/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/29332020/diff/29332021/src/plugin/PluginDebug.cpp#newcode266 src/plugin/PluginDebug.cpp:266: typedef long long voidIntegral; On 2015/12/07 11:04:02, sergei wrote: ...
Dec. 7, 2015, 1:06 p.m. (2015-12-07 13:06:58 UTC) #4
Eric
https://codereview.adblockplus.org/29332020/diff/29332021/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/29332020/diff/29332021/src/plugin/PluginDebug.cpp#newcode283 src/plugin/PluginDebug.cpp:283: return ss.str(); On 2015/12/07 12:00:50, Oleksandr wrote: > Anyway, ...
Dec. 15, 2015, 4:31 p.m. (2015-12-15 16:31:16 UTC) #5
sergei
https://codereview.adblockplus.org/29332020/diff/29332039/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/29332020/diff/29332039/src/plugin/PluginDebug.cpp#newcode267 src/plugin/PluginDebug.cpp:267: typedef uint64_t voidIntegral; What about using of `uintptr_t` but ...
Dec. 21, 2015, 11:14 a.m. (2015-12-21 11:14:28 UTC) #6
Eric
https://codereview.adblockplus.org/29332020/diff/29332039/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/29332020/diff/29332039/src/plugin/PluginDebug.cpp#newcode267 src/plugin/PluginDebug.cpp:267: typedef uint64_t voidIntegral; On 2015/12/21 11:14:28, sergei wrote: > ...
Dec. 21, 2015, 12:51 p.m. (2015-12-21 12:51:59 UTC) #7
sergei
https://codereview.adblockplus.org/29332020/diff/29332039/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/29332020/diff/29332039/src/plugin/PluginDebug.cpp#newcode267 src/plugin/PluginDebug.cpp:267: typedef uint64_t voidIntegral; On 2015/12/21 12:51:59, Eric wrote: > ...
Dec. 21, 2015, 1:04 p.m. (2015-12-21 13:04:47 UTC) #8
Eric
Can we move on? https://codereview.adblockplus.org/29332020/diff/29332039/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/29332020/diff/29332039/src/plugin/PluginDebug.cpp#newcode267 src/plugin/PluginDebug.cpp:267: typedef uint64_t voidIntegral; On 2015/12/21 ...
Dec. 21, 2015, 1:20 p.m. (2015-12-21 13:20:00 UTC) #9
sergei
https://codereview.adblockplus.org/29332020/diff/29332039/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/29332020/diff/29332039/src/plugin/PluginDebug.cpp#newcode267 src/plugin/PluginDebug.cpp:267: typedef uint64_t voidIntegral; On 2015/12/21 13:19:59, Eric wrote: > ...
Dec. 21, 2015, 1:37 p.m. (2015-12-21 13:37:09 UTC) #10
Eric
On 2015/12/21 13:37:09, sergei wrote: > Less code less bugs, I think here it's proper ...
Dec. 21, 2015, 1:53 p.m. (2015-12-21 13:53:40 UTC) #11
Oleksandr
uintptr_t or not I'm fine with both. I agree this is 'bikeshedding territory' (thanks for ...
Jan. 5, 2016, 1:38 a.m. (2016-01-05 01:38:26 UTC) #12
sergei
LGTM https://codereview.adblockplus.org/29332020/diff/29332915/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/29332020/diff/29332915/src/plugin/PluginDebug.cpp#newcode277 src/plugin/PluginDebug.cpp:277: std::wstring ToHexLiteral(void const* p) How does it happen ...
Jan. 5, 2016, 10:55 a.m. (2016-01-05 10:55:27 UTC) #13
Eric
Jan. 5, 2016, 2:38 p.m. (2016-01-05 14:38:26 UTC) #14
Message was sent while issue was closed.
https://codereview.adblockplus.org/29332020/diff/29332915/src/plugin/PluginDe...
File src/plugin/PluginDebug.cpp (right):

https://codereview.adblockplus.org/29332020/diff/29332915/src/plugin/PluginDe...
src/plugin/PluginDebug.cpp:277: std::wstring ToHexLiteral(void const* p)
On 2016/01/05 10:55:27, sergei wrote:
> How does it happen that in header it's `const void*` but in cpp file it's
`void
> const* p`?

Not using copy-paste, in all likelihood. I really don't recall; I wrote this
code months ago.

Powered by Google App Engine
This is Rietveld