Kaydet (Commit) 80cf5251 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

loplugin rendercontext: No param => no check.

Change-Id: I30c8624fa00338c9cca7a054e08eacfc4fd6a630
üst 117c7285
......@@ -57,6 +57,8 @@ bool RenderContext::TraverseFunctionDecl(const FunctionDecl * pFunctionDecl)
return true;
}
// we are only currently interested in methods where the first parameter is RenderContext
if (pFunctionDecl->getNumParams() == 0)
return true;
string arg0 = pFunctionDecl->getParamDecl( 0 )->getType().getAsString();
if ( arg0.find("RenderContext") != std::string::npos ) {
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment