mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 11:19:16 +02:00
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:
parent
176c3cc30a
commit
20bb9bde24
1 changed files with 5 additions and 3 deletions
|
|
@ -75,9 +75,11 @@ write_header();
|
||||||
foreach my $c_file (@source_files) {
|
foreach my $c_file (@source_files) {
|
||||||
my $path = "$srcdir/$c_file";
|
my $path = "$srcdir/$c_file";
|
||||||
my $setting_name = get_setting_name($path);
|
my $setting_name = get_setting_name($path);
|
||||||
write_item("<setting name=\"$setting_name\">");
|
if ($setting_name) {
|
||||||
scan_doc_comments($path, $start_tag, $end_tag);
|
write_item("<setting name=\"$setting_name\">");
|
||||||
write_item("</setting>");
|
scan_doc_comments($path, $start_tag, $end_tag);
|
||||||
|
write_item("</setting>");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# write XML footer
|
# write XML footer
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue