Kaydet (Commit) a1aa7028 authored tarafından Noel Grandin's avatar Noel Grandin

literaltobool conversion plugin, reduce spurious warnings with clang 3.3

It appears that clang 3.3 also generates spurious warnings, so
adjust the ifdef

Change-Id: Idb57f7eafd55effd4c7c8b1f96c03c2ea6ddaba3
üst ce445c50
...@@ -121,7 +121,7 @@ bool LiteralToBoolConversion::VisitImplicitCastExpr( ...@@ -121,7 +121,7 @@ bool LiteralToBoolConversion::VisitImplicitCastExpr(
// //
// as "implicit conversion (IntegralToBoolean) of null pointer constant of type // as "implicit conversion (IntegralToBoolean) of null pointer constant of type
// 'std::size_t' (aka 'unsigned long') to 'bool'": // 'std::size_t' (aka 'unsigned long') to 'bool'":
#if (__clang_major__ == 3 && __clang_minor__ >= 3) || __clang_major__ > 3 #if (__clang_major__ == 3 && __clang_minor__ >= 4) || __clang_major__ > 3
} else if (sub->isNullPointerConstant( } else if (sub->isNullPointerConstant(
compiler.getASTContext(), Expr::NPC_ValueDependentIsNull) compiler.getASTContext(), Expr::NPC_ValueDependentIsNull)
!= Expr::NPCK_NotNull) != Expr::NPCK_NotNull)
......
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