work save

This commit is contained in:
royqh1979 2021-08-06 11:28:02 +08:00
parent 31ace6b981
commit 447b1fee15
1 changed files with 15 additions and 14 deletions

View File

@ -1,5 +1,6 @@
#ifndef PARSER_UTILS_H #ifndef PARSER_UTILS_H
#define PARSER_UTILS_H #define PARSER_UTILS_H
#include <QMap>
#include <QObject> #include <QObject>
#include <QSet> #include <QSet>
#include <memory> #include <memory>
@ -100,18 +101,18 @@ struct Statement {
int line; // declaration int line; // declaration
int definitionLine; // definition int definitionLine; // definition
QString fileName; // declaration QString fileName; // declaration
QString definitionFileName: AnsiString; // definition QString definitionFileName; // definition
_InProject: boolean; // statement in project bool inProject; // statement in project
_InSystemHeader: boolean; // statement in system header (#include <>) bool inSystemHeader; // statement in system header (#include <>)
_Children: TList; // Children Statement to speedup search QList<std::weak_ptr<Statement>> children; // Children Statements
_ChildrenIndex: TDevStringHash; // children statements index to speedup search QHash<QString,std::weak_ptr<Statement>> childrenMap; //children map index to speedup search
_Friends: TStringHash; // friend class / functions QSet<QString> friends; // friend class / functions
_Static: boolean; // static function / variable bool isStatic; // static function / variable
_Inherited: boolean; // inherted member; bool isInherited; // inherted member;
_FullName: AnsiString; // fullname(including class and namespace) QString fullName; // fullname(including class and namespace)
_Usings: TStringList; QStringList usingList; // using namespaces
_Node: Pointer; // the Node TStatementList used to save this statement int usageCount; //Usage Count, used by TCodeCompletion
_UsageCount : integer; //Usage Count, used by TCodeCompletion int freqTop; // Usage Count Rank, used by TCodeCompletion
_FreqTop: integer; // Usage Count Rank, used by TCodeCompletion QString noNameArgs;// Args without name
_NoNameArgs: AnsiString; // Args without name };
#endif // PARSER_UTILS_H #endif // PARSER_UTILS_H