Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NFC] Integrate clang-format to hctgen (#5732)
This integrates formatting generated sources with clang-format with the hctgen generation process. This change makes a few small adjustments to how the build-time header generation works. This change, disables automated build-time generation for C++ sources if you don't have clang-format available on your system. CMake can automatically detect clang-format installed as part of Visual Studio, or based on your PATH. You can also explicitly set `CLANG_FORMAT_EXE` when configuring to manually override. **Developers on macOS** will need to install clang-format manually and place it on their path to generate DXC's generated sources. If clang-format cannot be found and `HLSL_COPY_GENERATED_SOURCES` is On a fatal error will be reported at configuration time. This change _does not_ make clang-format a requirement to build DXC, but it does make it a requirement if you are modifying the generated sources.
- Loading branch information