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

Issue 7824047: clang style plugin: Don't try to figure out src root. (Closed)

Created:
9 years, 3 months ago by Nico
Modified:
8 years, 11 months ago
Reviewers:
hans, Elliot Glaysher
CC:
chromium-reviews, pam+watch_chromium.org, hamaji
Visibility:
Public.

Description

clang style plugin: Don't try to figure out src root. Instead, just ignore all files that have a banned directory anywhere in the path. This basically replaces patch set 2 with patch set 1 from http://codereview.chromium.org/6577011 . The motivation is that a) build/common.gypi doesn't exist when building in goma b) there are several build/common.gypi files in the tree. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99418

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -64 lines) Patch
M tools/clang/plugins/ChromeClassTester.h View 2 chunks +0 lines, -3 lines 0 comments Download
M tools/clang/plugins/ChromeClassTester.cpp View 2 chunks +20 lines, -61 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Nico
You were right all along!
9 years, 3 months ago (2011-09-02 18:07:30 UTC) #1
Elliot Glaysher
On 2011/09/02 18:07:30, Nico wrote: > You were right all along! Wheeee! also lgtm.
9 years, 3 months ago (2011-09-02 18:11:58 UTC) #2
Nico
hamaji: FYI
9 years, 3 months ago (2011-09-02 19:06:55 UTC) #3
hans
http://codereview.chromium.org/7824047/diff/1/tools/clang/plugins/ChromeClassTester.cpp File tools/clang/plugins/ChromeClassTester.cpp (right): http://codereview.chromium.org/7824047/diff/1/tools/clang/plugins/ChromeClassTester.cpp#newcode46 tools/clang/plugins/ChromeClassTester.cpp:46: banned_directories_.push_back("usr/"); It's not uncommon to have Chromium checked out ...
8 years, 11 months ago (2012-01-16 11:14:20 UTC) #4
Nico
8 years, 11 months ago (2012-01-16 16:20:14 UTC) #5
> It's not uncommon to have Chromium checked out in
> /usr/local/something/something. This, combined with matching against the full
> path, seems to make the style checker ignore everything?

Yes, that's right. There's a gnarly hack a bit further down that strips
"/usr/local/google", so at least googlers won't hit that (if they follow the
checkout instructions I read years ago, don't know if that's still the
recommended directory). If you can think of a better way to fix this, I'm all
ears :-)

Powered by Google App Engine
This is Rietveld 408576698