50 const auto ConstantExpr =
51 expr(anyOf(integerLiteral(), floatLiteral(), characterLiteral(),
52 cxxBoolLiteral(), stringLiteral(), cxxNullPtrLiteralExpr()));
55 subExpr(anyOf(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.