rewrite_to_chrome_style: reference to FilePrintStream::Print not rewritten |
||
Issue description
After running the tool across WTF, I had to manually apply this fixup patch:
diff --git a/third_party/WebKit/Source/wtf/DataLog.h b/third_party/WebKit/Source/wtf/DataLog.h
index 15f0153..41af540 100644
--- a/third_party/WebKit/Source/wtf/DataLog.h
+++ b/third_party/WebKit/Source/wtf/DataLog.h
@@ -44,7 +44,7 @@ WTF_EXPORT void DataLogFString(const char*);
template<typename... T>
void DataLog(const T&... values)
{
- DataFile().print(values...);
+ DataFile().Print(values...);
}
} // namespace WTF
,
Mar 28 2016
Does this work if you run it on everything? Maybe this is called from outside WTF? We could add a call in a unittest?
,
Mar 28 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/663008c70f0e5d9bfc95db70aa703432847f23ad commit 663008c70f0e5d9bfc95db70aa703432847f23ad Author: dcheng <dcheng@chromium.org> Date: Mon Mar 28 20:36:44 2016 rewrite_to_chrome_style: improve template rewrite handling - Handles UnresolvedMemberExprs to rewrite unresolved references to methods in a member context. - Use the correct SourceLocation when rewriting UnresolvedLookupExprs to avoid clobbering nested name specifiers. BUG= 598140 , 598142 R=danakj@chromium.org Review URL: https://codereview.chromium.org/1838713002 Cr-Commit-Position: refs/heads/master@{#383554} [modify] https://crrev.com/663008c70f0e5d9bfc95db70aa703432847f23ad/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp [modify] https://crrev.com/663008c70f0e5d9bfc95db70aa703432847f23ad/tools/clang/rewrite_to_chrome_style/tests/template-expected.cc [modify] https://crrev.com/663008c70f0e5d9bfc95db70aa703432847f23ad/tools/clang/rewrite_to_chrome_style/tests/template-original.cc
,
Mar 28 2016
To clarify, I had a custom build where I changed in_blink_namespace to only match WTF, and then ran it over the entire codebase. It still reproed in that case. |
||
►
Sign in to add a comment |
||
Comment 1 by dcheng@chromium.org
, Mar 26 2016