Bug 669 & 670 - Build errors with RVCT 4.0: Error: #504-D: nonstandard form for taking the address of a member function
#!/bin/sh
FILE_EXTENSIONS_TO_SEARCH="cpp h m mm"
for framework in $*; do
echo -e "\n$framework\n=================="
for ext in ${FILE_EXTENSIONS_TO_SEARCH}; do
find . -name "*.$ext" -exec grep $framework {} ';' | grep '\(include\|import\)' | sed -e 's|.*/\(.*\.h\).*|\1|'
done | sort | uniq
done