0
Commit Graph

22 Commits

Author SHA1 Message Date
Arthur Eubanks
9e9f060a4c [docs] Use git cl upload --bypass-hooks for uploading example clang-format update change
Since these touch a lot of files and it takes a long time to upload the change, plus there are lots of random findings on changed code.

Change-Id: I801219f0198286d02b208f8fac2879d968e4e8a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4764825
Auto-Submit: Arthur Eubanks <aeubanks@google.com>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1185739}
2023-08-21 08:28:29 +00:00
Arthur Eubanks
3e61437580 Mention in clang-format update docs to check the results of the new clang-format
Bug: 1286289
Change-Id: If466fe205a9ae280e0a25345a77c2f946d08b40c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3543429
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Arthur Eubanks <aeubanks@google.com>
Cr-Commit-Position: refs/heads/main@{#993851}
2022-04-19 19:48:28 +00:00
Arthur Eubanks
32c470c1fe Update clang-format update documentation
We can now use clang-format packages built in recent clang rolls.

Bug: 1286289
Change-Id: I65da136d5ba9a5f77aad3656116439dc19d00499
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3540902
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Arthur Eubanks <aeubanks@google.com>
Cr-Commit-Position: refs/heads/main@{#983572}
2022-03-22 00:22:42 +00:00
John Palmer
046f987e02 [COIL] Change chromium code search type links to use main rather than master for docs
See this doc: go/chromium-coil-change for more info
    BUG=1210385

Change-Id: I6cd8548301e360bae8e71384dbd8ef11aa6c985f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2902904
Reviewed-by: My Nguyen <myy@chromium.org>
Commit-Queue: My Nguyen <myy@chromium.org>
Auto-Submit: John Palmer <jopalmer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#885851}
2021-05-24 01:24:56 +00:00
Nico Weber
0c88b7b981 linux: Don't link clang-format against zlib
Ports https://chromium-review.googlesource.com/c/chromium/src/+/2788288
to linux. See that CL description for details.

Bug: none
Change-Id: I54badea013e97a090138f1a3a35df51579d24fd5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2790526
Commit-Queue: Nico Weber <thakis@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867203}
2021-03-29 15:23:03 +00:00
Nico Weber
f49c3c2b22 linux: Build clang-format in a sysroot
The binary shouldn't depend on what system it was built on.
We already have a sysroot for chromium, so just use that.

Built at the same revision as previously (eb85e90350e).
No expected behavior change.

Bug: none
Change-Id: Iddced88221bd8864c5a33963ca7796b0660d0732
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2790525
Auto-Submit: Nico Weber <thakis@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867197}
2021-03-29 14:58:49 +00:00
Nico Weber
95ed3a135c mac: Don't link clang-format against libz.1.dylib either
clang-format doesn't neeed libz. It's just here because LLVM's
libSupport can provide zlib functions (which clang-format doesn't
call, but other libSupport clients do).

No behavior change, slightly more tidy `otool -L` output.

Bug: none
Change-Id: Id1c0961bfb85ef4e677738f28528c2274e8cdd00
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2788288
Commit-Queue: Nico Weber <thakis@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867185}
2021-03-29 14:09:44 +00:00
Nico Weber
f092a0e554 mac: Don't link clang-format against /usr/lib/libncurses.5.4.dylib
No behavior change, just slightly tidier `otool -L` output. And matches
what we do on Linux.

Bug: none
Change-Id: I5229ad1b90ff6fcb5a8e9909ddc584a9d38b7c37
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2788030
Auto-Submit: Nico Weber <thakis@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867073}
2021-03-28 16:42:22 +00:00
Nico Weber
b807f2962a mac: Add clang-format binary that can run on arm.
Normally we prefer having a dedicated binary each for intel and arm,
but clang-format:

1. is pulled via a .sha1 file and the binary will be next to the .sha1
   file

2. the location of the binary is referenced from depot_tools

So adding a second binary would mean adding a second .sha1 file, and
then we'd have to teach depot_tools to look in both places. And
clang-format is reasonably small. So just make it a universal binary
instead.

I built clang-format at the same revision the intel-only binary
was built at (eb85e90350e), using the steps in
docs/updating_clang_format_binaries.md. The only change I made
was to also pass `'-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64'` to
cmake (need to include the quotes, else the shell uses the `;` as
statement terminator -- luckily the `../llvm` part was after it
so cmake informed me of missing this at first).

Bug: 1190868
Change-Id: I092c4b1e9d37ddd7aeb4caef7d612a8df44092f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2786107
Reviewed-by: Hans Wennborg <hans@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#866974}
2021-03-26 18:47:52 +00:00
Hans Wennborg
580bc1a62a updating_clang_format_binaries.md fix typo CXXLAGS -> CXXFLAGS
Bug: none
Change-Id: I87c0dd47fef41e9ada7dfc192bae3a1aff55897b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2124380
Commit-Queue: Hans Wennborg <hans@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Hans Wennborg <hans@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#753996}
2020-03-27 13:40:44 +00:00
Henrique Ferreiro
804beaf6dd Update docs/ to Gerrit-style git footers
Replace TBR= with Tbr:, BUG= with Bug:, TEST= with Test:, NOTRY= with
No-Try: and CC= with CC:.

Most of the footers are available here:
https://www.chromium.org/developers/contributing-code/-bug-syntax.

Bug: None
Change-Id: I79ad7cd84ceac8a1f5a08b9e87f1581c0efb31ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2089477
Reviewed-by: Andrii Shyshkalov <tandrii@google.com>
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Cr-Commit-Position: refs/heads/master@{#747851}
2020-03-06 20:56:59 +00:00
Hans Wennborg
045f4cd2e6 Update clang-format build instructions for Windows
Bug: 993206
Change-Id: I2d010d65ae5b6007b7c065dc45ae8dd2a36d1dee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2083183
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746340}
2020-03-03 13:15:18 +00:00
Tim van der Lippe
cd5f8b22cc Update clang-format build instructions for Mac
Requires the same LLVM_ENABLE_PROJECTS arg specified. I also removed the
duplication for the Ninja build instructions.

R=hans@chromium.org

Bug: 993206
Change-Id: I96d278120be62813a62b8c1f930b5ff55e2f34cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2082924
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746339}
2020-03-03 13:12:49 +00:00
Tim van der Lippe
3f8a49843d Update clang-format build instructions for Linux
Clang-format is now part of the GitHub repository at
https://github.com/llvm/llvm-project/tree/master/clang and requires the
`clang` project to be enabled in the cmake command.

R=hans@chromium.org

Bug: 993206
Change-Id: I6527fd41050550f979836b76b5b86cda2dd36d95
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2081425
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746334}
2020-03-03 12:31:24 +00:00
Glen Robertson
6170fab1cf Fix broken link in clang-format docs.
Change-Id: Ief702a3e9c02086063576532358da0eb5f12402c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1826058
Commit-Queue: Glen Robertson <glenrob@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: Glen Robertson <glenrob@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#700049}
2019-09-26 01:41:38 +00:00
Sam Maier
9b5c0a7e5b Rolling buildtools 04161ec8..7d88270d
Also updates docs on how to build clang-format.

Bug: 911708, 907181
Change-Id: I55b3d9833b030fece1eb52c3b6b53492959582b2
Reviewed-on: https://chromium-review.googlesource.com/c/1365081
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#614404}
2018-12-06 17:35:46 +00:00
thakis
b4016a52a0 fix a README link
BUG=none

Review-Url: https://codereview.chromium.org/2722543003
Cr-Commit-Position: refs/heads/master@{#453402}
2017-02-28 00:06:07 +00:00
dbeam
b71beb8843 Tweak some of the commands in the "Updating clang-format binaries" doc
R=scottmg@chromium.org
BUG=none
NOTRY=true

Review-Url: https://codereview.chromium.org/2648353009
Cr-Commit-Position: refs/heads/master@{#446245}
2017-01-26 05:52:40 +00:00
qyearsley
c0dc6f499d Fix spelling mistakes in //docs.
This includes spelling mistakes like:

accomodate->accommodate
ommited->omitted
unuseable->unusable
dependant->dependent
enviroment->environment
preceed->precede
occurrance->occurrence
occurrances->occurrences
intergrated->integrated
altough->although
appriopriate->appropriate
corresponing->corresponding
dependecies->dependencies
leniant->lenient
overriden->overridden
persisten->persistent
specifyinhg->specifying

As well as capitalization changes like:

javascript->JavaScript
Webkit->WebKit
linux->Linux

A couple other minor things:

the the -> the
trybot -> try bot
etc.

Review-Url: https://codereview.chromium.org/2551513002
Cr-Commit-Position: refs/heads/master@{#436046}
2016-12-02 22:16:53 +00:00
Nico Weber
1f3cc04a8d Remove pointless TODO comments someone added.
During the wiki->docs/*.md conversion, someone added a bunch of TODO
comments and then never acted on them.  Since having TODOs in documentation
is pretty gross and since the TODOs don't make much sense, remove them.

BUG=none
R=hans@chromium.org

Review URL: https://codereview.chromium.org/1636073003 .

Cr-Commit-Position: refs/heads/master@{#371532}
2016-01-26 17:43:47 +00:00
nodir
06cbaa02ca A batch of docs style fixes.
R=andybons@chromium.org
BUG=524256

Review URL: https://codereview.chromium.org/1319543002

Cr-Commit-Position: refs/heads/master@{#345360}
2015-08-25 17:16:40 +00:00
andybons
3322f7611b Per https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/irLAQ8f8uGk
Initial migration of wiki content over to src/docs

There will be a follow-up CL to ensure docs are following chromium’s style guide, links are fixed, etc. The file auditing was becoming too much for a single change and per Nico’s suggestion, it seems to be better to do

+ Bulk import with initial prune.
+ Follow-up CLs to clean up the documentation.

So that each CL has its own purpose.

BUG=none

Review URL: https://codereview.chromium.org/1309473002

Cr-Commit-Position: refs/heads/master@{#345186}
2015-08-24 21:39:36 +00:00