Skip to content

Commit

Permalink
sipdiff remove function definitions and Q_OBJECT/ENUM/PROPERTY
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 7, 2017
1 parent 44698d4 commit 02c2886
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/sipdiff
Expand Up @@ -29,6 +29,12 @@ for file in $*; do
# Remove public keyword from inherited classes
${GP}sed -i 's/\(class.*:\) public\(.*\)/\1\2/g' $tempfile

# Remove Q_OBJECT,ENUMS,PROPERTY
${GP}sed -i -r '/^\s*Q_(OBJECT|ENUMS|PROPERTY).*?$/d' $tempfile

# Remove function definition in header
${GP}sed -i -r 's/^(\s*)?(inline )?(void|bool|int|double|Q\w+)(\s+[^ ]*?\(.*?\)( const)?)\s*\{.*?\}$/\1\3\4;/g' $tempfile

vimdiff $tempfile python/$d/$f.sip

rm $tempfile
Expand Down

0 comments on commit 02c2886

Please sign in to comment.