Skip to content

Commit 3a7f218

Browse files
committed
Fix
1 parent db61234 commit 3a7f218

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/checkother.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,8 @@ void CheckOther::commaSeparatedReturnError(const Token *tok)
15131513
static bool isLargeContainer(const Variable* var, const Settings& settings)
15141514
{
15151515
const ValueType* vt = var->valueType();
1516+
if (vt->container->startPattern == "std :: initializer_list <")
1517+
return false;
15161518
if (vt->container->size_templateArgNo < 0)
15171519
return true;
15181520
const std::size_t maxByValueSize = 2 * settings.platform.sizeof_pointer;

0 commit comments

Comments
 (0)