Skip to content
fburgerdev-archivePublic

About

C++ tools to facilitate my development process

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Kit

This repo is a collection of C++ tools which I created myself to facilitate my C++ development process.

Content

C++ Styleguide

This styleguide is based on personal preferences and is inspired by google's styleguide.

Currently featured contents are

  • naming conventions
  • comments
  • formatting

HppMerge

Python script to resolve includes in a C++ header or source file

This project allows you to resolve include dependencies in your header or source files. A usecase for this would be if you want to distribute your C++ project using a single-include header file.

Important

The output file with the resolved includes will have all multi-line comments removed.

Usage

Execute the following command in your console.

python3 path/to/hppmerge.py ORIGIN DEST --default DEFAULT --ignore IGNORE
  • ORIGIN = the path to your header / source file you want to resolve the includes in
  • DEST = the desired path of the output file
  • DEFAULT (optional) = all default include directories that your compiler is using (seperated by whitespace)
  • IGNORE (optional) = all filepaths (glob) hppmerge should not resolve (seperated by whitespace)

Build Scripts

Use the following scripts

It is recommended to put the respective script in a subdirectory, e.g. /build.

Dependencies

The script is processed by premake5.

Additionally, you need

Usage

Execute the following command in your console

premake5 path/to/script.lua gmake && make

if you're using linux or

premake5 path/to/script.lua vs2022

and navigate visual studio if you're using windows.

About

C++ tools to facilitate my development process

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages