Files
sourcekit-lsp/Sources/SKCore
Alex Hoppen 0cccd3b443 Refactor the computation of main files
The motivating change for this was to deterministically pick a main file for a header file instead of picking the first element in a set, which is not deterministic.

While doing this, I also changed the main file computation to not carry any state about previous main files around. If a header file is associated with a main file b.cpp and a new a.cpp gets added that imports the header as well, we should be using a.cpp for the build settings. That way we will get the same build settings if we close and re-open the project.

And this was a good opportunity to refactor some of the main file handling into smaller, more dedicated functions.
2023-10-03 08:06:08 -07:00
..
2023-09-19 17:32:54 -07:00