blob: 6cbb636da1e4b84a4e2353401d11266b9f44b98d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/******************************************************************************
*
* 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
* granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
* Documents produced by Doxygen are derivative works derived from the
* input used in their production; they are not affected by this license.
*
*/
#ifndef DEFINE_H
#define DEFINE_H
#include <vector>
#include <memory>
#include <string>
#include <unordered_map>
#include "qcstring.h"
#include "containers.h"
class FileDef;
/** A class representing a macro definition. */
class Define
{
public:
QCString name;
QCString definition;
QCString fileName;
QCString args;
FileDef *fileDef = 0;
int lineNr = 1;
int columnNr = 1;
int nargs = -1;
bool undef = FALSE;
bool varArgs = FALSE;
bool isPredefined = FALSE;
bool nonRecursive = FALSE;
};
/** List of all macro definitions */
using DefineList = std::vector<Define>;
using DefinesPerFileList = std::unordered_map< std::string, DefineList >;
#endif
|