summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/plugin.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-05-25 13:29:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-05-25 15:46:01 +0200
commitcc146f7a12ee0c0e829d2827117558f9cba11858 (patch)
tree816d6e1704eca9d927ad31fa9b84d0c2137fe468 /compilerplugins/clang/plugin.cxx
parent953d2704025ef31198f5546ad95cc54401b592a9 (diff)
Code duplication
Change-Id: I1af2948e0332044ef88bc7dbd837e8c7afe7af19 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94785 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins/clang/plugin.cxx')
-rw-r--r--compilerplugins/clang/plugin.cxx2
1 files changed, 1 insertions, 1 deletions
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<Stmt*>(parentsRange.begin()->get<Stmt>());
}
-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();