Extra Clang Tools 5 documentation

clang-tidy - misc-argument-comment

«  llvm-twine-local   ::   Contents   ::   misc-assert-side-effect  »


Checks that argument comments match parameter names.

The check understands argument comments in the form /*parameter_name=*/ that are placed right before the argument.

void f(bool foo);


// warning: argument name 'bar' in comment does not match parameter name 'foo'

The check tries to detect typos and suggest automated fixes for them.



When zero (default value), the check will ignore leading and trailing underscores and case when comparing names – otherwise they are taken into account.

«  llvm-twine-local   ::   Contents   ::   misc-assert-side-effect  »