mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
recognize source file extensions ".ccm", ".cxxm", and ".c++m" (#422)
* recognize source file extensions ".ccm", ".cxxm", and ".c++m" cmake 3.27 release notes: The "CXX" language now treats source file extensions ".ccm", ".cxxm", and ".c++m" as C++. Signed-off-by: 15knots <11367029+15knots@users.noreply.github.com>
This commit is contained in:
parent
04f67b14b8
commit
09728af3db
5 changed files with 7 additions and 4 deletions
|
@ -2088,7 +2088,7 @@
|
|||
</option>
|
||||
<inputType
|
||||
sourceContentType="org.eclipse.cdt.core.cxxSource"
|
||||
sources="c,C,cc,cxx,cpp,cp,CPP"
|
||||
sources="c,C,cc,cxx,cpp,cp,CPP,ccm,cxxm,c++m"
|
||||
dependencyContentType="org.eclipse.cdt.core.cxxHeader"
|
||||
dependencyExtensions="h,H,hpp,hh,hp,hxx,HPP,h++,tcc"
|
||||
dependencyCalculator="org.eclipse.cdt.managedbuilder.makegen.gnu.DefaultGCCDependencyCalculator2"
|
||||
|
|
|
@ -615,7 +615,7 @@
|
|||
<!-- declares a content type for C++ source files -->
|
||||
<content-type id="cxxSource" name="%cxxSourceName"
|
||||
base-type="org.eclipse.cdt.core.cSource"
|
||||
file-extensions="C,cpp,cxx,cc,c++"
|
||||
file-extensions="C,cpp,cxx,cc,c++,ccm,cxxm,c++m"
|
||||
priority="high"/>
|
||||
<!-- declares a content type for C++ header files -->
|
||||
<content-type id="cxxHeader" name="%cxxHeaderName"
|
||||
|
|
|
@ -1745,7 +1745,7 @@
|
|||
point="org.eclipse.compare.contentMergeViewers">
|
||||
<viewer
|
||||
class="org.eclipse.cdt.internal.ui.compare.CContentViewerCreator"
|
||||
extensions="c,cc,cxx,cpp,c++,h,hh,hxx,hpp,inc,c2"
|
||||
extensions="c,cc,cxx,cpp,c++,ccm,cxxm,c++m,h,hh,hxx,hpp,inc,c2"
|
||||
id="org.eclipse.cdt.ui.compare.CContentViewerCreator">
|
||||
</viewer>
|
||||
<contentTypeBinding
|
||||
|
|
|
@ -4,7 +4,7 @@ Bundle-Name: %bundleName
|
|||
Bundle-Description: %bundleDescription
|
||||
Bundle-Copyright: %Bundle-Copyright
|
||||
Bundle-SymbolicName: org.eclipse.cdt.jsoncdb.core;singleton:=true
|
||||
Bundle-Version: 1.4.0.qualifier
|
||||
Bundle-Version: 1.4.100.qualifier
|
||||
Bundle-Vendor: %Bundle-Vendor
|
||||
Bundle-Localization: plugin
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-17
|
||||
|
|
|
@ -492,6 +492,9 @@ public class CompileCommandsJsonParser {
|
|||
case "cp":
|
||||
case "cxx":
|
||||
case "c++":
|
||||
case "ccm":
|
||||
case "cxxm":
|
||||
case "c++m":
|
||||
// make sure we run built-ins detection only once for C++ files..
|
||||
sourceFileExtension = "cpp";
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue