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

Class Configuration

addons/cppcheckdata.py:1015–1107  ·  view source on GitHub ↗

Configuration class This class contains the directives, tokens, scopes, functions, variables, value flows, and suppressions for one configuration. Attributes: name Name of the configuration, "" for default directives List of Directive items macro

Source from the content-addressed store, hash-verified

1013
1014
1015class Configuration:
1016 """
1017 Configuration class
1018 This class contains the directives, tokens, scopes, functions,
1019 variables, value flows, and suppressions for one configuration.
1020
1021 Attributes:
1022 name Name of the configuration, "" for default
1023 directives List of Directive items
1024 macro_usage List of used macros
1025 preprocessor_if_conditions List of preprocessor if conditions that was evaluated during preprocessing
1026 tokenlist List of Token items
1027 scopes List of Scope items
1028 containers List of Container items
1029 functions List of Function items
1030 variables List of Variable items
1031 valueflow List of ValueFlow values
1032 standards List of Standards values
1033 """
1034
1035 name = ''
1036 directives = []
1037 macro_usage = []
1038 preprocessor_if_conditions = []
1039 tokenlist = []
1040 scopes = []
1041 containers = []
1042 functions = []
1043 variables = []
1044 typedefInfo = []
1045 valueflow = []
1046 standards = None
1047 clang_warnings = []
1048
1049 def __init__(self, name):
1050 self.name = name
1051 self.directives = []
1052 self.macro_usage = []
1053 self.preprocessor_if_conditions = []
1054 self.tokenlist = []
1055 self.scopes = []
1056 self.containers = []
1057 self.functions = []
1058 self.variables = []
1059 self.typedefInfo = []
1060 self.valueflow = []
1061 self.standards = Standards()
1062 self.clang_warnings = []
1063
1064 def set_tokens_links(self):
1065 """Set next/previous links between tokens."""
1066 prev = None
1067 for token in self.tokenlist:
1068 token.previous = prev
1069 if prev:
1070 prev.next = token
1071 prev = token
1072

Callers 1

iterconfigurationsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected