mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Xcode: Treat .inl files as C++ header files
Generate the `explicitFileType` as `sourcecode.cpp.h` instead of just `sourcecode`. This enables syntax highlighting in Xcode.
This commit is contained in:
@@ -1097,7 +1097,7 @@ std::string GetSourcecodeValueFromFileExtension(
|
||||
} else if (ext == "h") {
|
||||
sourcecode += ".c.h";
|
||||
} else if (ext == "hxx" || ext == "hpp" || ext == "txx" || ext == "pch" ||
|
||||
ext == "hh") {
|
||||
ext == "hh" || ext == "inl") {
|
||||
sourcecode += ".cpp.h";
|
||||
} else if (ext == "png" || ext == "gif" || ext == "jpg") {
|
||||
keepLastKnownFileType = true;
|
||||
|
||||
Reference in New Issue
Block a user