Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xyproto/addinclude
:arrow_up_small: Add include statements within the guards of a header file
https://github.com/xyproto/addinclude
c cpp headers include package-management utility
Last synced: 20 days ago
JSON representation
:arrow_up_small: Add include statements within the guards of a header file
- Host: GitHub
- URL: https://github.com/xyproto/addinclude
- Owner: xyproto
- License: gpl-2.0
- Created: 2012-04-03T17:27:58.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2022-09-19T11:00:17.000Z (about 2 years ago)
- Last Synced: 2024-10-05T15:25:21.042Z (about 1 month ago)
- Topics: c, cpp, headers, include, package-management, utility
- Language: Go
- Homepage:
- Size: 172 KB
- Stars: 4
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
Addinclude
==========Utility that can add `#include`s to `.c`, `.cpp` or `.h` files, with relatively smart placement.
Example use
-----------addinclude my.c stdin
addinclude my.cpp memorySmart placement
---------------addinclude my.h stdin
Changes my.h from:
#ifdef blabla
#endifTo:
#ifdef blabla
#include
#endifYou can place includes at the very 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`.
* For example, `memory` will not be expanded to `memory.h`.General info
------------* Version: 1.2.0
* License: GPL2