File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,24 @@ pass the <!-- date-check: nov 2022 --> `--edition=2021` argument yourself when c
27
27
[ fmt ] : https://github.com/rust-dev-tools/fmt-rfcs
28
28
[ `rustfmt` ] :https://github.com/rust-lang/rustfmt
29
29
30
+ ## Formatting C++ code
31
+
32
+ The compiler contains some C++ code for interfacing with parts of LLVM that
33
+ don't have a stable C API.
34
+ When modifying that code, use this command to format it:
35
+
36
+ ``` sh
37
+ ./x test tidy --extra-checks=cpp:fmt --bless
38
+ ```
39
+
40
+ This uses a pinned version of ` clang-format ` , to avoid relying on the local
41
+ environment.
42
+
30
43
<a name =" copyright " ></a >
31
44
32
45
<!-- REUSE-IgnoreStart -->
33
46
<!-- Prevent REUSE from interpreting the heading as a copyright notice -->
34
- ### Copyright notice
47
+ ## Copyright notice
35
48
<!-- REUSE-IgnoreEnd -->
36
49
37
50
In the past, files began with a copyright and license notice. Please ** omit**
You can’t perform that action at this time.
0 commit comments