C and Cpp File Discoverer - 2.0
Extension ID
com.castsoftware.dmtcfilediscoverer
What’s new?
See Release Notes.
Extension description
This discoverer detects projects based on the presence of C or C++ files according to a list of extensions declared for these languages.
In what situation should you install this extension?
This extension should be used when you don’t use Microsoft C/C++
projects to build your C/C++ application. Project files such
as makefile
are not supported by the discoverers provided “out of
the box” in CAST. Therefore, this extension acts as a kind of “catch-all” to ensure that all C and C++ files will be packaged for analysis.
Technical information
What does the extension identify - i.e. what does it consider as a “project” and therefore an Analysis Unit?
Only one project is created per package when C or C++ files are detected (i.e. one project is equal to one Analysis Unit) - the following are supported:
*.c
,*.pc
,*.ppc
*.cpp
,*.cc
,*.cxx
This project will use the name of the top-folder that contains C or C++ files. As such, given the following folder structure (for example):
root
-folder1
--folder2
---src
----folder3
-----file1.c
----folder4
-----file2.c
----folder5
-----file3.c
-----file4.cpp
---include
----file1.h
----file2.h
Using this extension with the above folder structure will yield a
project called src
with a root path folder1/folder2/src
. This
project references the folder corresponding to the root in order to
include all C/C++ files. If header files are found outside the
top-folder, they are not added in the references of the project.
.vcproj
or .vcxproj
project definition file is identified in any location under the root path (including recursive sub-folders).
Compatibility
Core release | Operating System | Supported |
---|---|---|
v3/8.4.x | Microsoft Windows / Linux | ✅ |
v2/8.3.x | Microsoft Windows | ✅ |