Skip to content

Commit 6fa7631

Browse files
committed
Suppress cppcheck false positive
1 parent 08f5646 commit 6fa7631

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tinyexpr.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,6 +2384,7 @@ te_type te_parser::te_eval(const te_expr* texp)
23842384
[&, texp]<typename T0>(const T0& var) -> te_type
23852385
{
23862386
using T = std::decay_t<T0>;
2387+
// cppcheck-suppress-begin internalAstError
23872388
if constexpr (te_is_constant_v<T>)
23882389
{
23892390
return var;
@@ -2414,6 +2415,7 @@ te_type te_parser::te_eval(const te_expr* texp)
24142415
return std::apply(var,
24152416
make_function_arg_list(M, std::make_index_sequence<n_args>{}));
24162417
}
2418+
// cppcheck-suppress-end internalAstError
24172419
return te_nan;
24182420
},
24192421
texp->m_value);

0 commit comments

Comments
 (0)