papachristoumarios/acycliCode

Recursively add includes to dependencies

Closed this issue · 1 comments

Example:

// foo.h
#include "boo.h"
#include <stdio.h>

int main() {
	printf("%d", f(3));
}
// boo.h
#include "hoo.h"
// hoo.h
int f(int x);
// hoo.h
int f(int x) {
    return x;
}

Would result in calling cflow with hoo.h boo.h foo.c

Closed. Added -d flag to determine the depth of search for the BFS. If omitted the program does a full BFS