@@ -127,25 +127,26 @@ sudo make MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck HAVE_RULES=yes CXXFLAGS
127
127
### Install AStyle
128
128
129
129
# Download
130
- iwr 'https://sourceforge.net/projects /astyle/files/ astyle/astyle%202.05.1/AStyle_2.05. 1_windows.zip/download ' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -OutFile astyle.2.05 .zip
130
+ iwr 'https://netix.dl. sourceforge.net/project /astyle/astyle/astyle%203.1/AStyle_3. 1_windows.zip' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -OutFile astyle.3.1 .zip
131
131
132
132
# Unzip the filed & move the C:\Program Files
133
- expand-archive astyle.2.05 .zip
134
- mv .\astyle.2.05 'C:\Program Files\AStyle\ '
133
+ expand-archive astyle.3.1 .zip
134
+ mv .\astyle.3.1.zip\AStyle 'C:\Program Files\AStyle'
135
135
136
136
# Add AStyle to your path
137
+ [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\AStyle\bin")
137
138
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\AStyle\bin", [EnvironmentVariableTarget]::Machine)
138
139
139
140
### Install Cppcheck (either 64-bit or 32-bit depending upon your version of Windows - pick one below)
140
141
141
142
# 64-bit
142
- iwr 'http ://github.com/danmar/cppcheck/releases/download/1.76.1 /cppcheck-1.76.1 -x64-Setup.msi' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -OutFile cppcheck-1.76.1 -Setup.msi
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
143
144
144
145
# 32-bit
145
- iwr 'http ://github.com/danmar/cppcheck/releases/download/1.76.1 /cppcheck-1.76.1 -x86-Setup.msi' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -OutFile cppcheck-1.76.1 -Setup.msi
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
146
147
147
148
# Launch installer to install Cppcheck
148
- & .\cppcheck-1.76.1 -Setup.msi
149
+ & .\cppcheck-1.88 -Setup.msi
149
150
150
151
### Add Cppcheck to your path
151
152
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\Cppcheck", [EnvironmentVariableTarget]::Machine)
0 commit comments