aboutsummaryrefslogtreecommitdiffstats
path: root/README-maintainer
diff options
context:
space:
mode:
Diffstat (limited to 'README-maintainer')
-rw-r--r--README-maintainer5
1 files changed, 5 insertions, 0 deletions
diff --git a/README-maintainer b/README-maintainer
index 76a4c59c..4b36cf14 100644
--- a/README-maintainer
+++ b/README-maintainer
@@ -98,6 +98,11 @@ CODING RULES
* Avoid atoi. Use QUtil::string_to_int instead. It does
overflow/underflow checking.
+* Avoid certain functions that tend to be macros or create compilation
+ errors on some platforms. Known cases: strcasecmp, abs. Avoid min
+ and max. If needed, std::min and std::max are okay to use in C++
+ code with <algorithm> included.
+
* Remember to avoid using `operator[]` with `std::string` or
`std::vector`. Instead, use `at()`. See README-hardening.md for
details.