Skip to content

Commit da3bd97

Browse files
committed
some minor documentation improvements / also use proper capitalization for Cppcheck
1 parent 2fec3b6 commit da3bd97

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

README.md

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
1-
# CLion-cppcheck
1+
# clion-cppcheck
22

3-
- Runs `cppcheck` on the fly while you write code.
4-
- Highlights lines and displays `cppcheck` error messages.
5-
- Supports passing options to `cppcheck`.
3+
A plugin for JetBrains IDEs to provide inspections for C/C++ files based on the static analyzer [Cppcheck](https://cppcheck.sourceforge.io/).
64

75
This project is supported with a free open source license of CLion from
86
[JetBrains](https://www.jetbrains.com/?from=clion-cppcheck).
97

8+
## Features
9+
10+
- Runs `Cppcheck` on the fly while you write code.
11+
- Highlights lines and displays `Cppcheck` error messages.
12+
- Supports passing options to `Cppcheck`.
13+
1014
## Installation
1115

12-
See
13-
[Installing, Updating and Uninstalling Repository Plugins](https://www.jetbrains.com/help/clion/managing-plugins.html)
16+
Install the [`cppcheck` plugin][cppcheck_plugin] from the JetBrains Marketplace.
1417

15-
- [`cppcheck` in JetBrains Plugin Repository][cppcheck_plugin]
18+
See
19+
[Installing, Updating and Uninstalling Repository Plugins](https://www.jetbrains.com/help/clion/managing-plugins.html) for more details.
1620

17-
### Initial Configuration
21+
### Initial Plugin Configuration
1822

1923
1. Install the [`cppcheck`](http://cppcheck.sourceforge.net/) tool using the instructions on its homepage. This plugin
20-
does **not** bundle the `cppcheck` tool itself, which must be installed separately.
24+
does **not** bundle the `Cppcheck` tool itself, which must be installed separately.
2125
2. Install the [cppcheck plugin][cppcheck_plugin] into CLion.
22-
3. Configure the plugin with the **absolute** path to the `cppcheck` executable into the `cppcheck path` option.
26+
3. Configure the plugin with the **absolute** path to the `Cppcheck` executable into the `cppcheck path` option.
2327
1. Windows
2428
1. File | Settings | Cppcheck configuration
2529
2. Usually the path is `C:\Program Files (x86)\Cppcheck\cppcheck.exe`
2630
2. macOS:
2731
1. CLion | Preferences | Cppcheck configuration
28-
2. In a terminal run `which cppcheck` to find the path to `cppcheck`. If you installed it with
32+
2. In a terminal run `which cppcheck` to find the path to `Cppcheck`. If you installed it with
2933
[Homebrew](https://brew.sh/), the path will be `/usr/local/bin/cppcheck`.
3034
3. Linux
3135
1. File | Settings | Cppcheck configuration
32-
2. In a terminal run `which cppcheck` to find the path to `cppcheck`. If you installed it with your
36+
2. In a terminal run `which cppcheck` to find the path to `Cppcheck`. If you installed it with your
3337
system's package manager, it is probably located at `/usr/bin/cppcheck`.
3438

3539
[cppcheck_plugin]: https://plugins.jetbrains.com/plugin/8143
@@ -46,10 +50,10 @@ See https://github.com/johnthagen/clion-cppcheck/issues for a complete list of t
4650

4751
### Analyzing header files
4852

49-
`cppcheck` is not designed to be run on header files (`.h`) directly, as must be done for this
53+
`Cppcheck` is not designed to be run on header files (`.h`) directly, as must be done for this
5054
plugin, and as a result may have false positives.
5155

52-
When run on header files directly, `cppcheck` defaults to C as the language, which will generate
56+
When run on header files directly, `Cppcheck` defaults to C as the language, which will generate
5357
false positives for C++ projects. So `--language=c++` is implicitly added as option when analyzing header files.
5458

5559
It will also provide `unusedFunction` and `unusedStructMember` false positives so these findings are being suppressed.
@@ -60,7 +64,7 @@ https://github.com/johnthagen/clion-cppcheck/issues/52
6064

6165
### Analyzing multiple configurations
6266

63-
By default `cppcheck` tries to determine all the available configurations for a file (i.e. all combination of the used
67+
By default `Cppcheck` tries to determine all the available configurations for a file (i.e. all combination of the used
6468
preprocessor defines). As the plugin doesn't get the current list of defines this may lead to findings shown in code
6569
which is shown as disabled in the editor. To check just a specific configuration you can either add defines using `-D`
6670
to the options. Or you can limit the configurations to a single one adding `--max-configs=1`.
@@ -76,7 +80,7 @@ https://github.com/johnthagen/clion-cppcheck/issues/52
7680

7781
### Multiple include paths
7882

79-
No additional includes path are being passed to `cppcheck` for the analysis which might result in false positives or not
83+
No additional includes path are being passed to `Cppcheck` for the analysis which might result in false positives or not
8084
all findings being shown.
8185

8286
You can add additional include path using the `-I <path>` options.
@@ -87,8 +91,8 @@ https://github.com/johnthagen/clion-cppcheck/issues/55
8791

8892
### Batch analysis
8993

90-
The batch analysis passes the files individually to `cppcheck` just like the highlighting inspections. So if you pass a
91-
folder to the batch analysis it might not show the same findings as when passing a folder to `cppcheck` itself.
94+
The batch analysis passes the files individually to `Cppcheck` just like the highlighting inspections. So if you pass a
95+
folder to the batch analysis it might not show the same findings as when passing a folder to `Cppcheck` itself.
9296

9397
It will also pass all the contents of the folder to the analysis and not just project files. This might lead to
9498
unexpected findings.
@@ -108,10 +112,10 @@ https://github.com/johnthagen/clion-cppcheck/issues/53
108112

109113
### External libraries / System includes
110114

111-
`cppcheck` does not support analyzing of external library or system includes. It provides profiles for several external
115+
`Cppcheck` does not support analyzing of external library or system includes. It provides profiles for several external
112116
libraries which describe the contents and behavior of the includes which allows it to finding issues with usage of them
113117
in the code. To add such a profile to your analysis you need to specify it via the `--library=<name>` option. The
114-
available profile can be found in the `cfg` folder of your `cppcheck` installation.
118+
available profile can be found in the `cfg` folder of your `Cppcheck` installation.
115119

116120
### Global options
117121

@@ -188,7 +192,7 @@ Support Cppcheck >1.89. (Contribution by @SJ-Innovation)
188192

189193
### 1.2.0 - 2018-04-11
190194

191-
Greatly improve plugin responsiveness to changes by using virtual files to interact with `cppcheck`.
195+
Greatly improve plugin responsiveness to changes by using virtual files to interact with `Cppcheck`.
192196
(Contribution by @fastasturtle)
193197

194198
### 1.1.0 - 2018-04-02
@@ -234,7 +238,7 @@ Fix execution on Linux.
234238

235239
### 1.0.1 - 2016-01-11
236240

237-
Fix possible out of bounds line number when ``cppcheck`` gets out of sync with in-memory file.
241+
Fix possible out of bounds line number when ``Cppcheck`` gets out of sync with in-memory file.
238242

239243
### 1.0.0 - 2016-01-07
240244

resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<vendor email="[email protected]" url="http://github.com/johnthagen">johnthagen</vendor>
66

77
<description><![CDATA[
8-
Cppcheck plugin for CLion.<br/><br/>
8+
A plugin for JetBrains IDEs to provide inspections for C/C++ files based on the static analyzer Cppcheck.<br/><br/>
99
1010
<b>Features:</b><br/>
1111
<ul>

0 commit comments

Comments
 (0)