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

Function check_namespace_naming

addons/namingng.py:293–299  ·  view source on GitHub ↗
(conf,data)

Source from the content-addressed store, hash-verified

291 reportNamingError(mockToken, 'File name ' + basename + ' violates naming convention')
292
293def check_namespace_naming(conf,data):
294 for tk in data.rawTokens:
295 if tk.str != 'namespace':
296 continue
297 mockToken = DataStruct(tk.next.file, tk.next.linenr, tk.next.str, tk.next.column)
298 for exp in conf.namespace:
299 evalExpr(conf.namespace, exp, mockToken, 'Namespace')
300
301def check_variable_naming(conf,cfg,debugprint):
302 for var in cfg.variables:

Callers 1

process_dataFunction · 0.85

Calls 2

DataStructClass · 0.85
evalExprFunction · 0.85

Tested by

no test coverage detected