Files
AirCoding/AirPlan/docs/spec/AirPlan-ParaV2/.agents/skills/airsdb/references/cppcheck-notes.md
AirCoding ae44be31d5 chore: push all design docs, V2 plan specs, and current working state
Includes AirPlan design documents, AircOding-alpha1-plan, AirPlanV2,
AirPlan-ParaV2, AirPlan-Para V1 reference docs, and all working code
changes across packages.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-12 17:12:29 +08:00

1.4 KiB
Executable File

Cppcheck Notes

Use this only when AirSDB needs cppcheck install or command details.

Sources

Install Notes

  • The official page lists current open-source releases and package-manager examples.
  • Windows official installer is linked from the Cppcheck open-source page.
  • Package managers can be convenient but may lag behind official releases.
  • AirSDB auto-configures with package managers first because it must be non-interactive for agent workflows.

Command Notes

  • Prefer cppcheck --project=compile_commands.json when the project has a compilation database.
  • Generate a CMake compilation database with cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON . when appropriate.
  • Use --xml --xml-version=2 for machine-readable reports.
  • Use --cppcheck-build-dir=<path> for incremental analysis and better whole-program analysis.
  • Use -i<path> to skip generated/vendor directories.
  • Use suppressions instead of deleting warnings when a finding is a known false positive.