随笔分类 - C/C++
摘要:一、gtest简介 gtest是一个跨平台(Liunx、Mac OS X、Windows、Cygwin、Windows CE and Symbian)的C++测试框架,有google公司发布。gtest测试框架是在不同平台上为编写C++测试而生成的。 gtest下载网站 https://github
阅读全文
摘要:https://blog.csdn.net/hatter110/article/details/107282775 https://xinhuang.github.io/posts/2015-02-08-clang-tutorial-the-ast-matcher.html
阅读全文
摘要:https://llvm.org/docs/WritingAnLLVMPass.html https://zhuanlan.zhihu.com/p/122522485
阅读全文
摘要:参考资料 https://clang.llvm.org/docs/RAVFrontendAction.html llvm-project源代码 https://github.com/llvm/llvm-project 1、介绍 在本教程中,您将学习如何使用一个RecursiveASTVisitor创
阅读全文
摘要:一、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
阅读全文
摘要:一、cmake链接静态库&动态库 1.1、项目目录 ./sample7 +-- CMakeLists.txt +-- build/ +-- src/ +-- CMakeLists.txt +-- main.cpp +-- lib/ +-- libmath.a +-- libmath.dylib +-
阅读全文
摘要:一、生成compile_commands.json 1.1、compile_commands.json内容 cmake生成compile_commands.jsons https://blog.csdn.net/qq_23599965/article/details/90697236 方法 CMak
阅读全文
