Skip to content

Commit 72d99d0

Browse files
committed
Add cspell config
1 parent b4be0b9 commit 72d99d0

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-0
lines changed

.cspell.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"allowCompoundWords": true,
3+
"dictionaries": ["cpp", "rust-extra", "rustc_codegen_gcc"],
4+
"dictionaryDefinitions": [
5+
{
6+
"name": "rust-extra",
7+
"path": "tools/cspell_dicts/rust.txt",
8+
"addWords": true
9+
},
10+
{
11+
"name": "rustc_codegen_gcc",
12+
"path": "tools/cspell_dicts/rustc_codegen_gcc.txt",
13+
"addWords": true
14+
}
15+
],
16+
"files": [
17+
"src/**/*.rs"
18+
],
19+
"ignorePaths": [
20+
"src/intrinsic/archs.rs",
21+
"src/intrinsic/llvm.rs"
22+
],
23+
"ignoreRegExpList": [
24+
"/(FIXME|NOTE|TODO)\\([^)]+\\)/",
25+
"__builtin_\\w*"
26+
]
27+
}

tools/cspell_dicts/rust.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lateout
2+
repr
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
aapcs
2+
addo
3+
archs
4+
ashl
5+
ashr
6+
cgcx
7+
clzll
8+
cmse
9+
codegened
10+
csky
11+
ctlz
12+
ctpop
13+
cttz
14+
ctzll
15+
flto
16+
fmaximumf
17+
fmuladd
18+
fmuladdf
19+
fminimumf
20+
fmul
21+
fptosi
22+
fptosui
23+
fptoui
24+
fwrapv
25+
gimple
26+
hrtb
27+
immediates
28+
liblto
29+
llbb
30+
llcx
31+
llextra
32+
llfn
33+
lgcc
34+
llmod
35+
llresult
36+
llret
37+
ltrans
38+
llty
39+
llval
40+
llvals
41+
loong
42+
lshr
43+
masm
44+
maximumf
45+
maxnumf
46+
mavx
47+
mcmodel
48+
minimumf
49+
minnumf
50+
monomorphization
51+
monomorphizations
52+
monomorphized
53+
monomorphizing
54+
movnt
55+
mulo
56+
nvptx
57+
pointee
58+
powitf
59+
reassoc
60+
riscv
61+
rlib
62+
roundevenf
63+
rustc
64+
sitofp
65+
sizet
66+
spir
67+
subo
68+
sysv
69+
tbaa
70+
uitofp
71+
unord
72+
uninlined
73+
utrunc
74+
xabort
75+
zext

0 commit comments

Comments
 (0)