From cc146f7a12ee0c0e829d2827117558f9cba11858 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 25 May 2020 13:29:30 +0200 Subject: Code duplication Change-Id: I1af2948e0332044ef88bc7dbd837e8c7afe7af19 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94785 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- compilerplugins/clang/plugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compilerplugins/clang/plugin.cxx') diff --git a/compilerplugins/clang/plugin.cxx b/compilerplugins/clang/plugin.cxx index ff15e06750e5..b885ab5e5555 100644 --- a/compilerplugins/clang/plugin.cxx +++ b/compilerplugins/clang/plugin.cxx @@ -200,7 +200,7 @@ Stmt* Plugin::getParentStmt( Stmt* stmt ) return const_cast(parentsRange.begin()->get()); } -static const Decl* getFunctionDeclContext(ASTContext& context, const Stmt* stmt) +const Decl* getFunctionDeclContext(ASTContext& context, const Stmt* stmt) { auto const parents = context.getParents(*stmt); auto it = parents.begin(); -- cgit