libnm/generate-plugin-docs: ignore files without a setting name

If no setting name is found in the file, it means that the file
possibly contains a setting superclass (e.g. NMSettingIPConfig)
without any property definition; just ignore it.
This commit is contained in:
Beniamino Galvani 2017-09-05 08:58:33 +02:00
parent 176c3cc30a
commit 20bb9bde24

View file

@ -75,9 +75,11 @@ write_header();
foreach my $c_file (@source_files) {
my $path = "$srcdir/$c_file";
my $setting_name = get_setting_name($path);
write_item("<setting name=\"$setting_name\">");
scan_doc_comments($path, $start_tag, $end_tag);
write_item("</setting>");
if ($setting_name) {
write_item("<setting name=\"$setting_name\">");
scan_doc_comments($path, $start_tag, $end_tag);
write_item("</setting>");
}
}
# write XML footer