https://github.com/hriener/cpp-clean
Experimental scripts to clean up metadata in C++ code
https://github.com/hriener/cpp-clean
Last synced: 9 months ago
JSON representation
Experimental scripts to clean up metadata in C++ code
- Host: GitHub
- URL: https://github.com/hriener/cpp-clean
- Owner: hriener
- Created: 2021-03-16T16:20:39.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-16T17:10:08.000Z (almost 5 years ago)
- Last Synced: 2025-02-03T21:53:57.806Z (11 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# c++clean
c++clean is a tiny experimental script to automate reappearing metadata formating tasks.
## Features
- Copyright information
- Author information from git history
- File name information
## Example
The script uses regular expressions to match and replaces metadata in C++ code.
```bash
% ./c++clean.py examples/ugly1.cpp
```
```c++
/* c++clean example
* Copyright (C) 2021 EPFL
*/
/*!
\file ugly1.cpp
\brief Some description
\author Heinz Riener
*/