• Home
Name Date Size #Lines LOC

..--

bin/03-May-2024-33

OWNERSD03-May-202440 32

README.chromiumD03-May-2024354 1613

README.txtD03-May-20241.2 KiB2920

README.chromium

1Name: clang-format
2Short Name: clang-format
3URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-format/
4Version: 3.5
5Date: 11 April 2014
6Revision: See DEPS
7License: University of Illinois/NCSA Open Source License
8License File: NOT_SHIPPED
9Security Critical: No
10
11Description:
12A tool for formatting C++ code to style.
13
14Local Modifications:
15None
16

README.txt

1This folder contains clang-format binaries. The binaries will be automatically
2downloaded from Google Storage by gclient runhooks for the current platform.
3
4For a walkthrough on how to maintain these binaries:
5  https://code.google.com/p/chromium/wiki/UpdatingClangFormatBinaries
6
7To upload a file:
8  python ~/depot_tools/upload_to_google_storage.py -b chromium-clang-format <FILENAME>
9
10To download a file given a .sha1 file:
11  python ~/depot_tools/download_from_google_storage.py -b chromium-clang-format -s <FILENAME>.sha1
12
13List the contents of GN's Google Storage bucket:
14  python ~/depot_tools/third_party/gsutil/gsutil ls gs://chromium-clang-format/
15
16To initialize gsutil's credentials:
17  python ~/depot_tools/third_party/gsutil/gsutil config
18
19  That will give a URL which you should log into with your web browser. The
20  username should be the one that is on the ACL for the "chromium-clang-format"
21  bucket (probably your @google.com address). Contact the build team for help
22  getting access if necessary.
23
24  Copy the code back to the command line util. Ignore the project ID (it's OK
25  to just leave blank when prompted).
26
27gsutil documentation:
28  https://developers.google.com/storage/docs/gsutil
29