[llvm] [Support] Accept -no-<name> to negate cl::opt<bool> (PR #224978)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 21 00:54:08 PDT 2026
================
@@ -292,6 +292,9 @@ class LLVM_ABI Option {
return Value ? ((enum ValueExpected)Value) : getValueExpectedFlagDefault();
}
+ // Whether -no-<ArgStr> is accepted and sets the option to false.
+ virtual bool isNegatable() const { return false; }
----------------
MaskRay wrote:
Switched to a MiscFlags bit.
https://github.com/llvm/llvm-project/pull/224978
More information about the llvm-commits
mailing list