0

I am using cppclean ( as described here https://stackoverflow.com/a/615057/356726 ) to find unused .h #include s.

Unfortunately in crashes for some files. Can I exclude files from being processed? Just want to excluded the troublemakers.

So far I have only found a very stupid workaround by using cppclean on a bogus copied directory and manually remove them (gosh!).

Community
  • 1
  • 1
Horst Walter
  • 13,663
  • 32
  • 126
  • 228

1 Answers1

1

If you have the find program available, you can try something like

find /path/to/source/directory -type f ! -name 'file1.name' ! -path '/file2/path' -exec /path/to/cppclean {} +.

cyangekko
  • 11
  • 1