Standards class This class contains versions of standards that were used for the cppcheck Attributes: c C Standard used cpp C++ Standard used posix If Posix was used
| 1149 | |
| 1150 | |
| 1151 | class Standards: |
| 1152 | """ |
| 1153 | Standards class |
| 1154 | This class contains versions of standards that were used for the cppcheck |
| 1155 | |
| 1156 | Attributes: |
| 1157 | c C Standard used |
| 1158 | cpp C++ Standard used |
| 1159 | posix If Posix was used |
| 1160 | """ |
| 1161 | |
| 1162 | c = "" |
| 1163 | cpp = "" |
| 1164 | posix = False |
| 1165 | |
| 1166 | def set_c(self, node): |
| 1167 | self.c = node.get("version") |
| 1168 | |
| 1169 | def set_cpp(self, node): |
| 1170 | self.cpp = node.get("version") |
| 1171 | |
| 1172 | def set_posix(self, node): |
| 1173 | self.posix = node.get("posix") is not None |
| 1174 | |
| 1175 | def __repr__(self): |
| 1176 | attrs = ["c", "cpp", "posix"] |
| 1177 | return "{}({})".format( |
| 1178 | "Standards", |
| 1179 | ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) |
| 1180 | ) |
| 1181 | |
| 1182 | |
| 1183 | class CppcheckData: |