[flang-commits] [clang] [clang-tools-extra] [flang] [lldb] [llvm] [mlir] [polly] Add static to command line option (cl::opt) (PR #126243)
Rahul Joshi via flang-commits
flang-commits at lists.llvm.org
Fri Feb 7 10:47:00 PST 2025
================
@@ -119,24 +119,24 @@ int main(int argc, char **argv) {
// options as static variables.. some of which overlap with our options.
llvm::cl::ResetCommandLineParser();
- llvm::cl::opt<std::string> inputFilename(
+ static llvm::cl::opt<std::string> inputFilename(
----------------
jurahul wrote:
These are function local variables and need not be changed to static.
https://github.com/llvm/llvm-project/pull/126243
More information about the flang-commits
mailing list