admin管理员组

文章数量:1345165

I'm trying to remove all clang-tidy warnings in my C++ project. But I get alternating modernize-deprecated-headers and misc-include-cleaner warnings.

For example: I use open_memstream in a file, so I include <cstdio>.This gives me the warning: no header providing "open_memstream" is directly included [misc-include-cleaner]

So instead I include <stdio.h>, but this gives me the warning: inclusion of deprecated C++ header 'stdio.h'; consider using 'cstdio' instead [modernize-deprecated-headers]

What should I do to remove both warnings. I don't want to filter out any warning.

本文标签: cHow do I avoid both modernizedeprecatedheaders and miscincludecleaner warningsStack Overflow