4

Does anyone know if its possible to have clang-tidy -fix to NOT make modifications in header files. (either at all or headers only in the current directory)

I'd like to clean selected source files first before attempting to work on the hundred of global headers

MyDeveloperDay
  • 2,485
  • 1
  • 17
  • 20

1 Answers1

2

Use clang-tidy with the --header-filter option to select only those header files you want processed.

pablo285
  • 2,460
  • 4
  • 14
  • 38
  • Thanks for the reponse, I also worked out I could do something like this -line-filter='[{"name":"File.Cpp"},{"name":"File.h"}]' – MyDeveloperDay Oct 18 '18 at 11:50