Skip to content
Permalink
Browse files

sipdiff remove function definitions and Q_OBJECT/ENUM/PROPERTY

  • Loading branch information
3nids committed Feb 7, 2017
1 parent 44698d4 commit 02c2886585ee1c0bb51d7b5cb590dd8ace746251
Showing with 6 additions and 0 deletions.
  1. +6 −0 scripts/sipdiff
@@ -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

0 comments on commit 02c2886

Please sign in to comment.
You can’t perform that action at this time.