diff options
author | Jake Turner <jake@evansturner.co.uk> | 2021-09-26 10:38:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-28 14:49:04 (GMT) |
commit | 16ea0e57f7ff51ef1d1b64eb270a7762e0c67726 (patch) | |
tree | 62b5012195061bdcb1bb7d1ffcacd901c579ec51 /Source | |
parent | 1edc9e88879d00e7015ce2ab2c6e663ae59a37fe (diff) | |
download | CMake-16ea0e57f7ff51ef1d1b64eb270a7762e0c67726.zip CMake-16ea0e57f7ff51ef1d1b64eb270a7762e0c67726.tar.gz CMake-16ea0e57f7ff51ef1d1b64eb270a7762e0c67726.tar.bz2 |
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.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index c3d60b0..d61d373 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -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; |