[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Thu Dec 22 07:55:32 UTC 2016
compilerplugins/clang/implicitboolconversion.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 595ff0c6ea68b99e3730e0f0616f9bd7d391c8ac
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Dec 22 08:54:04 2016 +0100
Also don't warn for plain C code
...as needed by clang-cl for
bean/native/win32/com_sun_star_comp_beans_LocalOfficeWindow.c
Change-Id: I862afb6b549015d951a898ee415370540ffab1f6
diff --git a/compilerplugins/clang/implicitboolconversion.cxx b/compilerplugins/clang/implicitboolconversion.cxx
index 629a507..9bb8be2 100644
--- a/compilerplugins/clang/implicitboolconversion.cxx
+++ b/compilerplugins/clang/implicitboolconversion.cxx
@@ -995,7 +995,7 @@ void ImplicitBoolConversion::checkCXXConstructExpr(
}
void ImplicitBoolConversion::reportWarning(ImplicitCastExpr const * expr) {
- if (!compiler.getLangOpts().ObjC2 || compiler.getLangOpts().CPlusPlus) {
+ if (compiler.getLangOpts().CPlusPlus) {
report(
DiagnosticsEngine::Warning,
"implicit conversion (%0) from %1 to %2", expr->getLocStart())
More information about the Libreoffice-commits
mailing list