We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13f7e53 commit 145ec93Copy full SHA for 145ec93
1 file changed
lib/checkfunctions.cpp
@@ -635,6 +635,12 @@ void CheckFunctions::checkLibraryMatchFunctions()
635
if (!tok->scope() || !tok->scope()->isExecutable())
636
continue;
637
638
+ // skip uninstantiated templates
639
+ if (tok == tok->scope()->bodyStart && tok->scope()->function && tok->scope()->function->templateDef) {
640
+ tok = tok->link();
641
+ continue;
642
+ }
643
+
644
if (tok->str() == "new")
645
insideNew = true;
646
else if (tok->str() == ";")
0 commit comments