当前位置:网站首页>To sort out messy header files, I use include what you use
To sort out messy header files, I use include what you use
2022-07-04 19:22:00 【InfoQ】
background
brief introduction
install
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 install
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

Use
- Set up compiler

- Set compilation options

- Compile the project

- The result processing


- [1] IWYU Home page
- [2] Clang Build guidance
边栏推荐
- 物联网应用技术的就业前景和现状
- 2019年蜀山区第十五届青少年信息学竞赛
- sqlserver的CDC第一次查询的能读取到数据,但后面增删改读取不到,是什么原因
- Summary and sorting of 8 pits of redis distributed lock
- 1672. Total assets of the richest customers
- ESP32-C3入门教程 问题篇⑫——undefined reference to rom_temp_to_power, in function phy_get_romfunc_addr
- 2022CoCa: Contrastive Captioners are Image-Text Fountion Models
- 更安全、更智能、更精致,长安Lumin完虐宏光MINI EV?
- Principle and application of ThreadLocal
- 工厂从自动化到数字孪生,图扑能干什么?
猜你喜欢
Principle and application of ThreadLocal
正则替换【JS,正则表达式】
Nebula importer data import practice
使用canal配合rocketmq监听mysql的binlog日志
物联网应用技术的就业前景和现状
Scala basic tutorial -- 19 -- actor
redis分布式锁的8大坑总结梳理
从实时应用角度谈通信总线仲裁机制和网络流控
LeetCode第300场周赛(20220703)
2022CoCa: Contrastive Captioners are Image-Text Fountion Models
随机推荐
2022CoCa: Contrastive Captioners are Image-Text Fountion Models
小发猫物联网平台搭建与应用模型
Nebula Importer 数据导入实践
Deleting nodes in binary search tree
资料下载 丨首届腾讯技术开放日课程精华!
模板_判断素数_开方 / 六素数法
Scala基础教程--17--集合
基于lex和yacc的词法分析器+语法分析器
1672. 最富有客户的资产总量
删除字符串中出现次数最少的字符【JS,Map排序,正则】
基于C语言的菜鸟驿站管理系统
发送和接收IBM WebSphere MQ消息
The latest progress of Intel Integrated Optoelectronics Research promotes the progress of CO packaging optics and optical interconnection technology
The 15th youth informatics competition in Shushan District in 2019
Esp32-c3 introductory tutorial questions ⑫ - undefined reference to ROM_ temp_ to_ power, in function phy_ get_ romfunc_ addr
从实时应用角度谈通信总线仲裁机制和网络流控
LeetCode 赎金信 C#解答
[uniapp] uniapp development app online Preview PDF file
6.26cf simulation race e: solution to the problem of price maximization
How is the entered query SQL statement executed?