Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ototot/cppbundler
A LLVM/Clang based tool to bundle C++ codes into a single file.
https://github.com/ototot/cppbundler
bundler clang-tooling competitive-programming cpp
Last synced: 2 months ago
JSON representation
A LLVM/Clang based tool to bundle C++ codes into a single file.
- Host: GitHub
- URL: https://github.com/ototot/cppbundler
- Owner: oToToT
- License: apache-2.0
- Created: 2022-02-06T15:33:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-30T10:10:57.000Z (4 months ago)
- Last Synced: 2024-11-01T12:42:04.374Z (2 months ago)
- Topics: bundler, clang-tooling, competitive-programming, cpp
- Language: C++
- Homepage:
- Size: 19.5 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
CppBundler
===A tool to bundle custom headers into one single `.cpp` file.
## Dependencies
This tool is based on LLVM/Clang, so please install them first.
If you are using Ubuntu, you could install these 2 packages:
```bash
$ apt install llvm-dev libclang-dev
```## Build
```bash
$ mkdir build && cd build
$ cmake .. && cmake --build .
$ ./cpp-bundle FILE [OPTIONS]...
```## Options
Since this tool is based on LLVM/Clang preprocessor, you could use the same options to bundle your code.
## Example Use Case
It is common to use a library in online competitive programming contests like Codeforces, AtCoder, etc. However, this kind of contest only allows you to submit a single C++ code. Therefore, if we modularize our library, we need to bundle them.