vector-of-bool / pitchfork

Pitchfork is a Set of C++ Project Conventions
MIT License
1.08k stars 56 forks source link

Smart grouping in updated file list #22

Open Quincunx271 opened 5 years ago

Quincunx271 commented 5 years ago

Implement semi-smart grouping in the generated file list. In other words, groups of files are separated by blank lines:

# Before this change:
set(sources
    # sources
    some/path/to/file1.cpp
    some/path/to/file2.cpp
    some/path/to/file3.cpp
    some/other/path/to/file1.cpp
    some/other/path/at/file2.cpp
)

# After this change:
set(sources
    # sources
    some/path/to/file1.cpp
    some/path/to/file2.cpp
    some/path/to/file3.cpp

    some/other/path/to/file1.cpp
    some/other/path/at/file2.cpp
)

There is a latent bug: .\bin\existing.exe runs forever on Windows, and I have no idea why. I couldn't get my debugger to show me the source. Edit: The problem is that fs::ascending_iterator{} produces "/" on Windows, but you can't get higher than "C:\", so find_if keeps going.

Other changes: