diff --git a/DEVELOPER-NOTES.md b/DEVELOPER-NOTES.md index bfa94f66f2..c21bbbf709 100644 --- a/DEVELOPER-NOTES.md +++ b/DEVELOPER-NOTES.md @@ -87,6 +87,10 @@ public: * It lowers the number of heap allocations, because it allocates larger blocks of space to store multiple `HalfEdge` objects. * It handles the lifecycle of the `HalfEdge` objects that make up the `EdgeGraph`, because when the `EdgeGraph` is deallocated, the `std::deque<>` and all its contents are also automatically deallocated. +### Use `pragma once` to limit header inclusion + +Use `#pragma once` to limit header inclusion. It is simpler and faster. + ### Use forward declarations in header files Where possible, in header files use **forward declarations** rather than header includes. @@ -106,10 +110,6 @@ rather than: #include ``` -### Use `pragma once` to limit header inclusion - -Use `#pragma once` to limit header inclusion. It is simpler and faster. - ### Use `using` to reduce namespace qualifiers GEOS is organized into many nested namespaces to reflect the JTS package structure. diff --git a/web/content/project/development/_index.md b/web/content/project/development/_index.md index 2f4eb6855b..b397be7dc7 100644 --- a/web/content/project/development/_index.md +++ b/web/content/project/development/_index.md @@ -25,7 +25,6 @@ When submitting bugs caused by particular geometries, you must [WKB]({{< ref "../../specifications/wkb" >}}), so that we can re-produce the failure cases. - ## Contributing To contribute fixes to outstanding issues, enhancements, and other smaller @@ -37,3 +36,7 @@ is not a "smaller" change, please join the [**geos-devel** mailing list](https://lists.osgeo.org/mailman/listinfo/geos-devel) and describe your plans. **Join the list!** It is a great way to get acquainted with what the development community is working on. + +## Coding Style + +For guidance on the coding style used in GEOS see the [**Developer Notes**](https://github.com/libgeos/geos/blob/main/DEVELOPER-NOTES.md).