Loading

摘要: https://blog.csdn.net/hatter110/article/details/107282775 https://xinhuang.github.io/posts/2015-02-08-clang-tutorial-the-ast-matcher.html 阅读全文
posted @ 2022-09-13 20:02 xine 阅读(82) 评论(0) 推荐(0) 编辑
摘要: https://llvm.org/docs/WritingAnLLVMPass.html https://zhuanlan.zhihu.com/p/122522485 阅读全文
posted @ 2022-09-13 19:57 xine 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 参考资料 https://clang.llvm.org/docs/RAVFrontendAction.html llvm-project源代码 https://github.com/llvm/llvm-project 1、介绍 在本教程中,您将学习如何使用一个RecursiveASTVisitor创 阅读全文
posted @ 2022-09-13 19:54 xine 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 一、llvm提取程序ast树 1.1、源代码 //main.c #include <iostream> #include "StaticMath.h" #include "DynamicMath.h" int main() { double a=1.2; double b=2.4; std::cou 阅读全文
posted @ 2022-09-13 17:09 xine 阅读(1138) 评论(0) 推荐(0) 编辑
摘要: 1、antlr4的官方文档 https://github.com/antlr/antlr4 2、解析语法网址 https://github.com/antlr/grammars-v4 阅读全文
posted @ 2022-09-13 16:50 xine 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 一、cmake链接静态库&动态库 1.1、项目目录 ./sample7 +-- CMakeLists.txt +-- build/ +-- src/ +-- CMakeLists.txt +-- main.cpp +-- lib/ +-- libmath.a +-- libmath.dylib +- 阅读全文
posted @ 2022-09-13 16:45 xine 阅读(5505) 评论(0) 推荐(0) 编辑
摘要: 一、Commitlint安装 https://github.com/conventional-changelog/commitlint/ 1.1、Commitlint 是什么 我们运行 git commmit -m 'xxx' 时,用来检查 xxx 是否满足固定格式的工具。 1.2、安装 npm i 阅读全文
posted @ 2022-09-13 15:43 xine 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 一、生成compile_commands.json 1.1、compile_commands.json内容 cmake生成compile_commands.jsons https://blog.csdn.net/qq_23599965/article/details/90697236 方法 CMak 阅读全文
posted @ 2022-09-13 15:22 xine 阅读(2731) 评论(0) 推荐(0) 编辑