Skip to content

build/include_what_you_use report missing c++ header for c files #399

@A-lexisL

Description

@A-lexisL

I run cpplint on some c files and get test.c:4: Add #include <cstdio> for printf [build/include_what_you_use] [4]. This error should not be posted as <cstdio> is c++ lib and I already put #include <stdio.h> in the file.
I find Skip C++-specific warnings for C code but adding // LINT_C_FILE doesn't work :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions