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

Side by Side Diff: tools/buildtools/linux64/clang-format

Issue 2858873005: [infra] Roll clang to match the version used by Flutter (Closed)
Patch Set: Fix Mac Android build Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/build.py ('k') | tools/buildtools/mac/clang-format » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
aam 2017/05/09 01:49:17 When invoked via 'git cl format' this script won't
2 # Copyright 2017 The Dart project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """Forwards to the clang-format for the Linux toolchain."""
7
8 import os
9 import subprocess
10 import sys
11
12 DART_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
aam 2017/05/09 01:23:52 DART_ROOT here actually points to dart-sdk/sdk/bui
13 TOOLCHAIN = os.path.join(DART_ROOT, 'buildtools', 'toolchain')
14 CLANG_FORMAT = os.path.join(TOOLCHAIN, 'clang+llvm-x86_64-linux', 'bin', 'clang- format')
15
16 def main(argv):
17 return subprocess.call([CLANG_FORMAT] + argv[1:])
18
19 if __name__ == '__main__':
20 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « tools/build.py ('k') | tools/buildtools/mac/clang-format » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698