[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [creduce-bugs] a few more crashes

On 2016-02-03 07:30, Eric Eide wrote:
Yang Chen <chenyang@cs.utah.edu> writes:

Fixed. Thanks, John!

I noticed that the commit message for this fix said "skip functions included
from header files."

How does that work with mutli-file reductions?

Sorry for the ambiguity here. The commit message meant to say that we don't attempt to modify the code that exists in the included header files. For example, let's say we want to rename all the functions in the code below:

/* sample code */
#include <stdio.h>
void foo() {}
void bar() {}
void baz() {}
/* sample code */

clang_delta sees the code included via "#include <stdio.h>". However, we only want our renaming pass to touch foo, bar and baz, but not those functions in stdio.h.

- Yang