@cspell/dict-cpp
C/C++ Dictionary dictionary for cspell.
Last updated a month ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @cspell/dict-cpp 
SYNC missed versions from official npm registry.

CSpell C/C++ Dictionary

C/C++ Dictionary for cspell.

This is a pre-built dictionary for use with cspell.

Requirements

Tool Version
cspell >=8
Code Spell Checker - Visual Studio Code >=4

Local Installation

This package is bundled with CSpell.

Configuration

<summary>VSCode Settings</summary>

Add the following to your VSCode settings:

.vscode/settings.json

{
  "cSpell.dictionaries": ["cpp-legacy", "cpp", "cpp-compound-words", "cpp-refined", "cuda"],
}
<summary>CSpell Settings cspell.json</summary>

cspell.json

{
  "dictionaries": ["cpp-legacy", "cpp", "cpp-compound-words", "cpp-refined", "cuda"],
}
<summary>CSpell Settings cspell.config.yaml</summary>

cspell.config.yaml

dictionaries:
  - cpp-legacy
  - cpp
  - cpp-compound-words
  - cpp-refined
  - cuda

Local Installation using CDN

NOTE: This package is bundled with CSpell.

Dictionary Information

Name Enabled Description
cpp-legacy Legacy C/C++ Keywords and common library functions.
cpp C/C++ Keywords and common library functions.
cpp-compound-words C/C++ Common word compounds.
cpp-refined Refined list of C/C++ Keywords and common library functions.
cuda CUDA keywords, built-ins, and runtime and library functions.

Language Settings

Name Locale File Type
cpp-legacy * c, cpp, cuda-cpp
cpp * c, cpp, cuda-cpp
cpp-compound-words * c, cpp, cuda-cpp
cpp-refined * c, cpp, cuda-cpp
cuda * c, cpp, cuda-cpp, python, julia, fortran, FortranFreeForm, FortranFixedForm

C/C++ Compound Words

It is very common for C/C++ code to contain word compound like errorcode and hashcode. The cpp-compound-words dictionary is designed to help avoid false positives. But, this can mean that valid errors are hidden due to the way compounds are combined.

The following configuration can be used to disable the compound dictionary:

languageSettings:
  languageId: 'c,cpp,cuda-cpp' # '*' can be used to disable it for all file types.
  dictionaries:
    - '!cpp-compound-words'

Contributing

Please help correct any mistakes in the dictionaries.

See: Contributing

Special thanks to all of our amazing contributors!

Dictionary Development

See: How to Create a New Dictionary

License

MIT

Some packages may have other licenses included.



Brought to you by Street Side Software Logo Street Side Software

Current Tags

  • 7.2.0                                ...           latest (a month ago)

75 Versions

  • 7.2.0                                ...           a month ago
  • 7.1.3                                ...           2 months ago
  • 7.1.2                                ...           2 months ago
  • 7.1.1                                ...           3 months ago
  • 7.1.0                                ...           4 months ago
  • 7.0.2                                ...           a year ago
  • 7.0.1                                ...           a year ago
  • 7.0.0                                ...           a year ago
  • 6.0.15                                ...           a year ago
  • 6.0.14                                ...           a year ago
  • 6.0.13                                ...           a year ago
  • 6.0.12                                ...           a year ago
  • 6.0.11                                ...           a year ago
  • 6.0.10                                ...           a year ago
  • 6.0.9                                ...           a year ago
  • 6.0.8                                ...           2 years ago
  • 6.0.7                                ...           2 years ago
  • 6.0.6                                ...           2 years ago
  • 6.0.5                                ...           2 years ago
  • 6.0.4                                ...           2 years ago
  • 6.0.3                                ...           2 years ago
  • 6.0.2                                ...           2 years ago
  • 6.0.1                                ...           2 years ago
  • 6.0.0                                ...           2 years ago
  • 5.1.23                                ...           2 years ago
  • 5.1.22                                ...           2 years ago
  • 5.1.19                                ...           2 years ago
  • 5.1.18                                ...           2 years ago
  • 5.1.17                                ...           2 years ago
  • 5.1.16                                ...           2 years ago
  • 5.1.15                                ...           2 years ago
  • 5.1.14                                ...           2 years ago
  • 5.1.13                                ...           2 years ago
  • 5.1.12                                ...           2 years ago
  • 5.1.11                                ...           2 years ago
  • 5.1.10                                ...           2 years ago
  • 5.1.9                                ...           2 years ago
  • 5.1.8                                ...           2 years ago
  • 5.1.7                                ...           3 years ago
  • 5.1.6                                ...           3 years ago
  • 5.1.5                                ...           3 years ago
  • 5.1.4                                ...           3 years ago
  • 5.1.3                                ...           3 years ago
  • 5.1.2                                ...           3 years ago
  • 5.1.1                                ...           3 years ago
  • 5.1.0                                ...           3 years ago
  • 5.0.10                                ...           3 years ago
  • 5.0.9                                ...           3 years ago
  • 5.0.8                                ...           3 years ago
  • 5.0.7                                ...           3 years ago
  • 5.0.6                                ...           3 years ago
  • 5.0.5                                ...           3 years ago
  • 5.0.4                                ...           3 years ago
  • 5.0.3                                ...           4 years ago
  • 5.0.2                                ...           4 years ago
  • 5.0.1                                ...           4 years ago
  • 5.0.0                                ...           4 years ago
  • 4.0.3                                ...           4 years ago
  • 4.0.2                                ...           4 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 3.2.1                                ...           4 years ago
  • 3.2.0                                ...           4 years ago
  • 3.1.1                                ...           4 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.1                                ...           5 years ago
  • 2.0.3                                ...           5 years ago
  • 2.0.2                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.1.40                                ...           5 years ago
  • 1.1.39                                ...           5 years ago
  • 1.1.38                                ...           6 years ago
  • 1.1.37                                ...           6 years ago
  • 1.1.36                                ...           6 years ago
Maintainers (1)
Downloads
Total 170
Today 0
This Week 0
This Month 164
Last Day 0
Last Week 109
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE