License Compiler, compiler % Copyright 2011 The MathWorks, Inc. % Don't include files present in MCR Expect MCR [ $MATLABROOT/toolbox/matlab $MATLABROOT/toolbox/shared/asynciolib $MATLABROOT/toolbox/shared/coder $MATLABROOT/toolbox/shared/controllib/general $MATLABROOT/toolbox/shared/controllib/graphics $MATLABROOT/toolbox/shared/instrument $MATLABROOT/toolbox/shared/multimedia $MATLABROOT/toolbox/shared/testmeaslib/general $MATLABROOT/toolbox/shared/testmeaslib/graphics ] Exclude MCR [ $MATLABROOT/toolbox/compiler/deploy/.+[.]mex.+$ $MATLABROOT/toolbox/matlab/codetools /ja/.*[.]m$ ] % Scripts can't be in the root set -- they're not entry points Remove MCR ROOTSET [ isbuiltin(#ROOTSET) ? msg2why(message('MATLAB:Completion:BuiltinEntryPoint', #FILE), #RULE) ] % Unlicensed files should not show up in the completion. Remove MCR COMPLETION [ ~licensed(#COMPLETION, #SCHEMA) ? msg2why(message('MATLAB:Completion:UnlicensedPart', #FILE), #RULE) ] % Non-executable files in the ROOTSET need to move into the COMPLETION. Move MCR ROOTSET COMPLETION [ isscript(#ROOTSET) ? msg2why(message('MATLAB:Completion:ScriptEntryPoint', #FILE), #RULE) hasext(#ROOTSET, '.p') ? msg2why(message('MATLAB:Completion:PcodeEntryPoint', #FILE), #RULE) hasext(#ROOTSET, [ '.' mexext]) ? msg2why(message('MATLAB:Completion:MexEntryPoint', #FILE), #RULE) ~isfunction(#ROOTSET) ? msg2why(message('MATLAB:Completion:NonFunctionEntryPoint', #FILE), #RULE) ] % Order matters. Insert these files after removing non-function files, or the % FIG files (which are not function files) will get removed. Insert MCR COMPLETION [ existing(setdiff(regexprep(#COMPLETION, '(.*)[.](m|mlx)$', '$1.fig'),#COMPLETION)) ]