Doxygen
Toggle main menu visibility
Loading...
Searching...
No Matches
define.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* Copyright (C) 1997-2020 by Dimitri van Heesch.
4
*
5
* Permission to use, copy, modify, and distribute this software and its
6
* documentation under the terms of the GNU General Public License is hereby
7
* granted. No representations are made about the suitability of this software
8
* for any purpose. It is provided "as is" without express or implied warranty.
9
* See the GNU General Public License for more details.
10
*
11
* Documents produced by Doxygen are derivative works derived from the
12
* input used in their production; they are not affected by this license.
13
*
14
*/
15
16
#ifndef DEFINE_H
17
#define DEFINE_H
18
19
#include <vector>
20
#include <memory>
21
#include <string>
22
#include <unordered_map>
23
24
#include "
qcstring.h
"
25
#include "
containers.h
"
26
27
class
FileDef
;
28
29
/** A class representing a macro definition. */
30
class
Define
31
{
32
public
:
33
QCString
name
;
34
QCString
definition
;
35
QCString
fileName
;
36
QCString
args
;
37
FileDef
*
fileDef
=
nullptr
;
38
int
lineNr
= 1;
39
int
columnNr
= 1;
40
int
nargs
= -1;
41
bool
undef
=
FALSE
;
42
bool
varArgs
=
FALSE
;
43
bool
isPredefined
=
FALSE
;
44
bool
nonRecursive
=
FALSE
;
45
bool
expandAsDefined
=
FALSE
;
46
};
47
48
/** List of all macro definitions */
49
using
DefineList
= std::vector<Define>;
50
using
DefinesPerFileList
= std::unordered_map< std::string, DefineList >;
51
52
#endif
Define
A class representing a macro definition.
Definition
define.h:31
Define::lineNr
int lineNr
Definition
define.h:38
Define::varArgs
bool varArgs
Definition
define.h:42
Define::args
QCString args
Definition
define.h:36
Define::fileName
QCString fileName
Definition
define.h:35
Define::name
QCString name
Definition
define.h:33
Define::fileDef
FileDef * fileDef
Definition
define.h:37
Define::nonRecursive
bool nonRecursive
Definition
define.h:44
Define::isPredefined
bool isPredefined
Definition
define.h:43
Define::columnNr
int columnNr
Definition
define.h:39
Define::definition
QCString definition
Definition
define.h:34
Define::nargs
int nargs
Definition
define.h:40
Define::expandAsDefined
bool expandAsDefined
Definition
define.h:45
Define::undef
bool undef
Definition
define.h:41
FileDef
A model of a file symbol.
Definition
filedef.h:99
QCString
This is an alternative implementation of QCString.
Definition
qcstring.h:101
containers.h
DefinesPerFileList
std::unordered_map< std::string, DefineList > DefinesPerFileList
Definition
define.h:50
DefineList
std::vector< Define > DefineList
List of all macro definitions.
Definition
define.h:49
qcstring.h
FALSE
#define FALSE
Definition
qcstring.h:34
src
define.h
Generated by
1.17.0