Changeset View
Changeset View
Standalone View
Standalone View
arcanist/linter/CppCheckLinter.php
Show All 19 Lines | final class CppCheckLinter extends ArcanistExternalLinter { | ||||
// phpcs:disable Generic.Files.LineLength.MaxExceeded | // phpcs:disable Generic.Files.LineLength.MaxExceeded | ||||
/* Associative array of <file => [messages]> to whitelist. */ | /* Associative array of <file => [messages]> to whitelist. */ | ||||
const CPPCHECK_IGNORED_WARNINGS = array( | const CPPCHECK_IGNORED_WARNINGS = array( | ||||
"src/arith_uint256.h" => array( | "src/arith_uint256.h" => array( | ||||
"Class 'arith_uint256' has a constructor with 1 argument that is not explicit.", | "Class 'arith_uint256' has a constructor with 1 argument that is not explicit.", | ||||
"Class 'base_uint < 256 >' has a constructor with 1 argument that is not explicit.", | "Class 'base_uint < 256 >' has a constructor with 1 argument that is not explicit.", | ||||
"Class 'base_uint' has a constructor with 1 argument that is not explicit.", | "Class 'base_uint' has a constructor with 1 argument that is not explicit.", | ||||
), | ), | ||||
"src/bench/mempool_stress.cpp" => array( | |||||
// Remove this once this false positive is fixed in cppcheck | |||||
// https://trac.cppcheck.net/ticket/9537 | |||||
"Syntax Error: AST broken, 'for' doesn't have two operands.", | |||||
), | |||||
"src/bench/prevector.cpp" => array( | "src/bench/prevector.cpp" => array( | ||||
// Remove this once this false positive is fixed in cppcheck | // Remove this once this false positive is fixed in cppcheck | ||||
"syntax error", | "syntax error", | ||||
), | ), | ||||
"src/coins.h" => array( | "src/coins.h" => array( | ||||
"Class 'CCoinsViewBacked' has a constructor with 1 argument that is not explicit.", | "Class 'CCoinsViewBacked' has a constructor with 1 argument that is not explicit.", | ||||
"Class 'CCoinsViewCache' has a constructor with 1 argument that is not explicit.", | "Class 'CCoinsViewCache' has a constructor with 1 argument that is not explicit.", | ||||
"Class 'CCoinsViewCursor' has a constructor with 1 argument that is not explicit.", | "Class 'CCoinsViewCursor' has a constructor with 1 argument that is not explicit.", | ||||
▲ Show 20 Lines • Show All 240 Lines • Show Last 20 Lines |