From 4ab7eacfb3c6dff2963e65170d4cb66a59a63033 Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Fri, 16 May 2025 14:33:44 +0200 Subject: [PATCH] cfg: add relative location of Cppcheck config location to search path --- lib/library.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/library.cpp b/lib/library.cpp index e8b6c40ef9c..18ae3c4159d 100644 --- a/lib/library.cpp +++ b/lib/library.cpp @@ -224,6 +224,7 @@ Library::Error Library::load(const char exename[], const char path[], bool debug if (exename) { 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(std::move(exepath)); }