From 39912b50966ef212844ee32be374ed186517580d Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Thu, 3 Jun 2021 07:55:26 +0200 Subject: [PATCH] std.cfg: Added support for more interfaces --- cfg/std.cfg | 12 ++++++++++++ test/cfg/std.cpp | 24 ++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/cfg/std.cfg b/cfg/std.cfg index 6fa534cde..7624ba91e 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -7914,6 +7914,18 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init + + + + + + + false + + + + + false diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index a87193215..3cb17d928 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -38,6 +38,30 @@ std::bitset<10> std_bitset_test_ignoredReturnValue() return b1; } +std::bitset<10> std_bitset_all_ignoredReturnValue() +{ + std::bitset<10> b1("1111010000"); + // cppcheck-suppress ignoredReturnValue + b1.all(); + return b1; +} + +std::bitset<10> std_bitset_none_ignoredReturnValue() +{ + std::bitset<10> b1("1111010000"); + // cppcheck-suppress ignoredReturnValue + b1.none(); + return b1; +} + +std::bitset<10> std_bitset_any_ignoredReturnValue() +{ + std::bitset<10> b1("1111010000"); + // cppcheck-suppress ignoredReturnValue + b1.any(); + return b1; +} + void valid_code() { std::vector vecInt{0, 1, 2};