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());
|
||||
if (t2 != nullptr) {
|
||||
//TODO: fix this superficial nonsense check:
|
||||
ASTTemplateArgumentListInfo const & ai
|
||||
= dr->getExplicitTemplateArgs();
|
||||
if (ai.NumTemplateArgs == 1
|
||||
&& (ai[0].getArgument().getKind()
|
||||
== TemplateArgument::Type)
|
||||
&& isBool(ai[0].getTypeSourceInfo()->getType()))
|
||||
{
|
||||
continue;
|
||||
if (dr->getNumTemplateArgs() == 1) {
|
||||
auto const ta = dr->getTemplateArgs();
|
||||
if ((ta[0].getArgument().getKind()
|
||||
== TemplateArgument::Type)
|
||||
&& isBool(
|
||||
ta[0].getTypeSourceInfo()->getType()))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user