This is an archive of the discontinued LLVM Phabricator instance.

Don't warn on NewCallback argument comments, as they are arguments for the function the callback points to.
ClosedPublic

Authored by alexfh on Jul 30 2014, 6:52 AM.

Diff Detail

Event Timeline

alexfh updated this revision to Diff 12025.Jul 30 2014, 6:52 AM
alexfh retitled this revision from to Don't warn on NewCallback argument comments, as they are arguments for the function the callback points to..
alexfh updated this object.
alexfh edited the test plan for this revision. (Show Details)
alexfh added a reviewer: djasper.
alexfh added a subscriber: Unknown Object (MLST).
alexfh updated this revision to Diff 12027.Jul 30 2014, 6:58 AM

Added a comment.

Updating D4722: Don't warn on NewCallback argument comments, as they are arguments for the

function the callback points to.

djasper edited edge metadata.Jul 30 2014, 6:58 AM

How about making checks configurable? Then we could have an optional list of white-listed functions instead of hard-coding library-specific names.

alexfh updated this revision to Diff 12028.EditedJul 30 2014, 7:22 AM
alexfh edited edge metadata.

Added a FIXME to make the list of "special" functions configurable.

ClangTidy doesn't yet read configuration files or provide configuration to the
checks. This is in the plans, but I would like this check to stop producing
false positives sooner than the configuration of the checks becomes possible.

djasper accepted this revision.Jul 30 2014, 7:24 AM
djasper edited edge metadata.

Looks good.

This revision is now accepted and ready to land.Jul 30 2014, 7:24 AM
alexfh closed this revision.Jul 30 2014, 7:40 AM