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!