Skip to content

Commit

Permalink
cppcheck: update to 2.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiChinoune committed Sep 23, 2024
1 parent cd91d78 commit 26b09dc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
18 changes: 9 additions & 9 deletions mingw-w64-cppcheck/002-cppcheck-2.2-change-cfg-path.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- a/lib/library.cpp
+++ b/lib/library.cpp
@@ -108,7 +108,7 @@
#endif
if (exename) {
const std::string exepath(Path::fromNativeSeparators(Path::getPathFromFilename(Path::getCurrentExecutablePath(exename))));
- cfgfolders.push_back(exepath + "cfg");
+ cfgfolders.push_back(exepath + "../share/cppcheck/cfg");
cfgfolders.push_back(exepath + "../cfg");
cfgfolders.push_back(exepath);
}
@@ -217,7 +217,7 @@
#endif
if (exename) {
const std::string exepath(Path::fromNativeSeparators(Path::getPathFromFilename(Path::getCurrentExecutablePath(exename))));
- cfgfolders.push_back(exepath + "cfg");
+ cfgfolders.push_back(exepath + "../share/cppcheck/cfg");
cfgfolders.push_back(exepath);
}

9 changes: 0 additions & 9 deletions mingw-w64-cppcheck/003-cppcheck-2.11-cmake-error.patch

This file was deleted.

6 changes: 3 additions & 3 deletions mingw-w64-cppcheck/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
_realname=cppcheck
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=2.14.2
pkgver=2.15.0
pkgrel=1
pkgdesc="static analysis of C/C++ code (mingw-w64)"
arch=('any')
Expand Down Expand Up @@ -33,9 +33,9 @@ optdepends=("${MINGW_PACKAGE_PREFIX}-python-pygments: cppcheck-htmlreport"
source=("https://github.com/danmar/cppcheck/archive/${pkgver}/${_realname}-${pkgver}.tar.gz"
'001-cppcheck-2.2-change-language-files-path.patch'
'002-cppcheck-2.2-change-cfg-path.patch')
sha256sums=('9c3acea5f489336bd83a8ea33917a9a04a80c56d874bf270287e7de27acf2d00'
sha256sums=('98bcc40ac8062635b492fb096d7815376a176ae26749d6c708083f4637f7c0bb'
'e741bfafbeb3ade454a42563a1c4617ae3dc87fd6a6f409e1ae4b735b68997d3'
'd6e156adc892159d506982bad2048b6c4842ab9dd9f64d047ee36780fb5cf57f')
'afb9011e2fe299ce1e8e6ef5fd556a4d8e4c50cb6b7e9a78bee94c7ad0f15886')

apply_patch_with_msg() {
for _patch in "$@"
Expand Down

0 comments on commit 26b09dc

Please sign in to comment.