5e62444cff
Create a <LANG>_CLANG_TIDY target property (initialized by a CMAKE_<LANG>_CLANG_TIDY variable) to specify a clang-tidy command line to be run along with the compiler.
17 lines
292 B
C
17 lines
292 B
C
#include <stdio.h>
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
int i;
|
|
for (i = 1; i < argc; ++i)
|
|
{
|
|
if (argv[i][0] != '-')
|
|
{
|
|
fprintf(stdout, "%s:0:0: warning: message [checker]\n", argv[i]);
|
|
break;
|
|
}
|
|
}
|
|
fprintf(stderr, "1 warning generated.\n");
|
|
return 0;
|
|
}
|