universalisos/kernel/generate_doxygen.py

17 lines
528 B
Python

import os
import re
def process_file(filepath):
with open(filepath, 'r') as f:
content = f.read()
# Simple regex to find functions that are not already documented
# It looks for functions starting at the beginning of a line (no /** above them)
# This is a very rough script meant to add simple stubs
# We will look for: type name(args) { or type name(args);
# And add a Doxygen stub before it.
# For a robust approach, we would use clang, but regex is faster for stubs.
pass