diff options
author | liusi <siyuan.liu@autodesk.com> | 2017-03-15 11:12:32 +0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-03-17 09:22:46 -0700 |
commit | 379eec357d2a8bdd0a9f7ad3147ab410b5e5457e (patch) | |
tree | 5df41241742434d9847df4a79a87401ddd925620 /tools | |
parent | c7b60165a61520941b0e3c18d79b89a88c60d720 (diff) | |
download | android-node-v8-379eec357d2a8bdd0a9f7ad3147ab410b5e5457e.tar.gz android-node-v8-379eec357d2a8bdd0a9f7ad3147ab410b5e5457e.tar.bz2 android-node-v8-379eec357d2a8bdd0a9f7ad3147ab410b5e5457e.zip |
build: add cpp linting to windows build
This PR adds cpp linting to windows build script. After this change,
running command `vcbuild lint` will run both cpp linting and javascript
linting on a windows machine.
PR-URL: https://github.com/nodejs/node/pull/11856
Fixes: https://github.com/nodejs/node/issues/11816
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/cpplint.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/cpplint.py b/tools/cpplint.py index b5a05f0af3..305220060c 100644 --- a/tools/cpplint.py +++ b/tools/cpplint.py @@ -1074,7 +1074,8 @@ class FileInfo(object): """ fullname = self.FullName() # XXX(bnoordhuis) Expects that cpplint.py lives in the tools/ directory. - toplevel = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) + toplevel = os.path.abspath( + os.path.join(os.path.dirname(__file__), '..')).replace('\\', '/') prefix = os.path.commonprefix([fullname, toplevel]) return fullname[len(prefix) + 1:] |