All identifiers should be (1) semantically clear, (2) consistent with project naming patterns, and (3) collision-safe.
Apply this checklist:
resize_type when the concept is “mode/sample_type”).
mode / sample_type and keep comments consistent with the chosen name.enum InterpolationMode {
Interpolation_BILINEAR = 1,
Interpolation_Nearest = 2,
Interpolation_BICUBIC = 3
};
int _axis; use int axis).forceinline with NCNN_FORCE_INLINE).Result: names communicate intent, remain consistent across the codebase, and won’t conflict with external code or platform headers.
Enter the URL of a public GitHub repository