-
Notifications
You must be signed in to change notification settings - Fork 38
update qt #759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update qt #759
Changes from all commits
ca9a6df
4b7b774
989e130
4d7a4fa
d627d2a
7391572
b2598d7
943bec5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,8 @@ shadowFunction | |
|
|
||
| unusedVariable | ||
|
|
||
| unusedFunction | ||
|
|
||
|
Comment on lines
+11
to
+12
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- tracked candidate files ---'
git ls-files | grep -E '(^|/)(cppcheck\.supp|CMakePresets\.json)$' || true
printf '%s\n' '--- cppcheck.supp ---'
supp=$(git ls-files | grep -E '(^|/)cppcheck\.supp$' | head -n 1 || true)
if [ -n "$supp" ]; then
cat -n "$supp"
fi
printf '%s\n' '--- CMakePresets.json relevant sections ---'
preset=$(git ls-files | grep -E '(^|/)CMakePresets\.json$' | head -n 1 || true)
if [ -n "$preset" ]; then
sed -n '55,95p' "$preset"
fi
printf '%s\n' '--- Cppcheck references and analysis options ---'
rg -n -i --glob '!build/**' --glob '!node_modules/**' 'cppcheck|unusedFunction|enable=|project=' .Repository: AlexInLog/ReactivePlusPlus Length of output: 3206 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- tool availability ---'
if command -v cppcheck >/dev/null 2>&1; then
cppcheck --version
cppcheck --help 2>&1 | grep -E -A2 -B2 'unusedFunction|project|suppressions-list' || true
else
echo 'cppcheck is not installed'
fi
printf '%s\n' '--- preset inheritance around cppcheck consumers ---'
sed -n '200,265p' CMakePresets.json
printf '%s\n' '--- CMake version and CXX_CPPCHECK documentation if available ---'
if command -v cmake >/dev/null 2>&1; then
cmake --version | head -n 1
cmake --help-variable CMAKE_CXX_CPPCHECK 2>&1 || true
cmake --help-property CXX_CPPCHECK 2>&1 || true
fiRepository: AlexInLog/ReactivePlusPlus Length of output: 5210 🌐 Web query:
💡 Result: The Cppcheck unusedFunction check explicitly requires whole-program analysis to function correctly [1][2][3]. Because it must determine whether a function is called anywhere in the entire codebase, it cannot reliably operate when analyzing files in isolation [4]. It is strongly recommended to only enable this check when the entire program is scanned [3][5]. When using Cppcheck with multiple threads, whole-program analysis requires the use of a Cppcheck build directory, which can be configured via the --cppcheck-build-dir command-line option, to ensure consistency across the analysis [1][2]. Regarding CMake, the CMAKE__CPPCHECK variable serves as the default value to initialize the _CPPCHECK target property for every target created after the variable is set [6][7]. This variable is evaluated at the time a target is created (e.g., when calling add_executable or add_library) [6][7]. Because it is a standard CMake variable, it follows directory-based scoping: setting it affects the current directory and all subdirectories processed afterward, unless overridden by a new set command in a lower-level subdirectory [8]. While CMake's integration for Cppcheck runs the tool alongside the compiler, this feature is primarily designed for per-file or per-target analysis rather than native whole-program analysis, which may limit the effectiveness of the unusedFunction check when using standard CMake-integrated invocation [6][9]. Citations:
Do not add a global The CMake preset runs Cppcheck per compile command, not as a whole-program analysis. 🤖 Prompt for AI Agents |
||
| localMutex | ||
|
|
||
| unmatchedSuppression | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Performance & Scalability | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: AlexInLog/ReactivePlusPlus
Length of output: 13399
🏁 Script executed:
Repository: AlexInLog/ReactivePlusPlus
Length of output: 43290
🏁 Script executed:
Repository: AlexInLog/ReactivePlusPlus
Length of output: 2652
🏁 Script executed:
Repository: AlexInLog/ReactivePlusPlus
Length of output: 396
Remove the unused
cache_depsdependency.use_rpp_as_packagehas no cache restore or Conan setup, so this dependency provides no dependency files. It only waits for all six matrix jobs and skips package coverage if any job fails. Remove it unless this ordering is intentional.🤖 Prompt for AI Agents
Source: MCP tools