当前位置:网站首页>整理混乱的头文件,我用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 -j48IWYU安装
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构建指导
边栏推荐
猜你喜欢
随机推荐
ThreadLocal原理与使用
ESP32-C3入门教程 问题篇⑫——undefined reference to rom_temp_to_power, in function phy_get_romfunc_addr
Esp32-c3 introductory tutorial questions ⑫ - undefined reference to ROM_ temp_ to_ power, in function phy_ get_ romfunc_ addr
.NET ORM框架HiSql实战-第二章-使用Hisql实现菜单管理(增删改查)
VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
Li Kou brush question diary /day7/6.30
Scala基础教程--19--Actor
使用FTP
Wireshark packet capturing TLS protocol bar displays version inconsistency
Using FTP
激进技术派 vs 项目保守派的微服务架构之争
力扣刷题日记/day3/2022.6.25
模板_大整数减法_无论大小关系
Li Kou brush question diary /day6/6.28
Is it safe to download the mobile version of Anxin securities and open an account online
php伪原创api对接方法
正则替换【JS,正则表达式】
神经网络物联网平台搭建(物联网平台搭建实战教程)
Wireshark抓包TLS协议栏显示版本不一致问题
6.26cf simulation race e: solution to the problem of price maximization









