50 const auto ConstantExpr =
51 expr(anyOf(integerLiteral(), floatLiteral(), characterLiteral(),
52 cxxBoolLiteral(), stringLiteral(), cxxNullPtrLiteralExpr()));
54 parenExpr(subExpr(anyOf(
55 parenExpr(), ConstantExpr,
56 declRefExpr(to(namedDecl(unless(
58 unless(anyOf(isInMacro(),
60 hasParent(unaryExprOrTypeTraitExpr()))))
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.