Giter VIP home page Giter VIP logo

saivian1 / cxxscanner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yilongdong/cxxscanner

0.0 0.0 0.0 115 KB

C++项目源文件转分析模型文件。会包含类模型,头文件依赖,调用关系,代码行数,类间关系,git热点的等信息。但是bug很多,可靠性很烂。有配套的[可视化WebUI](https://github.com/yilongdong/BeaconServer)

Shell 0.66% C++ 89.60% CMake 9.74%

cxxscanner's Introduction

CXXScanner

standard-readme compliant 使用LibTooling对C++代码进行ATS分析获取项目的分析模型文件。 分析模型包含类模型,方法模型,调用关系,代码行数信息,圈复杂度等等。

Table of Contents

Install

安装cmake

安装vcpkg

vcpkg

# vcpkg integrate bash
# vcpkg integrate x-fish
vcpkg integrate zsh

安装ninja

brew install ninja

编译

./build.sh
ln -s /usr/local/lib/clang/  ./install/lib/clang # 如果运行分析时输出错误信息,大概率是因为没有做这一步
# 接着编辑toml配置文件,最后运行
./install/bin/CXXScanner

https://github.com/sourcegraph/lsif-clang If you get missing header warnings (possible due to divergence between lsif-clang and Apple Clang), use an extra flag: --extra-arg="-resource-dir=$(clang -print-resource-dir)" compile_commands.json

API

Maintainers

@yilongdong

Contributing

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2023 yilongdong

cxxscanner's People

Contributors

yilongdong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.