Matlab Coder: how can I eliminate the date in c-code comments

조회 수: 5 (최근 30일)
Chris
Chris 2013년 6월 7일
I'm generating a static library from a bunch of m-files using the Coder project GUI. What is rather annoying is that in our version control software every generated file is being marked as changed, but usually only because the date stamp is being modified with every compile. Is there a way to disable this?
Example of the typical offending comment preceeding code:
/*
* scan_accumulator.c
*
* Code generation for function 'scan_accumulator'
*
* C source code generated on: Fri Jun 7 12:14:14 2013
*
*/

답변 (2개)

Sean de Wolski
Sean de Wolski 2013년 6월 7일
I don't know if it's possible or not but it's a valid enhancement request if it isn't. Please contact technical support!

Mike Hosea
Mike Hosea 2013년 6월 11일
I agree that this would be a useful thing. The only solution I know about is a "nuclear option". Under "Code Appearance" there is an "Include comments" checkbox. If you uncheck it, (almost all) comments will go poof! when you rebuild.

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by