(conf,data,cli,debugprint)
| 375 | evalExpr(conf.class_name, exp, mockToken, msgType) |
| 376 | |
| 377 | def process_data(conf,data,cli,debugprint): |
| 378 | if conf.file: |
| 379 | check_file_naming(conf,data) |
| 380 | |
| 381 | if conf.namespace: |
| 382 | check_namespace_naming(conf,data) |
| 383 | |
| 384 | unguarded_include_files = [] |
| 385 | if conf.include_guard and conf.include_guard.get('required',1): |
| 386 | unguarded_include_files = [fn for fn in data.files if re.match(conf.include_guard_header_re,fn)] |
| 387 | |
| 388 | for cfg in data.configurations: |
| 389 | if not cli: |
| 390 | print('Checking config %s...' % cfg.name) |
| 391 | if conf.variable: |
| 392 | check_variable_naming(conf,cfg,debugprint) |
| 393 | if conf.private_member: |
| 394 | check_gpp_naming(conf.private_member,cfg,'Private','Private member variable') |
| 395 | if conf.public_member: |
| 396 | check_gpp_naming(conf.public_member,cfg,'Public','Public member variable') |
| 397 | if conf.global_variable: |
| 398 | check_gpp_naming(conf.global_variable,cfg,'Global','Global variable') |
| 399 | if conf.function_name: |
| 400 | check_function_naming(conf,cfg,debugprint) |
| 401 | if conf.class_name: |
| 402 | check_class_naming(conf,cfg) |
| 403 | if conf.include_guard: |
| 404 | check_include_guards(conf,cfg,unguarded_include_files) |
| 405 | |
| 406 | for fn in unguarded_include_files: |
| 407 | mockToken = DataStruct(fn,0,os.path.basename(fn)) |
| 408 | reportNamingError(mockToken,'Missing include guard','includeGuardMissing') |
| 409 | |
| 410 | if __name__ == "__main__": |
| 411 | parser = cppcheckdata.ArgumentParser() |
no test coverage detected