Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cfg/std.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8996,6 +8996,7 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
<check>std::format_error</check>
<check>std::bad_typeid</check>
<check>std::bad_cast</check>
<check>std::monostate</check>
<check>std::bad_optional_access</check>
<check>std::bad_expected_access</check>
<check>std::bad_weak_ptr</check>
Expand Down
7 changes: 7 additions & 0 deletions test/cfg/std.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <variant>
#include <vector>
#include <version>
#ifdef __cpp_lib_span
Expand Down Expand Up @@ -2636,6 +2637,12 @@ void uninitvar_llround(void)
(void)std::llroundl(ld);
}

void unusedScopedObject_std_monostate(void)
{
// cppcheck-suppress unusedScopedObject
std::monostate{};
}

void uninitvar_srand(void)
{
unsigned int seed;
Expand Down