Merge pull request #1415 from englercj/c++-ext-support

Add .c++ extension support to a few spots it was missing
This commit is contained in:
Samuel Surtees 2020-03-28 18:55:42 +10:00 committed by GitHub
commit c4f36032cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -413,11 +413,11 @@
function m.buildStep(cfg)
if #cfg.buildCommands > 0 or #cfg.buildOutputs > 0 or #cfg.buildInputs > 0 or cfg.buildMessage then
p.push('<CustomBuildStep>')
p.callArray(m.elements.buildStep, cfg)
p.pop('</CustomBuildStep>')
end
end
@ -779,7 +779,7 @@
---
m.categories.ClCompile = {
name = "ClCompile",
extensions = { ".cc", ".cpp", ".cxx", ".c", ".s", ".m", ".mm" },
extensions = { ".cc", ".cpp", ".cxx", ".c++", ".c", ".s", ".m", ".mm" },
priority = 2,
emitFiles = function(prj, group)

View File

@ -29,6 +29,7 @@
[".cc"] = "Sources",
[".cpp"] = "Sources",
[".cxx"] = "Sources",
[".c++"] = "Sources",
[".dylib"] = "Frameworks",
[".framework"] = "Frameworks",
[".m"] = "Sources",
@ -119,6 +120,7 @@
[".cpp"] = "sourcecode.cpp.cpp",
[".css"] = "text.css",
[".cxx"] = "sourcecode.cpp.cpp",
[".c++"] = "sourcecode.cpp.cpp",
[".S"] = "sourcecode.asm.asm",
[".framework"] = "wrapper.framework",
[".gif"] = "image.gif",