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 memberExpr(), callExpr())),
59 unless(anyOf(isInMacro(),
61 hasParent(unaryExprOrTypeTraitExpr()))))
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.