mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
testsuite/gst-lint: Check for pad templates that aren't statically scoped.
Original commit message from CVS: * testsuite/gst-lint: Check for pad templates that aren't statically scoped.
This commit is contained in:
parent
75c18f1b4e
commit
4b8c8d5469
3 changed files with 35 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-11-07 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
|
* testsuite/gst-lint: Check for pad templates that aren't statically
|
||||||
|
scoped.
|
||||||
|
|
||||||
2004-11-07 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
2004-11-07 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* configure.ac:
|
* configure.ac:
|
||||||
|
|
|
@ -47,6 +47,7 @@ sub check_typo();
|
||||||
sub check_explicit_caps();
|
sub check_explicit_caps();
|
||||||
sub check_signals();
|
sub check_signals();
|
||||||
sub check_gettext();
|
sub check_gettext();
|
||||||
|
sub check_padtemplate();
|
||||||
|
|
||||||
sub m_check_plugindir();
|
sub m_check_plugindir();
|
||||||
sub m_check_interfaces();
|
sub m_check_interfaces();
|
||||||
|
@ -76,6 +77,7 @@ foreach $filename (<FIND>) {
|
||||||
check_explicit_caps();
|
check_explicit_caps();
|
||||||
check_signals();
|
check_signals();
|
||||||
check_gettext();
|
check_gettext();
|
||||||
|
check_padtemplate();
|
||||||
|
|
||||||
# less important stuff
|
# less important stuff
|
||||||
check_license();
|
check_license();
|
||||||
|
@ -539,3 +541,16 @@ sub check_gettext()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check that pad templates are statically scoped
|
||||||
|
#
|
||||||
|
sub check_padtemplate()
|
||||||
|
{
|
||||||
|
foreach $line (@lines){
|
||||||
|
if ($line =~ /GstStaticPadTemplate/ && !($line =~ /static/)) {
|
||||||
|
print "W: pad template definitions should be static\n"
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ sub check_typo();
|
||||||
sub check_explicit_caps();
|
sub check_explicit_caps();
|
||||||
sub check_signals();
|
sub check_signals();
|
||||||
sub check_gettext();
|
sub check_gettext();
|
||||||
|
sub check_padtemplate();
|
||||||
|
|
||||||
sub m_check_plugindir();
|
sub m_check_plugindir();
|
||||||
sub m_check_interfaces();
|
sub m_check_interfaces();
|
||||||
|
@ -76,6 +77,7 @@ foreach $filename (<FIND>) {
|
||||||
check_explicit_caps();
|
check_explicit_caps();
|
||||||
check_signals();
|
check_signals();
|
||||||
check_gettext();
|
check_gettext();
|
||||||
|
check_padtemplate();
|
||||||
|
|
||||||
# less important stuff
|
# less important stuff
|
||||||
check_license();
|
check_license();
|
||||||
|
@ -539,3 +541,16 @@ sub check_gettext()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check that pad templates are statically scoped
|
||||||
|
#
|
||||||
|
sub check_padtemplate()
|
||||||
|
{
|
||||||
|
foreach $line (@lines){
|
||||||
|
if ($line =~ /GstStaticPadTemplate/ && !($line =~ /static/)) {
|
||||||
|
print "W: pad template definitions should be static\n"
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue