[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Wed Jan 22 02:03:55 PST 2014
compilerplugins/clang/implicitboolconversion.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4865115d1b1499dd9e668b976fba8ac897fe43c1
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jan 22 11:03:15 2014 +0100
Improve Clang 3.2 hasCLanguageLinkageType workaround
Change-Id: If5c104adc05aa362d15cedf6f8953bda478897bc
diff --git a/compilerplugins/clang/implicitboolconversion.cxx b/compilerplugins/clang/implicitboolconversion.cxx
index 31377d8..bb50626 100644
--- a/compilerplugins/clang/implicitboolconversion.cxx
+++ b/compilerplugins/clang/implicitboolconversion.cxx
@@ -85,7 +85,7 @@ bool hasCLanguageLinkageType(FunctionDecl const * decl) {
return true;
}
#else
- if (decl->getDeclContext()->isExternCContext()) {
+ if (decl->getCanonicalDecl()->getDeclContext()->isExternCContext()) {
return true;
}
#endif
More information about the Libreoffice-commits
mailing list