A collections of C/C++ language module, from go, nginx, redis, skynet, etc. With many comments and unit test. Just for study.
- mckits
- mlibc: libc wrapper, only use libc, don't call system api in mstl.
- mstl: only use libc, don't call system api in mstl.
- hash
- hashmap
- heap
- list
- nlist
- rbtree
- ring
- skiplist
- array
- string
- vector
- core
- log
- encoding
- abstract data structure
- color
- math
- meta
- time
- os
- file
- thread
- web server
- tools
- other module
sudo apt install gcc g++ cmake lcov
./build_clang.sh
./build_gcc.sh
./build_gcc_release.sh
./build_coverage.sh
- pre-commit: https://github.com/pre-commit/pre-commit
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pre-commit
pre-commit install
pre-commit run --all-files
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple cpplint
sudo apt-get install cppcheck
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple clang-tidy