mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[sipify] fix do not print comment after SIP directive
This commit is contained in:
parent
1f8c311158
commit
634c7aa3f4
@ -659,7 +659,11 @@ while ($line_idx < $line_count){
|
||||
$is_override = 0;
|
||||
next;
|
||||
}
|
||||
elsif ( $line =~ m/\/\// || $line =~ m/\s*typedef / || $line =~ m/\s*struct / || $line =~ m/operator\[\]\(/ ){
|
||||
elsif ( $line =~ m/\/\// ||
|
||||
$line =~ m/\s*typedef / ||
|
||||
$line =~ m/\s*struct / ||
|
||||
$line =~ m/operator\[\]\(/ ||
|
||||
$line =~ m/^\s*% \w+(.*)?$/ ){
|
||||
dbg_info('skipping comment');
|
||||
$comment = '';
|
||||
$return_type = '';
|
||||
|
@ -9,6 +9,14 @@
|
||||
|
||||
|
||||
|
||||
% ModuleHeaderCode
|
||||
#include <qgsnetworkspeedstrategy.h>
|
||||
#include <qgsnetworkdistancestrategy.h>
|
||||
%End
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -16,9 +16,17 @@ email : denis.rouzaud@gmail.com
|
||||
#ifndef SIPIFYHEADER_H
|
||||
#define SIPIFYHEADER_H
|
||||
|
||||
|
||||
#include "qgis_core.h"
|
||||
#include <QtClass>
|
||||
|
||||
#ifdef SIP_RUN
|
||||
% ModuleHeaderCode
|
||||
#include <qgsnetworkspeedstrategy.h>
|
||||
#include <qgsnetworkdistancestrategy.h>
|
||||
% End
|
||||
#endif
|
||||
|
||||
#include "sipifyheader.h"
|
||||
|
||||
// one shall include qgis.h to use SIP annotations
|
||||
@ -27,6 +35,8 @@ email : denis.rouzaud@gmail.com
|
||||
class QgsForwardDeclaration;
|
||||
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
* This is some random block comment that will not be displayed.
|
||||
* Block comments shall will placed upon class, method, enum without
|
||||
|
Loading…
x
Reference in New Issue
Block a user