Codegen: Remove date in header file
9 次查看(过去 30 天)
显示 更早的评论
I am using
codegen -config config -o kim -d 'CodeGeneration\GeneratedCode' doKim -args args{1} getKimDefaultInputArgs
The cpp and h files have time in the header:
// MATLAB Coder version : 4.3
// C/C++ source code generated on : 14-Nov-2019 19:20:15
What option will remove the date from the source file
This is my config:
-------------------------------- Report -------------------------------
EnableTraceability: true
GenerateCodeMetricsReport: true
GenerateCodeReplacementReport: true
GenerateReport: true
HighlightPotentialDataTypeIssues: true
LaunchReport: false
ReportInfoVarName: ''
ReportPotentialDifferences: false
------------------------------- Debugging -----------------------------
RuntimeChecks: false
---------------------------- Code Generation --------------------------
BuildConfiguration: 'Faster Builds'
CodeExecutionProfiling: false
CodeProfilingInstrumentation: false
CustomToolchainOptions: [[] cell]
DataTypeReplacement: 'CBuiltIn'
FilePartitionMethod: 'MapMFileToCFile'
GenCodeOnly: true
GenerateExampleMain: 'GenerateCodeOnly'
GenerateMakefile: true
HighlightPotentialRowMajorIssues: true
MultiInstanceCode: true
OutputType: 'LIB'
PassStructByReference: true
PostCodeGenCommand: ''
PreserveArrayDimensions: false
RowMajor: false
SILDebugging: false
SILPILCheckConstantInputs: false
TargetLang: 'C++'
Toolchain: 'Automatically locate an installed toolchain'
VerificationMode: 'None'
------------------------ Language And Semantics -----------------------
CodeReplacementLibrary: 'None'
CompileTimeRecursionLimit: 50
ConstantFoldingTimeout: 40000
DynamicMemoryAllocation: 'Threshold'
DynamicMemoryAllocationThreshold: 65536
EnableAutoExtrinsicCalls: true
EnableRuntimeRecursion: true
EnableVariableSizing: false
GenerateNonFiniteFilesIfUsed: true
InitFltsAndDblsToZero: true
PreserveVariableNames: 'None'
PurelyIntegerCode: false
SILPILSyncGlobalData: false
SaturateOnIntegerOverflow: true
SupportNonFinite: false
TargetLangStandard: 'C89/C90 (ANSI)'
------------------------- C++ Language Features -----------------------
CppInterfaceClassName: ''
CppInterfaceStyle: 'Functions'
CppNamespace: ''
---------------- Function Inlining and Stack Allocation ---------------
InlineStackLimit: 4000
InlineThreshold: 10
InlineThresholdMax: 200
StackUsageMax: 200000
----------------------------- Optimizations ---------------------------
ConvertIfToSwitch: false
EnableMemcpy: true
EnableOpenMP: true
EnableStrengthReduction: false
LoopUnrollThreshold: 5
MemcpyThreshold: 64
------------------------------- Comments ------------------------------
GenerateComments: true
MATLABFcnDesc: true
MATLABSourceComments: true
Verbose: true
------------------------------ Custom Code ----------------------------
CustomHeaderCode: ''
CustomInclude: ''
CustomInitializer: ''
CustomLibrary: ''
CustomSource: ''
CustomSourceCode: ''
CustomTerminator: ''
ReservedNameArray: ''
-------------------------- Third Party Library ------------------------
CustomBLASCallback: ''
CustomFFTCallback: ''
CustomLAPACKCallback: ''
------------------------------ Code Style -----------------------------
CastingMode: 'Nominal'
CodeTemplate: []
ColumnLimit: 80
CommentStyle: 'Auto'
CustomFileNameStr: '$N$M'
CustomSymbolStrEMXArray: 'emxArray_$M$N'
CustomSymbolStrEMXArrayFcn: 'emx$M$N'
CustomSymbolStrFcn: '$M$N'
CustomSymbolStrField: '$M$N'
CustomSymbolStrGlobalVar: '$M$N'
CustomSymbolStrMacro: '$M$N'
CustomSymbolStrTmpVar: '$M$N'
CustomSymbolStrType: '$M$N'
EnableCustomReplacementTypes: false
EnableSignedLeftShifts: false
EnableSignedRightShifts: false
GenerateDefaultInSwitch: false
HeaderGuardStyle: 'UseIncludeGuard'
IncludeInitializeFcn: true
IncludeTerminateFcn: true
IndentSize: 2
IndentStyle: 'K&R'
MaxIdLength: 31
ParenthesesLevel: 'Nominal'
PreserveExternInFcnDecls: true
ReplacementTypes: [1x1 coder.ReplacementTypes]
RunInitializeFcn: true
------------------------------- Hardware ------------------------------
Hardware: []
HardwareImplementation: [1x1 coder.HardwareImplementation]
Edit Configuration Object
0 个评论
采纳的回答
Ryan Livingston
2019-11-19
Specifically, look at the %<SourceGeneratedOn> token which generates the date. You can remove that in your custom template.
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Build Configuration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!