|
|
@ -2116,10 +2116,8 @@ sub findMocCandidates ()
|
|
|
|
seek(HFIN, 0, 0);
|
|
|
|
seek(HFIN, 0, 0);
|
|
|
|
read HFIN, $hfData, $hfsize;
|
|
|
|
read HFIN, $hfData, $hfsize;
|
|
|
|
close HFIN;
|
|
|
|
close HFIN;
|
|
|
|
# push (@list, $hf) if(index($hfData, "Q_OBJECT") >= 0); ### fast but doesn't handle //Q_OBJECT
|
|
|
|
if ( $hfData =~ /{([^}]*)\bT?Q_OBJECT/s ) {
|
|
|
|
# handle " { friend class blah; Q_OBJECT ", but don't match antlarr_Q_OBJECT (\b).
|
|
|
|
push (@list, $hf) unless $1 =~ m://[^\n]*T?Q_OBJECT[^\n]*$:s; ## reject "// (T)Q_OBJECT"
|
|
|
|
if ( $hfData =~ /{([^}]*)\bQ_OBJECT/s ) {
|
|
|
|
|
|
|
|
push (@list, $hf) unless $1 =~ m://[^\n]*Q_OBJECT[^\n]*$:s; ## reject "// Q_OBJECT"
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# The assoc array of root of headerfile and header filename
|
|
|
|
# The assoc array of root of headerfile and header filename
|
|
|
|