File tree Expand file tree Collapse file tree
analyzer/codechecker_analyzer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -699,16 +699,6 @@ def construct_config_handler(cls, args):
699699 'key' : f"{ cfg .checker } .{ cfg .option } " ,
700700 'value' : cfg .value })
701701 analyzer_config ['CheckOptions' ] = check_options
702- else :
703- try :
704- with open (args .tidy_config , 'r' ,
705- encoding = 'utf-8' , errors = 'ignore' ) as tidy_config :
706- handler .checker_config = tidy_config .read ()
707- except IOError as ioerr :
708- LOG .debug (ioerr )
709- except AttributeError as aerr :
710- # No clang tidy config file was given in the command line.
711- LOG .debug (aerr )
712702
713703 handler .analyzer_config = analyzer_config
714704
Original file line number Diff line number Diff line change @@ -461,17 +461,6 @@ def add_arguments_to_parser(parser):
461461 "clang-tidy:cc-verbatim-args-file="
462462 "<filepath>" )
463463
464- analyzer_opts .add_argument ('--tidy-config' ,
465- dest = 'tidy_config' ,
466- required = False ,
467- default = argparse .SUPPRESS ,
468- help = "DEPRECATED. "
469- "A file in YAML format containing the "
470- "configuration of clang-tidy checkers. "
471- "The file can be dumped by "
472- "'CodeChecker analyzers --dump-config "
473- "clang-tidy' command." )
474-
475464 analyzer_opts .add_argument ('--analyzer-config' ,
476465 type = analyzer_config ,
477466 dest = 'analyzer_config' ,
@@ -1286,11 +1275,6 @@ def main(args):
12861275 "consider using the option '--no-missing-checker-error'" )
12871276 sys .exit (1 )
12881277
1289- if 'tidy_config' in args :
1290- LOG .warning (
1291- "--tidy-config is deprecated and will be removed in the next "
1292- "release. Use --analyzer-config or --checker-config instead." )
1293-
12941278 # CTU loading mode is only meaningful if CTU itself is enabled.
12951279 if 'ctu_ast_mode' in args and 'ctu_phases' not in args :
12961280 LOG .error ("Analyzer option 'ctu-ast-mode' requires CTU mode enabled" )
Original file line number Diff line number Diff line change @@ -418,17 +418,6 @@ def add_arguments_to_parser(parser):
418418 "clang-tidy:cc-verbatim-args-file="
419419 "<filepath>" )
420420
421- analyzer_opts .add_argument ('--tidy-config' ,
422- dest = 'tidy_config' ,
423- required = False ,
424- default = argparse .SUPPRESS ,
425- help = "DEPRECATED. "
426- "A file in YAML format containing the "
427- "configuration of clang-tidy checkers. "
428- "The file can be dumped by "
429- "'CodeChecker analyzers --dump-config "
430- "clang-tidy' command." )
431-
432421 analyzer_opts .add_argument ('--analyzer-config' ,
433422 type = analyzer_config ,
434423 dest = 'analyzer_config' ,
You can’t perform that action at this time.
0 commit comments