When working with my work code base I noticed that readability-simplify-boolean-expr doesn't always work in included files (more precisely in inlined methods file included from header).
To reproduce this problem include readability-simplify-bool-expr.cpp in other source file and run Clang-tidy on it.
Looks like removing isExpansionInMainFile() from SimplifyBooleanExprCheck.cpp fix problem but I don't know why isExpansionInMainFile() was used at all.
When working with my work code base I noticed that readability-simplify-boolean-expr doesn't always work in included files (more precisely in inlined methods file included from header).
To reproduce this problem include readability-simplify-bool-expr.cpp in other source file and run Clang-tidy on it.
Looks like removing isExpansionInMainFile() from SimplifyBooleanExprCheck.cpp fix problem but I don't know why isExpansionInMainFile() was used at all.