summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-21 23:42:05 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-21 23:47:22 +0100
commit3316202888f8849e26afe750cbb7db3087b9c416 (patch)
tree007949a7ab7d304ae01c96971afe674d9e843efe /compilerplugins
parentfa4afe020d48ce872f6d7dfde946314c7b2a30c8 (diff)
implicitboolconversion: support for Objective C BOOL
Change-Id: Id63f42fa8875211af9f41c21f3fa128403f8a880
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/implicitboolconversion.cxx5
1 files changed, 3 insertions, 2 deletions
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) {