find lines of code which are not suppressed (no semicolon at end)

버전 1.0.0.0 (1.71 KB) 작성자: Ueli Rutishauser
Finds code that generates output in the command window due to a missing semicolon (non-suppressed)
다운로드 수: 1.6K
업데이트 날짜: 2009/4/13

라이선스 보기

Ever had the annoying problem that a large program consisting of many files generated unwanted text output in the command window due to non-suppressed output ?

This function finds, based on profile data, lines of code which produce non-suppressed output (not terminated by semicolon). Only functions which are actually called are considered.

to use:
profile on;
YourFunct(a,b,c);
profile off;
p=profile('info');
findNonSuppressedOutput( p, '/code/projectA/' )

this will run mlint on all called functions in path code/projectA/ (and subdirs) and report lines that contain the requested mlint IDs (here: non-terminated lines, IDs NOPRT and NOPTS) functions called that reside outside the provided path are ignored. Note that only lines which mlint correctly identifies are found.

인용 양식

Ueli Rutishauser (2024). find lines of code which are not suppressed (no semicolon at end) (https://www.mathworks.com/matlabcentral/fileexchange/23665-find-lines-of-code-which-are-not-suppressed-no-semicolon-at-end), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2008a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Debugging and Analysis에 대해 자세히 알아보기
도움

줌: Manchester

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0