From 447b1fee1556496fe766b06c6f4d2b377d8d96b2 Mon Sep 17 00:00:00 2001 From: royqh1979 Date: Fri, 6 Aug 2021 11:28:02 +0800 Subject: [PATCH] work save --- RedPandaIDE/parser/utils.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/RedPandaIDE/parser/utils.h b/RedPandaIDE/parser/utils.h index 3cf49f80..7d674b19 100644 --- a/RedPandaIDE/parser/utils.h +++ b/RedPandaIDE/parser/utils.h @@ -1,5 +1,6 @@ #ifndef PARSER_UTILS_H #define PARSER_UTILS_H +#include #include #include #include @@ -100,18 +101,18 @@ struct Statement { int line; // declaration int definitionLine; // definition QString fileName; // declaration - QString definitionFileName: AnsiString; // definition - _InProject: boolean; // statement in project - _InSystemHeader: boolean; // statement in system header (#include <>) - _Children: TList; // Children Statement to speedup search - _ChildrenIndex: TDevStringHash; // children statements index to speedup search - _Friends: TStringHash; // friend class / functions - _Static: boolean; // static function / variable - _Inherited: boolean; // inherted member; - _FullName: AnsiString; // fullname(including class and namespace) - _Usings: TStringList; - _Node: Pointer; // the Node TStatementList used to save this statement - _UsageCount : integer; //Usage Count, used by TCodeCompletion - _FreqTop: integer; // Usage Count Rank, used by TCodeCompletion - _NoNameArgs: AnsiString; // Args without name + QString definitionFileName; // definition + bool inProject; // statement in project + bool inSystemHeader; // statement in system header (#include <>) + QList> children; // Children Statements + QHash> childrenMap; //children map index to speedup search + QSet friends; // friend class / functions + bool isStatic; // static function / variable + bool isInherited; // inherted member; + QString fullName; // fullname(including class and namespace) + QStringList usingList; // using namespaces + int usageCount; //Usage Count, used by TCodeCompletion + int freqTop; // Usage Count Rank, used by TCodeCompletion + QString noNameArgs;// Args without name +}; #endif // PARSER_UTILS_H