syncqt: Fix regexp capturing class names of partial specialisation
Example with this code: "template <class Key> struct QHashNode<Key, QHashDummyValue> {" The previous regexp would take "QHashNode<Key," as some keyword, and "QHashDummyValue>" as the class name. By forbidding '<' in the keyword, we avoid such mistake Change-Id: I5d5077b9e5e764e91899bcaef137d99214ea5d63 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
d376e95047
commit
84e189502a
@ -299,7 +299,7 @@ sub classNames {
|
||||
push @symbols, $1;
|
||||
} elsif($definition =~ m/^ *typedef +(.*) +([^ ]*);$/) {
|
||||
push @symbols, $2;
|
||||
} elsif($definition =~ m/^ *(template *<.*> *)?(class|struct) +([^ ]* +)?((?!$post_kw)[^<\s]+) ?(<[^>]*> ?)?\s*(?:$post_kw)?\s*((,|:)\s*(public|protected|private) *.*)? *\{\}$/o) {
|
||||
} elsif($definition =~ m/^ *(template *<.*> *)?(class|struct) +([^ <>]* +)?((?!$post_kw)[^<\s]+) ?(<[^>]*> ?)?\s*(?:$post_kw)?\s*((,|:)\s*(public|protected|private) *.*)? *\{\}$/o) {
|
||||
push @symbols, $4;
|
||||
} elsif($definition =~ m/^ *Q_DECLARE_.*ITERATOR\((.*)\);$/) {
|
||||
push @symbols, "Q" . $1 . "Iterator";
|
||||
|
Loading…
Reference in New Issue
Block a user