summaryrefslogtreecommitdiff
path: root/src/define.h
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-15 11:14:06 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-15 11:14:06 +0900
commit8a60368b383c269d70fd135694f8b24e6bf216dc (patch)
tree03f17b157f56a3d696d2bc84bc12f392e2ead105 /src/define.h
parent6034e81193d784e8af78fa8ab56438ab1e0d7839 (diff)
downloaddoxygen-8a60368b383c269d70fd135694f8b24e6bf216dc.tar.gz
doxygen-8a60368b383c269d70fd135694f8b24e6bf216dc.tar.bz2
doxygen-8a60368b383c269d70fd135694f8b24e6bf216dc.zip
Imported Upstream version 1.8.19upstream/1.8.19
Diffstat (limited to 'src/define.h')
-rw-r--r--src/define.h39
1 files changed, 16 insertions, 23 deletions
diff --git a/src/define.h b/src/define.h
index 3627140..015d399 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
@@ -16,11 +16,13 @@
#ifndef DEFINE_H
#define DEFINE_H
-#include <map>
-#include <string>
+#include <vector>
#include <memory>
+#include <string>
+#include <unordered_map>
#include <qcstring.h>
+#include "containers.h"
class FileDef;
@@ -28,31 +30,22 @@ 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> >;
+using DefinesPerFileList = std::unordered_map< std::string, DefineList >;
#endif