Objects Modified is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.
Objects Modified
| API ID | CountObjectsModified |
| Targets | Functions |
| Languages | Any |
| Categories | Coupling |
| Cost | Query |
The number of modifications to objects by this function
Example:
int my_global = 10;
void modifies(int x)
{
int y, z;
x += 1; // + 1 Parameters count
x ++; // + 1 Duplicates count
y += 1; // + 1 Locals count
y ++; // + 1 Duplicates count
my_global += 1; // + 1 Globals count
my_global ++; // + 1 Duplicates count
} // CountObjectsModified = 6
Compare to CountObjectsModifiedUnique which counts unique objects this function modifies.