Adapt loplugin:implicitboolconversion to changes in Clang trunk towards 3.8
Change-Id: I7841eee5b66a118c52258c0226d73a1139a0df9a
This commit is contained in:
parent
92e60e1b80
commit
f44bd6b054
@ -368,14 +368,15 @@ bool ImplicitBoolConversion::TraverseCallExpr(CallExpr * expr) {
|
|||||||
.getNonReferenceType());
|
.getNonReferenceType());
|
||||||
if (t2 != nullptr) {
|
if (t2 != nullptr) {
|
||||||
//TODO: fix this superficial nonsense check:
|
//TODO: fix this superficial nonsense check:
|
||||||
ASTTemplateArgumentListInfo const & ai
|
if (dr->getNumTemplateArgs() == 1) {
|
||||||
= dr->getExplicitTemplateArgs();
|
auto const ta = dr->getTemplateArgs();
|
||||||
if (ai.NumTemplateArgs == 1
|
if ((ta[0].getArgument().getKind()
|
||||||
&& (ai[0].getArgument().getKind()
|
== TemplateArgument::Type)
|
||||||
== TemplateArgument::Type)
|
&& isBool(
|
||||||
&& isBool(ai[0].getTypeSourceInfo()->getType()))
|
ta[0].getTypeSourceInfo()->getType()))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user