MLReplaceDeprecatedAPI¶
- MacroModule¶
author
package
definition
keywords
Purpose¶
The module MLReplaceDeprecatedAPI can warn or replace ML deprecated API usage on recursive file trees.
It is a simple whole-word parser, so it may replace more than anticipated; make sure to review the code after applying replacements.
Details¶
Note: The Warn mode will report more than the replace mode will replace, since some replacements are ambiguous.
Warning: If this tool runs in Replace mode, it will replace text in your files without backups.
Windows¶
Default Panel¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
Visible Fields¶
Path¶
- name: path, type: String¶
Sets the root path for recursive file search.
Extensions¶
- name: extensions, type: String, default: h cpp¶
Sets the file extensions that are used for searching.
Mode¶
- name: mode, type: Enum, default: Warn¶
Defines the mode the tool is running in.
Values:
Title |
Name |
|---|---|
Warn |
Warn |
Replace |
Replace |
Run¶
- name: run, type: Trigger¶
When pressed, the tool searches/replaces uses of deprecated ML API.
Verbose¶
- name: verbose, type: Bool, default: FALSE¶
If checked, the tool prints log messages to the console.
Level¶
- name: level, type: Integer, default: 4, minimum: 0, maximum: 4¶
Sets a level that controls how much of the API is replaced or warned about.
No Namespace Check¶
- name: noNamespaceCheck, type: Bool, default: FALSE¶
If checked, the check for ML namespace existence in files is disabled.
Filter¶
- name: filter, type: String¶
Sets a regular expression to filter what should be replaced.