]> Kevux Git Server - rit/commit
coccinelle: meson: rename variables to be more specific
authorKarthik Nayak <karthik.188@gmail.com>
Wed, 23 Apr 2025 08:15:35 +0000 (10:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Apr 2025 17:34:12 +0000 (10:34 -0700)
commit8e980b7f2501c4b9429394f7287757af7aef81ba
tree43cd75050ee83fddd4e4c1c4fb6ab8d07112d756
parenta064b0be55f60b0b8281b4a6a38917eab4b9c50f
coccinelle: meson: rename variables to be more specific

In Meson, included subdirs export their variables to top level Meson
builds. In 'contrib/coccinelle/meson.build', we define two such
variables `sources` and `headers`. While these variables are specific to
the checks in the 'contrib/coccinelle/' directory, they also pollute the
top level 'meson.build'.

Rename them to be more specific, this ensures that they aren't
mistakenly used in the upper levels and avoid variable name collisions.

While here, change the empty list denotation to be consistent with other
places.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/coccinelle/meson.build