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

Issue 1072203002: Build the Clang plugin on Windows. (Closed)

Created:
5 years, 8 months ago by dcheng
Modified:
5 years, 8 months ago
Reviewers:
hans, Nico
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Build the Clang plugin on Windows. This also includes several fixes for the plugin logic on Windows: - The banned directory check normalizes path separators. - The banned directory check now returns true for files that are considered system headers. - Diagnostics from the plugin are always reported as warnings. BUG=467287 R=thakis@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/26ba172e8543b9029f320600f3aeced40028ff20 Committed: https://chromium.googlesource.com/chromium/src/+/5b5d1269ade9eeb50875b20570ef3e0d8c5d95fb Committed: https://chromium.googlesource.com/chromium/src/+/328935a86e8f684bc7187c365b2e9639ddb65dc2

Patch Set 1 #

Patch Set 2 : Fix bad indent #

Patch Set 3 : . #

Patch Set 4 : Win path checking and comments #

Total comments: 2

Patch Set 5 : isInSystemHeader #

Total comments: 4

Patch Set 6 : Address comments #

Patch Set 7 : Rebase #

Patch Set 8 : Really rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -14 lines) Patch
M tools/clang/plugins/CMakeLists.txt View 1 2 3 4 5 7 1 chunk +30 lines, -12 lines 0 comments Download
M tools/clang/plugins/ChromeClassTester.cpp View 1 2 3 4 5 7 4 chunks +10 lines, -1 line 0 comments Download
M tools/clang/plugins/FindBadConstructsConsumer.cpp View 1 2 3 4 5 7 1 chunk +6 lines, -0 lines 0 comments Download
M tools/clang/scripts/update.py View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (1 generated)
dcheng
Bwhahahahaha. The initial approach I tried was building the plugin as a static library and ...
5 years, 8 months ago (2015-04-09 21:15:43 UTC) #2
Nico
Sooo…if we do this on mac/linux too, we can set the thinger that hides most ...
5 years, 8 months ago (2015-04-09 21:26:03 UTC) #3
hans
On 2015/04/09 21:15:43, dcheng wrote: > Bwhahahahaha. > > The initial approach I tried was ...
5 years, 8 months ago (2015-04-09 22:28:37 UTC) #4
dcheng
On 2015/04/09 at 21:26:03, thakis wrote: > Sooo…if we do this on mac/linux too, we ...
5 years, 8 months ago (2015-04-10 00:55:50 UTC) #5
dcheng
On 2015/04/10 at 00:55:50, dcheng wrote: > On 2015/04/09 at 21:26:03, thakis wrote: > > ...
5 years, 8 months ago (2015-04-10 00:57:16 UTC) #6
Nico
That was without goma, and with a build where out/Debug/build.ninja pointed to your local clang, ...
5 years, 8 months ago (2015-04-10 00:59:44 UTC) #7
dcheng
On 2015/04/10 at 00:59:44, thakis wrote: > That was without goma, and with a build ...
5 years, 8 months ago (2015-04-10 01:01:22 UTC) #8
dcheng
PTAL. As far as I can tell, Windows and non-Windows builds still work fine. I ...
5 years, 8 months ago (2015-04-10 17:45:00 UTC) #9
Nico
https://codereview.chromium.org/1072203002/diff/60001/tools/clang/plugins/ChromeClassTester.cpp File tools/clang/plugins/ChromeClassTester.cpp (right): https://codereview.chromium.org/1072203002/diff/60001/tools/clang/plugins/ChromeClassTester.cpp#newcode148 tools/clang/plugins/ChromeClassTester.cpp:148: banned_directories_.emplace_back("/win_toolchain/"); clang-cl should konw that stuff in win_toolchain are ...
5 years, 8 months ago (2015-04-11 23:32:31 UTC) #10
dcheng
https://codereview.chromium.org/1072203002/diff/60001/tools/clang/plugins/ChromeClassTester.cpp File tools/clang/plugins/ChromeClassTester.cpp (right): https://codereview.chromium.org/1072203002/diff/60001/tools/clang/plugins/ChromeClassTester.cpp#newcode148 tools/clang/plugins/ChromeClassTester.cpp:148: banned_directories_.emplace_back("/win_toolchain/"); On 2015/04/11 23:32:31, Nico (away until Wed Apr ...
5 years, 8 months ago (2015-04-12 03:28:58 UTC) #11
Nico
lgtm tools/clang/blink_gc_plugin will happen in a different CL, I assume? https://codereview.chromium.org/1072203002/diff/80001/tools/clang/plugins/CMakeLists.txt File tools/clang/plugins/CMakeLists.txt (right): https://codereview.chromium.org/1072203002/diff/80001/tools/clang/plugins/CMakeLists.txt#newcode27 ...
5 years, 8 months ago (2015-04-12 04:19:14 UTC) #12
dcheng
https://codereview.chromium.org/1072203002/diff/80001/tools/clang/plugins/CMakeLists.txt File tools/clang/plugins/CMakeLists.txt (right): https://codereview.chromium.org/1072203002/diff/80001/tools/clang/plugins/CMakeLists.txt#newcode27 tools/clang/plugins/CMakeLists.txt:27: cr_add_test(plugins_test On 2015/04/12 04:19:14, Nico (away until Wed Apr ...
5 years, 8 months ago (2015-04-12 06:29:30 UTC) #13
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/26ba172e8543b9029f320600f3aeced40028ff20 Cr-Commit-Position: refs/heads/master@{#324793}
5 years, 8 months ago (2015-04-12 06:38:57 UTC) #14
dcheng
Committed patchset #6 (id:100001) manually as 26ba172e8543b9029f320600f3aeced40028ff20 (presubmit successful).
5 years, 8 months ago (2015-04-12 06:39:15 UTC) #15
dcheng
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/1070353003/ by dcheng@chromium.org. ...
5 years, 8 months ago (2015-04-12 07:33:00 UTC) #16
hans
On 2015/04/12 07:33:00, dcheng wrote: > A revert of this CL (patchset #6 id:100001) has ...
5 years, 8 months ago (2015-04-12 15:24:07 UTC) #17
dcheng
On 2015/04/12 at 15:24:07, hans wrote: > On 2015/04/12 07:33:00, dcheng wrote: > > A ...
5 years, 8 months ago (2015-04-13 18:33:33 UTC) #18
Nico
I think you can try relanding this.
5 years, 8 months ago (2015-04-16 00:15:10 UTC) #19
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/5b5d1269ade9eeb50875b20570ef3e0d8c5d95fb Cr-Commit-Position: refs/heads/master@{#325365}
5 years, 8 months ago (2015-04-16 01:09:53 UTC) #20
dcheng
Committed patchset #7 (id:120001) manually as 5b5d1269ade9eeb50875b20570ef3e0d8c5d95fb (presubmit successful).
5 years, 8 months ago (2015-04-16 01:10:05 UTC) #21
dcheng
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/1087423003/ by dcheng@chromium.org. ...
5 years, 8 months ago (2015-04-16 01:38:32 UTC) #22
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/328935a86e8f684bc7187c365b2e9639ddb65dc2 Cr-Commit-Position: refs/heads/master@{#325373}
5 years, 8 months ago (2015-04-16 01:49:21 UTC) #23
dcheng
5 years, 8 months ago (2015-04-16 01:49:35 UTC) #24
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as
328935a86e8f684bc7187c365b2e9639ddb65dc2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698