Doxygen
define.h
浏览该文件的文档.
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:
38  int lineNr = 1;
39  int columnNr = 1;
40  int nargs = -1;
41  bool undef = FALSE;
42  bool varArgs = FALSE;
45 };
46 
47 /** List of all macro definitions */
48 using DefineList = std::vector<Define>;
49 using DefinesPerFileList = std::unordered_map< std::string, DefineList >;
50 
51 #endif
Define::fileDef
FileDef * fileDef
Definition: define.h:37
Define::name
QCString name
Definition: define.h:33
Define::isPredefined
bool isPredefined
Definition: define.h:43
Define::args
QCString args
Definition: define.h:36
Define::nargs
int nargs
Definition: define.h:40
Define::columnNr
int columnNr
Definition: define.h:39
Define::varArgs
bool varArgs
Definition: define.h:42
qcstring.h
DefineList
std::vector< Define > DefineList
List of all macro definitions
Definition: define.h:48
Define::nonRecursive
bool nonRecursive
Definition: define.h:44
Define::definition
QCString definition
Definition: define.h:34
Define
A class representing a macro definition.
Definition: define.h:30
containers.h
DefinesPerFileList
std::unordered_map< std::string, DefineList > DefinesPerFileList
Definition: define.h:49
FileDef
A model of a file symbol.
Definition: filedef.h:73
Define::fileName
QCString fileName
Definition: define.h:35
Define::lineNr
int lineNr
Definition: define.h:38
Define::undef
bool undef
Definition: define.h:41
FALSE
#define FALSE
Definition: qcstring.h:33
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108