From 8abeb154ed6047cd730ceb242a2fa08a486f739f Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Tue, 19 Sep 2023 21:09:54 +0300 Subject: DuplicateFunctionDefinition: new check for duplicate global functions Closes: https://bugs.gentoo.org/365691 Resolves: https://github.com/pkgcore/pkgcheck/issues/624 Signed-off-by: Arthur Zamarin --- .../DuplicateFunctionDefinition-0.ebuild | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 testdata/repos/standalone/DeclarationShadowedCheck/DuplicateFunctionDefinition/DuplicateFunctionDefinition-0.ebuild (limited to 'testdata/repos') diff --git a/testdata/repos/standalone/DeclarationShadowedCheck/DuplicateFunctionDefinition/DuplicateFunctionDefinition-0.ebuild b/testdata/repos/standalone/DeclarationShadowedCheck/DuplicateFunctionDefinition/DuplicateFunctionDefinition-0.ebuild new file mode 100644 index 00000000..ad8ec8b7 --- /dev/null +++ b/testdata/repos/standalone/DeclarationShadowedCheck/DuplicateFunctionDefinition/DuplicateFunctionDefinition-0.ebuild @@ -0,0 +1,21 @@ + +HOMEPAGE="https://github.com/pkgcore/pkgcheck" +DESCRIPTION="ebuild with shadowed variables" +SLOT="0" +LICENSE="BSD" + +pkg_preinst() { + : +} + +any_function() { + : +} + +any_function() { + : +} + +pkg_preinst() { + any_function +} -- cgit v1.2.3-65-gdbad