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/avalanche/test/processor_tests.cpp" => array( | |||||
// This is a false positive, there is an assertion that the array has | |||||
// the expected size using a BOOST_CHECK expression. | |||||
"Out of bounds access in expression 'updates[0]' because 'updates' is empty.", | |||||
), | |||||
"src/bench/mempool_stress.cpp" => array( | "src/bench/mempool_stress.cpp" => array( | ||||
// Remove this once this false positive is fixed in cppcheck | // Remove this once this false positive is fixed in cppcheck | ||||
// https://trac.cppcheck.net/ticket/9537 | // https://trac.cppcheck.net/ticket/9537 | ||||
"Syntax Error: AST broken, 'for' doesn't have two operands.", | "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", | ||||
▲ Show 20 Lines • Show All 245 Lines • Show Last 20 Lines |