Skip to content

Commit 02c2886

Browse files
committed
sipdiff remove function definitions and Q_OBJECT/ENUM/PROPERTY
1 parent 44698d4 commit 02c2886

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/sipdiff

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ for file in $*; do
2929
# Remove public keyword from inherited classes
3030
${GP}sed -i 's/\(class.*:\) public\(.*\)/\1\2/g' $tempfile
3131

32+
# Remove Q_OBJECT,ENUMS,PROPERTY
33+
${GP}sed -i -r '/^\s*Q_(OBJECT|ENUMS|PROPERTY).*?$/d' $tempfile
34+
35+
# Remove function definition in header
36+
${GP}sed -i -r 's/^(\s*)?(inline )?(void|bool|int|double|Q\w+)(\s+[^ ]*?\(.*?\)( const)?)\s*\{.*?\}$/\1\3\4;/g' $tempfile
37+
3238
vimdiff $tempfile python/$d/$f.sip
3339

3440
rm $tempfile

0 commit comments

Comments
 (0)