@@ -655,15 +655,15 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {
655655 cl::opt<std::string> CovFilename (
656656 cl::Positional, cl::desc (" Covered executable or object file." ));
657657
658- cl::list<std::string> CovFilenames (
658+ static cl::list<std::string> CovFilenames (
659659 " object" , cl::desc (" Coverage executable or object file" ));
660660
661661 cl::opt<bool > DebugDumpCollectedObjects (
662662 " dump-collected-objects" , cl::Optional, cl::Hidden,
663663 cl::desc (" Show the collected coverage object files" ));
664664
665- cl::list<std::string> InputSourceFiles (" sources" , cl::Positional,
666- cl::desc (" <Source files>" ));
665+ static cl::list<std::string> InputSourceFiles (" sources" , cl::Positional,
666+ cl::desc (" <Source files>" ));
667667
668668 cl::opt<bool > DebugDumpCollectedPaths (
669669 " dump-collected-paths" , cl::Optional, cl::Hidden,
@@ -674,13 +674,13 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {
674674 cl::desc (
675675 " File with the profile data obtained after an instrumented run" ));
676676
677- cl::list<std::string> Arches (
677+ static cl::list<std::string> Arches (
678678 " arch" , cl::desc (" architectures of the coverage mapping binaries" ));
679679
680680 cl::opt<bool > DebugDump (" dump" , cl::Optional,
681681 cl::desc (" Show internal debug dump" ));
682682
683- cl::list<std::string> DebugFileDirectory (
683+ static cl::list<std::string> DebugFileDirectory (
684684 " debug-file-directory" ,
685685 cl::desc (" Directories to search for object files by build ID" ));
686686 cl::opt<bool > Debuginfod (
@@ -698,31 +698,31 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {
698698 " lcov tracefile output" )),
699699 cl::init (CoverageViewOptions::OutputFormat::Text));
700700
701- cl::list<std::string> PathRemaps (
701+ static cl::list<std::string> PathRemaps (
702702 " path-equivalence" , cl::Optional,
703703 cl::desc (" <from>,<to> Map coverage data paths to local source file "
704704 " paths" ));
705705
706706 cl::OptionCategory FilteringCategory (" Function filtering options" );
707707
708- cl::list<std::string> NameFilters (
708+ static cl::list<std::string> NameFilters (
709709 " name" , cl::Optional,
710710 cl::desc (" Show code coverage only for functions with the given name" ),
711711 cl::cat (FilteringCategory));
712712
713- cl::list<std::string> NameFilterFiles (
713+ static cl::list<std::string> NameFilterFiles (
714714 " name-allowlist" , cl::Optional,
715715 cl::desc (" Show code coverage only for functions listed in the given "
716716 " file" ),
717717 cl::cat (FilteringCategory));
718718
719- cl::list<std::string> NameRegexFilters (
719+ static cl::list<std::string> NameRegexFilters (
720720 " name-regex" , cl::Optional,
721721 cl::desc (" Show code coverage only for functions that match the given "
722722 " regular expression" ),
723723 cl::cat (FilteringCategory));
724724
725- cl::list<std::string> IgnoreFilenameRegexFilters (
725+ static cl::list<std::string> IgnoreFilenameRegexFilters (
726726 " ignore-filename-regex" , cl::Optional,
727727 cl::desc (" Skip source code files with file paths that match the given "
728728 " regular expression" ),
@@ -756,7 +756,7 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {
756756 " use-color" , cl::desc (" Emit colored output (default=autodetect)" ),
757757 cl::init (cl::BOU_UNSET));
758758
759- cl::list<std::string> DemanglerOpts (
759+ static cl::list<std::string> DemanglerOpts (
760760 " Xdemangler" , cl::desc (" <demangler-path>|<demangler-option>" ));
761761
762762 cl::opt<bool > RegionSummary (
@@ -784,8 +784,8 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {
784784 cl::opt<unsigned > NumThreads (
785785 " num-threads" , cl::init (0 ),
786786 cl::desc (" Number of merge threads to use (default: autodetect)" ));
787- cl::alias NumThreadsA (" j" , cl::desc (" Alias for --num-threads" ),
788- cl::aliasopt (NumThreads));
787+ static cl::alias NumThreadsA (" j" , cl::desc (" Alias for --num-threads" ),
788+ cl::aliasopt (NumThreads));
789789
790790 cl::opt<std::string> CompilationDirectory (
791791 " compilation-dir" , cl::init (" " ),
@@ -1020,8 +1020,8 @@ int CodeCoverageTool::doShow(int argc, const char **argv,
10201020 cl::opt<std::string> ShowOutputDirectory (
10211021 " output-dir" , cl::init (" " ),
10221022 cl::desc (" Directory in which coverage information is written out" ));
1023- cl::alias ShowOutputDirectoryA (" o" , cl::desc (" Alias for --output-dir" ),
1024- cl::aliasopt (ShowOutputDirectory));
1023+ static cl::alias ShowOutputDirectoryA (" o" , cl::desc (" Alias for --output-dir" ),
1024+ cl::aliasopt (ShowOutputDirectory));
10251025
10261026 cl::opt<bool > BinaryCounters (
10271027 " binary-counters" , cl::Optional,
0 commit comments