diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-05-22 14:08:39 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-05-22 14:08:39 (GMT) |
commit | ff5ba4a40fa13c0987272d463ba0edc57bc10fa6 (patch) | |
tree | 7041494e22c0b3d9eb68ad7a89f3fd48e4bcdf5a /src/define.h | |
parent | e3470060b067bbb5d949de01758aff491fc804c3 (diff) | |
download | Doxygen-ff5ba4a40fa13c0987272d463ba0edc57bc10fa6.zip Doxygen-ff5ba4a40fa13c0987272d463ba0edc57bc10fa6.tar.gz Doxygen-ff5ba4a40fa13c0987272d463ba0edc57bc10fa6.tar.bz2 |
Refactoring: Removed creation of MemberDef's for macro definitions from pre.l
Diffstat (limited to 'src/define.h')
-rw-r--r-- | src/define.h | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/src/define.h b/src/define.h index 3627140..0a3d62c 100644 --- a/src/define.h +++ b/src/define.h @@ -1,6 +1,6 @@ /****************************************************************************** * - * Copyright (C) 1997-2015 by Dimitri van Heesch. + * Copyright (C) 1997-2020 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby @@ -28,31 +28,21 @@ class FileDef; class Define { public: - Define(); - Define(const Define &d); - ~Define(); - bool hasDocumentation(); QCString name; QCString definition; QCString fileName; - QCString doc; - QCString brief; QCString args; - QCString anchor; - FileDef *fileDef; - int lineNr; - int columnNr; - int nargs; - bool undef; - bool varArgs; - bool isPredefined; - bool nonRecursive; + FileDef *fileDef = 0; + int lineNr = 1; + int columnNr = 1; + int nargs = -1; + bool undef = FALSE; + bool varArgs = FALSE; + bool isPredefined = FALSE; + bool nonRecursive = FALSE; }; -/** A dictionary of references to Define objects. */ -typedef std::map< std::string,Define* > DefineMapRef; - -/** A dictionary of managed Define objects. */ -typedef std::map< std::string,std::unique_ptr<Define> > DefineMapOwning; +/** List of all macro definitions */ +using DefineList = std::vector< std::unique_ptr<Define> >; #endif |