@@ -92,7 +92,7 @@ One or more required tools not found. Install required tools and re-run .mystoo
9292
9393To finish the bootstrap process, you will need to install the required
9494tools for your specific operating system as follows. Currently we use
95- Astyle 3.1 or later and Cppcheck 1.88 or later. Once you have
95+ Astyle 3.1 or later and Cppcheck 2.1 or later. Once you have
9696installed AStyle and Cppcheck, re-run bootstrap-dev.sh to finish
9797configuring your development environment.
9898
@@ -114,7 +114,7 @@ Tested with Ubuntu 18-04 LTS and 19.04
114114apt-get install astyle
115115git clone https://github.com/danmar/cppcheck.git
116116cd cppcheck/
117- git checkout 1.89 # or later version if available
117+ git checkout 2.1 # or later version if available
118118mkdir build && cd build && cmake .. && cmake --build .
119119sudo make MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck HAVE_RULES=yes CXXFLAGS="-O2 -DNDEBUG -Wall -Wno-sign-compare -Wno-unused-function" install
120120```
@@ -137,16 +137,13 @@ mv .\astyle.3.1.zip\AStyle 'C:\Program Files\AStyle'
137137[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\AStyle\bin")
138138[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\AStyle\bin", [EnvironmentVariableTarget]::Machine)
139139
140- ### Install Cppcheck (either 64-bit or 32-bit depending upon your version of Windows - pick one below)
140+ ### Install Cppcheck x64
141141
142142# 64-bit
143- iwr 'https://github.com/danmar/cppcheck/releases/download/1.88/cppcheck-1.88-x64-Setup.msi' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -OutFile cppcheck-1.88-Setup.msi
144-
145- # 32-bit
146- iwr 'https://github.com/danmar/cppcheck/releases/download/1.88/cppcheck-1.88-x86-Setup.msi' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -OutFile cppcheck-1.88-Setup.msi
143+ iwr 'https://github.com/danmar/cppcheck/releases/download/2.1/cppcheck-2.1-x64-Setup.msi' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -OutFile cppcheck-2.1-x64-Setup.msi
147144
148145# Launch installer to install Cppcheck
149- & .\cppcheck-1.88 -Setup.msi
146+ & .\cppcheck-2.1-x64 -Setup.msi
150147
151148### Add Cppcheck to your path
152149[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\Cppcheck", [EnvironmentVariableTarget]::Machine)
@@ -174,7 +171,7 @@ cd astyle/build/gcc && sudo make shared release shared static install
174171```
175172git clone https://github.com/danmar/cppcheck.git
176173cd cppcheck/
177- git checkout 1.89 # or later version if available)
174+ git checkout 2.1 # or later version if available)
178175mkdir build && cd build && cmake .. && cmake --build .
179176sudo make MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck HAVE_RULES=yes CXXFLAGS="-O2 -DNDEBUG -Wall -Wno-sign-compare -Wno-unused-function" install
180177```
0 commit comments