Knowing if a default argument was inherited.


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).

Enea Zaffanella.

InheritedDefaultArg.patch (3.84 KB)

Looks good; committed as r98362.