While preparing Bitcoin Core PR #36030, we found that bugprone-assert-side-effect reports assert(ret > 0s); with CheckFunctionCalls: true.
IgnoredFunctions cannot suppress this pure chrono literal operator, even with .*, because AssertSideEffectCheck.cpp only applies IgnoredFunctionsMatcher to identifier names. Literal operators have operator names.
Removing this restriction would allow qualified regexes to ignore literal operators while preserving the default diagnostic. The restriction remains on LLVM main.
While preparing Bitcoin Core PR #36030, we found that
bugprone-assert-side-effectreportsassert(ret > 0s);withCheckFunctionCalls: true.IgnoredFunctionscannot suppress this pure chrono literal operator, even with.*, becauseAssertSideEffectCheck.cpponly appliesIgnoredFunctionsMatcherto identifier names. Literal operators have operator names.Removing this restriction would allow qualified regexes to ignore literal operators while preserving the default diagnostic. The restriction remains on LLVM
main.