C++20 Modules current style is to assign a new file suffix .cppm.
https://github.com/llvm/llvm-project/issues/52658
Ensure git-clang-format can handle that as a default extension
Differential D115625
[clang-format] add support for cppm files MyDeveloperDay on Dec 13 2021, 3:55 AM. Authored by
Details C++20 Modules current style is to assign a new file suffix .cppm. https://github.com/llvm/llvm-project/issues/52658 Ensure git-clang-format can handle that as a default extension
Diff Detail
Unit Tests
Event TimelineComment Actions Thanks for the quick respond! A note in the summary: - C++20 Modules current style is to assign a new file suffix .cppm instead of .cpp and .h + C++20 Modules current style is to assign a new file suffix .cppm. Since *.cpp and *.h is not deprecated.
Comment Actions LGTM.
Comment Actions FWIW, Clang also supports .ccm, .cxxm, and .c++m. See https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/Types.cpp#L273 |
Nit: I would put it close to other C++ extensions.