Setting a sub-option to clang-tidy

Viewed 666
1 Answers

Use the -config option and put the additional options into CheckOptions.

clang-tidy -config="{Checks: '-*,readability-implicit-bool-conversion', 
  CheckOptions: [{key: readability-implicit-bool-conversion.AllowPointerConditions, value: 1} ]}" 
  test.cpp -- -std=c++11
Related