MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / PreprocessorIfCondition

Class PreprocessorIfCondition

addons/cppcheckdata.py:134–160  ·  view source on GitHub ↗

Information about #if/#elif conditions Attributes: E result

Source from the content-addressed store, hash-verified

132
133
134class PreprocessorIfCondition:
135 """
136 Information about #if/#elif conditions
137
138 Attributes:
139 E
140 result
141 """
142 #preprocessor.cpp/Preprocessor::dump
143
144 file = None
145 linenr = None
146 column = None
147 E = None
148 result = None
149
150 def __init__(self, element):
151 _load_location(self, element)
152 self.E = element.get('E')
153 self.result = int(element.get('result'))
154
155 def __repr__(self):
156 attrs = ["file", "linenr", "column", "E", "result"]
157 return "{}({})".format(
158 "PreprocessorIfCondition",
159 ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs))
160 )
161
162class ValueType:
163 """

Callers 1

iterconfigurationsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected