[Mlir-commits] [clang] [clang-tools-extra] [flang] [lldb] [llvm] [mlir] [polly] Add static to command line option (cl::opt) (PR #126243)
Mehdi Amini
llvmlistbot at llvm.org
Sat Feb 8 04:09:20 PST 2025
joker-eph wrote:
> The linked bug seems to explain it, I think?
I don't actually see a description of what is the problem to solve really.
> It seems to be the usual "if something isn't/doesn't need to be declared in a header, then it should be file-local static, so as to not conflict with other local names in other files"?
All of the files are `main()` file, not library files. Not clear to me what they would conflict with?
> Right, though I think @joker-eph comment is that for lot of the MLIR changes, these option variables are function local and they need not be changed to static. This issue is only applicable to file scoped variables.
That too :)
https://github.com/llvm/llvm-project/pull/126243
More information about the Mlir-commits
mailing list