Skip to content

Conversation

@crhaglun
Copy link
Contributor

Add an optional parameter --fileHeader to set a header at the top of each generated file.

This is a legal requirement from my company, any generated code that we use needs to contain information about what tool generated the code.

With this change, a command line like

.\FFmpeg.AutoGen.CppSharpUnsafeGenerator.exe --fileHeader "/// <auto-generated>
///     Generated by FFmpeg.Autogen; https://github.com/Ruslan-B/FFmpeg.AutoGen
/// </auto-generated>"

Will place this comment at the top of each generated file:

/// <auto-generated>
///     Generated by FFmpeg.Autogen; https://github.com/Ruslan-B/FFmpeg.AutoGen
/// </auto-generated>

@crhaglun crhaglun changed the title Add optional command to add a file header to each generated file Optional command to add a file header in each generated file Oct 15, 2024
@Ruslan-B Ruslan-B merged commit f54e0b9 into Ruslan-B:master Apr 8, 2025
2 checks passed
Ruslan-B added a commit that referenced this pull request Nov 5, 2025
Co-authored-by: crhaglun <crhaglun+odspmdb@microsoft.com>
Co-authored-by: Ruslan Balanukhin <ruslan@rationale.one>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants