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

Finds code that generates output in the command window due to a missing semicolon (non-suppressed)
1,6K download
Aggiornato 13 apr 2009

Visualizza la licenza

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.

Cita come

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. Recuperato .

Compatibilità della release di MATLAB
Creato con R2008a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Debugging and Analysis in Help Center e MATLAB Answers
Riconoscimenti

Ispirato: Manchester

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0