[geos-commits] [SCM] GEOS branch main updated. 44e648dee12f13a73e57759bcc8bd145df9dd8c4

git at osgeo.org git at osgeo.org
Thu May 23 20:39:29 PDT 2024


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, main has been updated
       via  44e648dee12f13a73e57759bcc8bd145df9dd8c4 (commit)
      from  e962d1c5ebf2a606bb7a66cb4b2a89c83d61c499 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 44e648dee12f13a73e57759bcc8bd145df9dd8c4
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Thu May 23 20:39:12 2024 -0700

    Update DEVELOPER-NOTES.md

diff --git a/DEVELOPER-NOTES.md b/DEVELOPER-NOTES.md
index 11e774b30..fd0ea8b96 100644
--- a/DEVELOPER-NOTES.md
+++ b/DEVELOPER-NOTES.md
@@ -65,6 +65,16 @@ public:
 
 * You can pass pointers to the object to other methods using `std::unique_ptr<>.get()`.
 
+### Resource Management
+[Guidelines](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#r-resource-management).
+* [A raw pointer (a T*) is non-owning](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rr-ptr)
+* [A raw reference (a T&) is non-owning](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rr-ref)
+  
+### Function calling conventions
+
+
+* Prefer T* over T& when “no argument” is a valid option
+
 ### Avoid Many Small Heap Allocations
 
 * Heap allocations (objects created using `new`) are more expensive than stack allocations, but they can show up in batchs in JTS in places where structures are built, like index trees, or graphs.

-----------------------------------------------------------------------

Summary of changes:
 DEVELOPER-NOTES.md | 10 ++++++++++
 1 file changed, 10 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list