Replace internal CPLList usages with std::vector#1
Closed
abellgithub with Copilot wants to merge 2 commits into
Closed
Replace internal CPLList usages with std::vector#1abellgithub with Copilot wants to merge 2 commits into
abellgithub with Copilot wants to merge 2 commits into
Conversation
…ctor) Agent-Logs-Url: https://github.com/abellgithub/gdal/sessions/28b7a87e-61f4-4716-b7a4-6e915434f177 Co-authored-by: abellgithub <1316400+abellgithub@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor usage of CPLList to std::vector throughout codebase
Replace internal CPLList usages with std::vector
May 14, 2026
abellgithub
pushed a commit
that referenced
this pull request
Jul 16, 2026
Fixes table formatting issues described in fixes OSGeo#2592 and fixes OSGeo#2563. - [WMS Preview](https://gdal--14724.org.readthedocs.build/en/14724/drivers/raster/wms.html#xml-description-file) - [WMTS Preview](https://gdal--14724.org.readthedocs.build/en/14724/drivers/raster/wmts.html#local-service-description-xml-file) - [PDF Output](https://github.com/OSGeo/gdal/actions/runs/27025002344/artifacts/7441196643) The same RST simple table format was used for both tables, as it is easier to read and edit in plain text. CSS was added for wrapping in HTML output (rather than a scrollbar). Some example URLs were shortened to fit within the column width. To fix the PDF, additional settings were added to the preamble (settings inserted at the top of the document): - `\newcolumntype{P}[1]{>{\raggedright\hspace{0pt}\sloppy}p{#1}}` - a new P column type that allows for text wrapping of long chunks of text / XML. `raggedright` turns off justification, `sloppy` helps LaTeX find a break for wrapping. `\hspace{0pt}` inserts a zero-width breakpoint so long strings can break - `\setlength{\emergencystretch}{3em}` - helps with the wrapping by stretching text - `\setlength{\LTleft}{0pt}` and `\setlength{\LTright}{0pt}` fixed issues with the table widths and gaps at the side (the `longtable` used by Sphinx for wide tables) - https://ctan.org/pkg/xurl might be a useful option, but I avoided adding another package for now Before: <img width="1351" height="243" alt="image" src="https://github.com/user-attachments/assets/c0b21fb6-a758-436b-b14f-858cdd3bb9eb" /> After: <img width="1216" height="223" alt="image" src="https://github.com/user-attachments/assets/6b28aa8a-4e6f-433d-bf61-05255a375021" />
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All internal uses of the C-style linked list API from
cpl_list.h(CPLList,CPLListAppend,CPLListInsert, etc.) should be replaced withstd::vectorequivalents across the codebase.Changes identified
port/cpl_worker_thread_pool.h— removed unused#include "cpl_list.h";CPLList *psWaitingWorkerThreadsListto be replaced withstd::vector<CPLWorkerThread*>port/cpl_worker_thread_pool.cpp— update all linked-list manipulation of the waiting-thread list to use vector operationsalg/gdaltransformer.cpp— replaceCPLList *psListDeserializerwithstd::vector<TransformDeserializerInfo*>frmts/georaster/georaster_priv.h,georaster_wrapper.cpp,georaster_rasterband.cpp— replaceCPLList *psNoDataListwithstd::vector<hNoDataItem>port/cpl_hash_set.cpp— replace internal per-bucketCPLList*linked lists withstd::vector<void*>frmts/hdf4/hdf4dataset.h,frmts/hdf5/hdf5dataset.h— remove unused#include "cpl_list.h"autotest/cpp/test_cpl.cpp— update/remove tests for the now-unused CPLList APIOriginal prompt
This pull request was created from Copilot chat.