39 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
43 enum class CommentKind {
49 const unsigned StrictMode : 1;
50 const unsigned IgnoreSingleArgument : 1;
51 const unsigned CommentAnonymousInitLists : 1;
52 const unsigned CommentBoolLiterals : 1;
53 const unsigned CommentCharacterLiterals : 1;
54 const unsigned CommentFloatLiterals : 1;
55 const unsigned CommentIntegerLiterals : 1;
56 const unsigned CommentNullPtrs : 1;
57 const unsigned CommentParenthesizedTemporaries : 1;
58 const unsigned CommentStringLiterals : 1;
59 const unsigned CommentTypedInitLists : 1;
60 const unsigned CommentUserDefinedLiterals : 1;
63 void checkCallArgs(ASTContext *Ctx,
const FunctionDecl *Callee,
64 SourceLocation ArgBeginLoc,
65 llvm::ArrayRef<const Expr *> Args);
67 CommentKind shouldAddComment(
const Expr *Arg)
const;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.