Skip to content

Instantly share code, notes, and snippets.

@selaux
selaux / orphans.py
Last active May 29, 2016 16:16 — forked from renefritze/orphans.py
finds cpp files from given dir that are never included in given dir
#!/usr/bin/env python
import sys
import re
import pprint
import os
import fnmatch
headers = { 'cpp': ['*.h', '*.hh', '*.hpp'] }
sources = { 'cpp': ['*.c', '*.cpp', '*.cc']}