- find "$root_dir" \( -name '*.cpp' -o -name '*.hpp' \) \
- ! -wholename '*/cpp-common/optional.hpp' \
- ! -wholename '*/cpp-common/string_view.hpp' \
- ! -wholename '*/cpp-common/nlohmann/json.hpp' \
+ #
+ # We want an absolute starting directory because find(1) excludes
+ # files in specific subdirectories.
+ find "$(realpath "$root_dir")" \( -name '*.cpp' -o -name '*.hpp' \) \
+ ! -path '*/src/cpp-common/optional.hpp' \
+ ! -path '*/src/cpp-common/string_view.hpp' \
+ ! -path '*/src/cpp-common/nlohmann/json.hpp' \