[PATCH] Always emit function declaration when generating profile instrumentation

Duncan P. N. Exon Smith dexonsmith at apple.com
Wed May 28 16:08:47 PDT 2014


> On 2014-May-28, at 15:55, Eric Christopher <echristo at gmail.com> wrote:
> 
> ... I'll bite.
> 
> Why do you want to know "this function wasn't instrumented" versus
> "this had no calls" for coverage? If it's not instrumented it's
> definitely not called. Otherwise you need to do this for all functions
> (and who knows what chaos with special member functions that you
> didn't have to create... :)

I can think of two scenarios:

 1. The error/warning messages should be different: "profile out of date" vs.
    "foo() has no coverage".

 2. All you have is source and the profile data (i.e., a gcov-like flow,
    without an AST), and you want to output the list of functions with no
    coverage.



More information about the cfe-commits mailing list