#include <tools/ccanlint/ccanlint.h>
#include <tools/tools.h>
-#include <ccan/talloc/talloc.h>
#include <ccan/str/str.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>
static void examples_relevant_check(struct manifest *m,
- bool keep,
unsigned int *timeleft,
struct score *score)
{
if (!streq(d->type, "example"))
continue;
+ if (!d->function) {
+ score_file_error(score, f, d->srcline+1,
+ "Function name not found in summary line");
+ continue;
+ }
for (i = 0; i < d->num_lines; i++) {
if (strstr(d->lines[i], d->function))
found = true;