#clang-tidy outputs nothing

6 messages · Page 1 of 1 (latest)

gritty palm
#

Hi I don't know if this is the best place to ask this but clang-tidy doesn't work for me
I'm using it on windows, I have the standard library from msvc
This is my command: .\clang-tidy .\main.c -checks=clang-analyzer-*
This is main.c:

#include <stdio.h>

int main() {
    int x;  // Uninitialized variable

    printf("Hello, world!\n");
    return 0;
}

when I run the command, clang-tidy only outputs a new line, no text or anything else

runic heronBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

formal bone
#

there is an argument to tell it to modify the source if not specified it will just print it. You hello world code looks like it has alredy been clang-tidy

gritty palm
#

ok thanks

#

im not sure why but it decided to start printing again

#

!solved