From 3316202888f8849e26afe750cbb7db3087b9c416 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 21 Feb 2014 23:42:05 +0100 Subject: implicitboolconversion: support for Objective C BOOL Change-Id: Id63f42fa8875211af9f41c21f3fa128403f8a880 --- compilerplugins/clang/implicitboolconversion.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compilerplugins') diff --git a/compilerplugins/clang/implicitboolconversion.cxx b/compilerplugins/clang/implicitboolconversion.cxx index 740f76724b60..b03a32e68a35 100644 --- a/compilerplugins/clang/implicitboolconversion.cxx +++ b/compilerplugins/clang/implicitboolconversion.cxx @@ -43,8 +43,9 @@ if(t1->isSpecificBuiltinType(BuiltinType::UChar))return true; return false; } std::string name(t2->getDecl()->getNameAsString()); - return name == "sal_Bool" || name == "FcBool" || name == "UBool" - || name == "dbus_bool_t" || name == "gboolean" || name == "hb_bool_t"; + return name == "sal_Bool" || name == "BOOL" || name == "FcBool" + || name == "UBool" || name == "dbus_bool_t" || name == "gboolean" + || name == "hb_bool_t"; } bool isBoolExpr(Expr const * expr) { -- cgit