[llvm] [NFC]Make file-local cl::opt global variables static (PR #126486)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 02:10:09 PST 2025


================
@@ -121,8 +121,8 @@ cl::list<std::string> SafeToolArgv("safe-tool-args", cl::Positional,
                                    cl::desc("<safe-tool arguments>..."),
                                    cl::PositionalEatsArgs);
 
-cl::opt<std::string> CCBinary("gcc", cl::init(""),
-                              cl::desc("The gcc binary to use."));
+static cl::opt<std::string> CCBinary("gcc", cl::init(""),
----------------
chrisPyr wrote:

I leaved those inside anonymous namespace as they are, this one is a mistake. Should I make them into static?

https://github.com/llvm/llvm-project/pull/126486


More information about the llvm-commits mailing list