On Wed, Jul 18, 2018 at 7:03 PM, Martin Liška <mli...@suse.cz> wrote: > On 07/18/2018 03:45 AM, Jason Merrill wrote: >> On Mon, Jul 16, 2018 at 5:23 PM, Martin Liška <mli...@suse.cz> wrote: >>> For purpose of --coverage I would like to distinguish lambda functions >>> among DECL_ARTIFICIAL functions. >> >> I'm curious, why? > > It's important for GCOV to report coverage for functions that are > really present in a source file. Lambdas are such functions. > On the other hand functions like _Z41__static_initialization_and_destruction_* > or some implicit constructors (Centering<3>::Centering(Centering<3> const&)) > should not be reported. It confuses a user. Note that both have a valid > location and one can't distinguish them.
Those other functions may have *a* location, but only DECL_SOURCE_LOCATION; could we distinguish on that basis? Jason