We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db61234 commit 3a7f218Copy full SHA for 3a7f218
lib/checkother.cpp
@@ -1513,6 +1513,8 @@ void CheckOther::commaSeparatedReturnError(const Token *tok)
1513
static bool isLargeContainer(const Variable* var, const Settings& settings)
1514
{
1515
const ValueType* vt = var->valueType();
1516
+ if (vt->container->startPattern == "std :: initializer_list <")
1517
+ return false;
1518
if (vt->container->size_templateArgNo < 0)
1519
return true;
1520
const std::size_t maxByValueSize = 2 * settings.platform.sizeof_pointer;
0 commit comments