Skip to content

Commit 49396f8

Browse files
committed
README
1 parent fb8a352 commit 49396f8

File tree

1 file changed

+43
-17
lines changed

1 file changed

+43
-17
lines changed

README.md

Lines changed: 43 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,60 @@
33
# asdf-clang-tools [![Build](https://github.com/amrox/asdf-clang-tools/actions/workflows/build.yml/badge.svg)](https://github.com/amrox/asdf-clang-tools/actions/workflows/build.yml) [![Lint](https://github.com/amrox/asdf-clang-tools/actions/workflows/lint.yml/badge.svg)](https://github.com/amrox/asdf-clang-tools/actions/workflows/lint.yml)
44

55

6-
[clang-tools](https://github.com/amrox/clang-tools) plugin for the [asdf version manager](https://asdf-vm.com).
6+
[clang-tools](https://github.com/muttleyxd/clang-tools-static-binaries) plugin for the [asdf version manager](https://asdf-vm.com).
77

88
</div>
99

10-
# Contents
10+
# Overview
1111

12-
- [Dependencies](#dependencies)
13-
- [Install](#install)
14-
- [Why?](#why)
15-
- [Contributing](#contributing)
16-
- [License](#license)
12+
This is an asdf plugin for installing several clang tools:
13+
14+
- clang-format
15+
- clang-query
16+
- clang-tidy
17+
18+
This plugin uses the pre-compiled binaries from the very handy [muttleyxd/clang-tools-static-binaries](https://github.com/muttleyxd/clang-tools-static-binaries) repo.
19+
20+
## Caveats
21+
22+
- Again, the source for these binaries is currently [muttleyxd/clang-tools-static-binaries](https://github.com/muttleyxd/clang-tools-static-binaries). Please make sure you trust that repository.
23+
- Only Intel (`x86_64`/`amd64`) binaries are currently provided.
24+
- These binaries do work on macOS with Apple Silicon, but they will run under Rosetta.
25+
- Signed binaries are not provided for macOS. This plugin will offer to de-quarantine the binaries for you, but please make sure you understand the consequences.
1726

1827
# Dependencies
1928

20-
- `bash`, `curl`, `tar`: generic POSIX utilities.
21-
- `SOME_ENV_VAR`: set this environment variable in your shell config to load the correct version of tool x.
29+
- `curl`, `jq`
30+
- `sha512sum` (optional, but recommended)
2231

2332
# Install
2433

25-
Plugin:
34+
This plugin supports multiple tools (similar to [asdf-hashicorp](https://github.com/asdf-community/asdf-hashicorp) and [asdf-pyapp](https://github.com/amrox/asdf-pyapp).
35+
36+
| Tool | Command to add Plugin |
37+
| ------------ | ---------------------------------------------------------------------------- |
38+
| clang-format | `asdf plugin add clang-format https://github.com/amrox/asdf-clang-tools.git` |
39+
| clang-query | `asdf plugin add clang-query https://github.com/amrox/asdf-clang-tools.git` |
40+
| clang-tidy | `asdf plugin add clang-tidy https://github.com/amrox/asdf-clang-tools.git` |
41+
42+
43+
Example:
2644

2745
```shell
28-
asdf plugin add clang-tools
29-
# or
30-
asdf plugin add clang-tools https://github.com/amrox/asdf-clang-tools.git
46+
asdf plugin add clang-format https://github.com/amrox/asdf-clang-tools.git
3147
```
3248

33-
clang-tools:
49+
clang-format:
3450

3551
```shell
3652
# Show all installable versions
37-
asdf list-all clang-tools
53+
asdf list-all clang-format
3854

3955
# Install specific version
40-
asdf install clang-tools latest
56+
asdf install clang-format latest
4157

4258
# Set a version globally (on your ~/.tool-versions file)
43-
asdf global clang-tools latest
59+
asdf global clang-format latest
4460

4561
# Now clang-tools commands are available
4662
clang-format
@@ -49,6 +65,16 @@ clang-format
4965
Check [asdf](https://github.com/asdf-vm/asdf) readme for more instructions on how to
5066
install & manage versions.
5167

68+
# Configuration
69+
70+
## Environment Variables
71+
72+
- `ASDF_CLANG_TOOLS_MACOS_DEQUARANTINE`: set to "1" to automatically de-quarantine binaries. Otherwise, it will interactively ask to do so.
73+
74+
# Acknowledgements
75+
76+
Thank you to the authors and contributors to [muttleyxd/clang-tools-static-binaries](https://github.com/muttleyxd/clang-tools-static-binaries).
77+
5278
# Contributing
5379

5480
Contributions of any kind welcome! See the [contributing guide](contributing.md).

0 commit comments

Comments
 (0)