blob: 26fcd0c639077b73dd53fa22b757a4811b123327 [file] [log] [blame]
.. title:: clang-tidy - cppcoreguidelines-pro-type-vararg
This check flags all calls to c-style vararg functions and all use of
To allow for SFINAE use of vararg functions, a call is not flagged if a literal
0 is passed as the only vararg argument.
Passing to varargs assumes the correct type will be read. This is fragile
because it cannot generally be enforced to be safe in the language and so relies
on programmer discipline to get it right.
This rule is part of the "Type safety" profile of the C++ Core Guidelines, see