最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c++ - How do I avoid both modernize-deprecated-headers and misc-include-cleaner warnings? - Stack Overflow

programmeradmin0浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论