addinclude

command module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

README

Addinclude

Utility that can add #includes to .c and/or .h files, with relatively smart placement.

Example use

addinclude my.c stdin
addinclude my.cpp memory

Smart placement

addinclude my.h stdin

Changes my.h from:

#ifdef blabla
#endif

To:

#ifdef blabla
#include <stdin.h>
#endif

You can place includes at the top of the file with -t. There are several other options.

C++ headers

Use the -c++ flag for not expanding include names when adding them to files not ending with .cpp. Example: memory will not be expanded to memory.h.

General info

  • Version: 1.2.0
  • License: GPL2

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL