当前位置:网站首页>整理混乱的头文件,我用include what you use
整理混乱的头文件,我用include what you use
2022-07-04 17:32:00 【InfoQ】
背景
简介
安装
cd llvm-project
git checkout llvmorg-14.0.0
cd llvm-project
mkdir build && cd build
cmake -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_BUILD_TYPE=Release -G “Unix Makefiles” …/llvm
make -j48
IWYU安装
git checkeout clang_14
mkdir build && cd build
cmake -G “Unix Makefiles” -DCMAKE_PREFIX_PATH=…/llvm/llvm-project/llvm/ …/include-what-you-use/

cd …/include-what-you-use/
make -j48

ln -s /the/path/of/include-what-you-use/bin/include-what-you-use /usr/bin/iwyu

使用
- 设置编译器

- 设置编译选项

- 编译项目

- 结果处理


- [1] IWYU主页
- [2] Clang构建指导
边栏推荐
- Lex and yacc based lexical analyzer + parser
- Other InterSystems%net tools
- Halcon template matching
- [cloud voice suggestion collection] cloud store renewal and upgrading: provide effective suggestions, win a large number of code beans, Huawei AI speaker 2!
- 基于NCF的多模块协同实例
- Send and receive IBM WebSphere MQ messages
- ByteDance dev better technology salon was successfully held, and we joined hands with Huatai to share our experience in improving the efficiency of web research and development
- [opencv introduction to mastery 9] opencv video capture, image and video conversion
- fopen、fread、fwrite、fseek 的文件处理示例
- 未来几年中,软件测试的几大趋势是什么?
猜你喜欢
随机推荐
Scala basic tutorial -- 14 -- implicit conversion
【Go语言刷题篇】Go完结篇|函数、结构体、接口、错误入门学习
. Net ORM framework hisql practice - Chapter 2 - using hisql to realize menu management (add, delete, modify and check)
【2022年江西省研究生数学建模】冰壶运动 思路分析及代码实现
6.26cf simulation match B: solution to array reduction problem
力扣刷题日记/day4/6.26
李迟2022年6月工作生活总结
2022年字节跳动日常实习面经(抖音)
Using SSH
Li Kou brush question diary /day7/2022.6.29
Send and receive IBM WebSphere MQ messages
神经网络物联网应用技术学什么
Li Kou brush question diary /day3/2022.6.25
Machine learning concept drift detection method (Apria)
6.26CF模拟赛B:数组缩减题解
C语言打印练习
【OpenCV入门到精通之九】OpenCV之视频截取、图片与视频互转
Mxnet implementation of googlenet (parallel connection network)
力扣刷题日记/day3/2022.6.25
Using FTP