equal
deleted
inserted
replaced
823 } |
823 } |
824 |
824 |
825 return sections; |
825 return sections; |
826 } |
826 } |
827 |
827 |
828 const Node *CppCodeMarker::resolveTarget(const QString &target, |
828 const Node *CppCodeMarker::resolveTarget(const QString& target, |
829 const Tree *tree, |
829 const Tree* tree, |
830 const Node *relative) |
830 const Node* relative, |
|
831 const Node* self) |
831 { |
832 { |
832 if (target.endsWith("()")) { |
833 if (target.endsWith("()")) { |
833 const FunctionNode *func; |
834 const FunctionNode *func; |
834 QString funcName = target; |
835 QString funcName = target; |
835 funcName.chop(2); |
836 funcName.chop(2); |
867 } |
868 } |
868 } |
869 } |
869 else { |
870 else { |
870 QStringList path = target.split("::"); |
871 QStringList path = target.split("::"); |
871 const Node *node; |
872 const Node *node; |
|
873 int flags = Tree::SearchBaseClasses | |
|
874 Tree::SearchEnumValues | |
|
875 Tree::NonFunction; |
872 if ((node = tree->findNode(path, |
876 if ((node = tree->findNode(path, |
873 relative, |
877 relative, |
874 Tree::SearchBaseClasses | |
878 flags, |
875 Tree::SearchEnumValues | |
879 self))) |
876 Tree::NonFunction))) |
|
877 return node; |
880 return node; |
878 } |
881 } |
879 return 0; |
882 return 0; |
880 } |
883 } |
881 |
884 |