зеркало из https://github.com/github/codeql.git
C++: More accurate test tags.
This commit is contained in:
Родитель
55a7adff20
Коммит
d72ea52f68
|
@ -13,7 +13,7 @@ void testMacros(int a, int b, int c)
|
|||
GOODPRINTF("%i %i %i\n", a, b, c); // GOOD
|
||||
GOODPRINTF("%i %i %i %i\n", a, b, c); // BAD: too few format arguments
|
||||
|
||||
BADPRINTF("%i %i\n", a, b, 0); // BAD: too many format arguments
|
||||
BADPRINTF("%i %i\n", a, b, 0); // DUBIOUS: too many format arguments
|
||||
// ^ here there are too many format arguments, but the design of the Macro forces the user
|
||||
// to do this, and the extra argument is harmlessly ignored in practice. Reporting these
|
||||
// results can be extremely noisy (e.g. in openldap).
|
||||
|
|
Загрузка…
Ссылка в новой задаче