7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2024-11-21 23:15:03 +00:00
kicad/qa/tools/ibis
John Beard 0d2371c9c3 IBIS: Constness and skipping copies
Lot of things can be const which makes the interface
a bit more legible and safe to use - lots of things are
accessing pointers that if they changed, would have wierd
and unpredicatable effects.

Probably of minor concern in practice, but a lot of strings
and vectors are being copied when they don't have to be.
Very crude profiling indicates this could save 30-50% of the time in
KIBIS::KIBIS after ParseFile, but this is incidental to
clarifying the API of the classes.

Report is const as it doesn't change the logical state of the
IBIS_ANY object (if m_reporter were a ref, it'd be mutable).

If a T* isn't null-checked inside a function, pass as ref
to show that the function expects and requires non-nullity.
2024-09-19 06:35:43 +01:00
..
CMakeLists.txt the ibis folder is really a tool 2023-04-24 19:25:58 -04:00
ibis_v1_1.ibs the ibis folder is really a tool 2023-04-24 19:25:58 -04:00
ibis_v2_1.ibs the ibis folder is really a tool 2023-04-24 19:25:58 -04:00
ibis_v2_1.pkg the ibis folder is really a tool 2023-04-24 19:25:58 -04:00
ibis_v3_2.ibs the ibis folder is really a tool 2023-04-24 19:25:58 -04:00
ibis_v3_2.pkg the ibis folder is really a tool 2023-04-24 19:25:58 -04:00
qaIbisParser.cpp IBIS: Constness and skipping copies 2024-09-19 06:35:43 +01:00