Skip to content

A python utility script for generating c or c++ function stubs and more.

Notifications You must be signed in to change notification settings

polymonster/stub-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stub-format

A python utility script for generating c or c++ function stubs and performing other simple formatting / code gen jobs.

  • generate stub functions
  • inject c++ code to capture input and output values, useful for generating test data.
  • convert snake case to camel case
  • convert camel case to snake case
  • tabs to spaces
  • remove comments
  • align characters on consecutive lines
  • insert a disclaimer at the top of each file
  • replace #ifndef header guard with #pragma once

Usage:

stub-format -stub -i test.h -p

For best results add stub-format to your path, so you can call it from anywhere.

About

A python utility script for generating c or c++ function stubs and more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages