Knowing if a default argument was inherited.

Hello.

The attached patch adds a Boolean flag (named HasInheritedDefaultArg) to ParmVarDecl nodes. The flag (normally false) allows to distinguish those parameters having a written default argument from those inheriting such a default argument (when merging the current function declaration with a a previous one).

Cheers,
Enea Zaffanella.

InheritedDefaultArg.patch (3.84 KB)

Looks good; committed as r98362.

John.