https://github.com/basemax/c-importpath-fixer
A Python tool to automatically fix `#include "@/..."` paths in C/C++ source files by converting them to proper relative paths.
https://github.com/basemax/c-importpath-fixer
c gcc import include package py py3 python python3 regex replace require
Last synced: 8 months ago
JSON representation
A Python tool to automatically fix `#include "@/..."` paths in C/C++ source files by converting them to proper relative paths.
- Host: GitHub
- URL: https://github.com/basemax/c-importpath-fixer
- Owner: BaseMax
- License: mit
- Created: 2025-05-12T01:28:56.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-05-12T13:23:58.000Z (8 months ago)
- Last Synced: 2025-05-12T19:10:04.680Z (8 months ago)
- Topics: c, gcc, import, include, package, py, py3, python, python3, regex, replace, require
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# c-importpath-fixer
A Python tool to automatically fix `#include "@/..."` paths in C/C++ source files by converting them to proper relative paths.
## Usage
```bash
python3 c-importpath-fixer.py [project-root]
```
By default, it scans the current directory. You can optionally pass the root of the project.
## Example
Before:
```c
#include "@/include/myheader.h"
```
After:
```c
#include "../include/myheader.h"
```
### License
MIT
Copyright 2025, Max Base