- This is unfortunate but necessary to retain any utility for const.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67173
91177308-0d34-0410-b5e6-
96231b3b80d8
/// Flag indicating whether this argument was used to effect
/// compilation; used for generating "argument unused"
/// diagnostics.
- bool Claimed;
+ mutable bool Claimed;
protected:
Arg(ArgClass Kind, const Option *Opt, unsigned Index);
// FIXME: We need to deal with derived arguments and set the bit
// in the original argument; not the derived one.
- void claim() { Claimed = true; }
+ void claim() const { Claimed = true; }
virtual unsigned getNumValues() const = 0;
virtual const char *getValue(const ArgList &Args, unsigned N=0) const = 0;