From ed75aa271956824c89b7c9df2c06e4ad09a74734 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 28 Aug 2014 08:58:48 +0200 Subject: create clang plugin to warn about C-style casts We don't like C-style casts in our nice C++ code Change-Id: I94e7ec90de9275cd6e20c4146d4f3a74bed93c9d Reviewed-on: https://gerrit.libreoffice.org/10367 Reviewed-by: Stephan Bergmann Reviewed-by: Norbert Thiebaud Tested-by: Norbert Thiebaud --- idlc/inc/idlc/astdeclaration.hxx | 2 ++ idlc/inc/idlc/errorhandler.hxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'idlc/inc') diff --git a/idlc/inc/idlc/astdeclaration.hxx b/idlc/inc/idlc/astdeclaration.hxx index caa35d6a1598..d7d7aec22274 100644 --- a/idlc/inc/idlc/astdeclaration.hxx +++ b/idlc/inc/idlc/astdeclaration.hxx @@ -75,6 +75,8 @@ public: { return m_fullName.getStr()+1; } AstScope* getScope() { return m_pScope; } + const AstScope* getScope() const + { return m_pScope; } void setScope(AstScope* pSc) { m_pScope = pSc; } NodeType getNodeType() const diff --git a/idlc/inc/idlc/errorhandler.hxx b/idlc/inc/idlc/errorhandler.hxx index 9877f081221f..1e7e7285d0d8 100644 --- a/idlc/inc/idlc/errorhandler.hxx +++ b/idlc/inc/idlc/errorhandler.hxx @@ -118,7 +118,7 @@ public: void flagError(ErrorCode e, sal_uInt32 flag); - void forwardLookupError(AstDeclaration* pForward, const OString& name); + void forwardLookupError(const AstDeclaration* pForward, const OString& name); void constantExpected(AstDeclaration* pDecl, const OString& name); -- cgit