Skip to content

Commit abfca0b

Browse files
XhmikosRPKEuS
authored andcommitted
readme.md: various improvements
1 parent b7501a1 commit abfca0b

1 file changed

Lines changed: 48 additions & 36 deletions

File tree

readme.md

Lines changed: 48 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,106 @@
1-
# Cppcheck #
1+
# Cppcheck
22

3-
## Donations ##
3+
## Donations
44

5-
### Donations ###
5+
### Donations
66

77
If you find Cppcheck useful for you, feel free to make a donation.
88

99
[![Donate](http://pledgie.com/campaigns/4127.png)](http://pledgie.com/campaigns/4127)
1010

11-
## About the name ##
11+
## About the name
1212

13-
The original name of this program is "C++check" but it was later changed to "cppcheck".
13+
The original name of this program was "C++check", but it was later changed to "Cppcheck".
1414

1515
Despite the name, Cppcheck is designed for both C and C++.
1616

17-
## Manual ##
17+
## Manual
1818

19-
A manual is available online:
20-
http://cppcheck.sf.net/manual.pdf
19+
A manual is available [online](http://cppcheck.sf.net/manual.pdf).
2120

22-
## Compiling ##
21+
## Compiling
2322

2423
Any C++ compiler should work.
2524

2625
To build the GUI, you need Qt.
2726

28-
When building the command line tool, PCRE is normally used.
27+
When building the command line tool, [PCRE](http://www.pcre.org/) is normally used.
2928
PCRE is optional.
3029

3130
There are multiple compilation choices:
3231
* qmake - cross platform build tool
33-
* Windows: Visual Studio
34-
* Windows: Qt Creator + mingw
32+
* Windows: Visual Studio or Qt Creator or MinGW
3533
* gnu make
3634
* g++
3735

38-
### qmake ###
36+
### qmake
3937

4038
You can use the gui/gui.pro file to build the GUI.
4139

42-
cd gui
43-
qmake
44-
make
40+
```
41+
cd gui
42+
qmake
43+
make
44+
```
4545

46-
### Visual Studio ###
46+
### Visual Studio
4747

4848
Use the cppcheck.sln file. The rules are normally enabled.
4949

50-
To compile with rules (pcre dependency):
51-
* the pcre dll is needed. it can be downloaded from: http://cppcheck.sf.net/pcre-8.10-vs.zip
50+
To compile with rules (PCRE dependency):
51+
* the PCRE dll is needed. It can be downloaded from [here](http://cppcheck.sf.net/pcre-8.10-vs.zip).
5252

5353
To compile without rules (no dependencies):
54-
* remove the preprocessor define HAVE_RULES from the project
54+
* remove the preprocessor define `HAVE_RULES` from the project
5555
* remove the pcre.lib from the project
5656

57-
### Qt Creator + mingw ###
57+
### Qt Creator + MinGW
5858

5959
The PCRE dll is needed to build the CLI. It can be downloaded here:
6060
http://software-download.name/pcre-library-windows/
6161

62-
### gnu make ###
62+
### gnu make
6363

64-
To build Cppcheck with rules (pcre dependency):
64+
To build Cppcheck with rules (PCRE dependency):
6565

66-
make HAVE_RULES=yes
66+
```
67+
make HAVE_RULES=yes
68+
```
6769

6870
To build Cppcheck without rules (no dependencies):
6971

70-
make
72+
```
73+
make
74+
```
7175

72-
### g++ (for experts) ###
76+
### g++ (for experts)
7377

7478
If you just want to build Cppcheck without dependencies then you can use this command:
7579

76-
g++ -o cppcheck -Ilib cli/*.cpp lib/*.cpp
80+
```
81+
g++ -o cppcheck -Ilib cli/*.cpp lib/*.cpp
82+
```
7783

78-
If you want to use --rule and --rule-file then dependencies are needed:
84+
If you want to use `--rule` and `--rule-file` then dependencies are needed:
7985

80-
g++ -o cppcheck -lpcre -DHAVE_RULES -Ilib -Iexternals cli/*.cpp lib/*.cpp externals/tinyxml/*.cpp
86+
```
87+
g++ -o cppcheck -lpcre -DHAVE_RULES -Ilib -Iexternals cli/*.cpp lib/*.cpp externals/tinyxml/*.cpp
88+
```
8189

82-
### mingw ###
90+
### MinGW
8391

84-
make LDFLAGS=-lshlwapi
92+
```
93+
make LDFLAGS=-lshlwapi
94+
```
8595

86-
### Cross compiling Win32 (CLI) version of Cppcheck in Linux ###
96+
### Cross compiling Win32 (CLI) version of Cppcheck in Linux
8797

88-
sudo apt-get install mingw32
89-
make CXX=i586-mingw32msvc-g++ LDFLAGS="-lshlwapi"
90-
mv cppcheck cppcheck.exe
98+
```
99+
sudo apt-get install mingw32
100+
make CXX=i586-mingw32msvc-g++ LDFLAGS="-lshlwapi"
101+
mv cppcheck cppcheck.exe
102+
```
91103

92-
## Webpage ##
104+
## Webpage
93105

94106
http://cppcheck.sourceforge.net/

0 commit comments

Comments
 (0)