Commit 1ca775f
committed
refactor: Modularize codebase and separate implementation from headers
This commit restructures the project from a flat, header-heavy architecture into distinct modules (Core, Analysis, Synthesis, UI, Z3) and moves implementation logic into compiled source files.
- CMakeLists.txt:
- Reorganize source files into module-specific groups
- Update paths to reflect the new `src/<module>/` directory structure
- include/structor/*.hpp (modified):
- Remove inline implementations from `access_collector.hpp`, `layout_synthesizer.hpp`, `structure_persistence.hpp`, and `type_propagator.hpp`
- Reduce headers to pure declarations to minimize include bloat
- src/*/*.cpp (added):
- Move implementation logic from headers to corresponding source files in `src/analysis/`, `src/synthesis/`, and `src/core/`
- Remove `inline` keywords as functions are now compiled in translation units
- include/structor/core/fwd.hpp (added):
- Introduce a central forward-declaration header to reduce circular dependencies and compile-time coupling
- include/structor/structor.hpp (added):
- Add a master include header that aggregates the public API across all modules
Impact:
- Significantly improves incremental build times by breaking header dependencies.
- No functional changes to plugin behavior; this is a purely structural refactor.
- Establishes a clearer separation of concerns between analysis logic, Z3 integration, and UI code.1 parent 4718401 commit 1ca775f
File tree
37 files changed
+3891
-3594
lines changed- include/structor
- analysis
- bindings
- core
- synthesis
- ui
- src
- analysis
- bindings
- core
- synthesis
- ui
37 files changed
+3891
-3594
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
246 | 256 | | |
247 | 257 | | |
248 | 258 | | |
| |||
254 | 264 | | |
255 | 265 | | |
256 | 266 | | |
257 | | - | |
258 | 267 | | |
259 | 268 | | |
260 | 269 | | |
| |||
0 commit comments