简体   繁体   中英

C++ using clang-tidy with external libraries

I'm first time user of clang-tidy. I am working on my thesis using OpenCV. My issue is that when I configure clang-tidy to "Fix" the issues it finds, it will fix the issue it finds in the OpenCV library as well. My question is: how can I make it so that clang-tidy only fixes the issues it finds in the files created by me?

在使用 clang 电源工具选项时,我发现Treat additional includes as设置Treat additional includes as system include directories解决我的问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM