This page provides the logs that are generated while running the CPP (C++ analyzer). More on this topic can be seen in the following documentation links: Run the Analysis
The CPP analyzer can analyze just C code, just CPP code, or a combination of both. This page shows logs when analyzing both C and CPP code.
For configuration options for the analysis including the options above that are mentioned in the log below, please see the following documentation:CPP Technology Options in CAST-MS
In this page, the different logs lines corresponding to the Run CPP Analyzer - C and CPP are listed with functional and technical explanation of the logs that it generates.
If you want to know more about Run Analyzer task related to other technologies, please:
CAST-MS log file
Section of CAST-MS log file dealing with analysis of C and CPP are shown in the logs below.
Run Analysis of C and CPP Source
INF: 2016-11-14 17:30:51: starting Task Application "C_CPP"
INF: 2016-11-14 17:30:51: starting Task Run analysis for 'C_CPP'
INF: 2016-11-14 17:30:51: starting Task Run C++ Analyzer "My C/C++ Analysis Unit_24316_C"
INF: 2016-11-14 17:30:51: C:\Program Files\CAST\8.0/anarun.exe -CONNECT_PROFILE('JMCE7440W7:2280 on CastStorageService.prod800_local') -RUN_AU(1983301,1983302,'C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0\LISA\142b3d6a8ae44045a7ab615af86249d4\Scr24316\JobSettings.xml') -MANAGED(1983301) -SESSION_ID(1983302) -LOG('C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0\142b3d6a8ae44045a7ab615af86249d4\My C_C++ Analysis Unit_24316_C-20161114173051.castlog',TRUNCATE) -LARGESTORAGE('C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0','C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0','142b3d6a8ae44045a7ab615af86249d4/Scr24316') -LOGIN(,CASTCORP\JMC,) -APP(-NOGUI) -FINAL_UPDATE -NOPROGRESS -EXIT
INF: 2016-11-14 17:30:58: About to run JOB_C_ANALYZER job 'My C/C++ Analysis Unit_24316_C'.
INF: 2016-11-14 17:31:09: Execution date=2016/11/14 23:31
INF: 2016-11-14 17:31:09: Execution duration=0 days, 00 hours, 00 mins, 12 secs
INF: 2016-11-14 17:31:09: Execution result=success
INF: 2016-11-14 17:31:11: Loading ini file: C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0\AMRunResult1983302.INI
INF: 2016-11-14 17:31:11: Loading ini file: C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0\AMRunResult1983302.INI
INF: 2016-11-14 17:31:11: Task message: No Task message
INF: 2016-11-14 17:31:11: Log file: C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0\142b3d6a8ae44045a7ab615af86249d4\My C_C++ Analysis Unit_24316_C-20161114173051.castlog
INF: 2016-11-14 17:31:11: ending Task Run C++ Analyzer "My C/C++ Analysis Unit_24316_C"
My Package_<Execution_Unit_ID>-<DateTime>.castlog
This is the C and CPP (C++) analysis log file. The C and CPP is based on analysis of C and CPP source and include files.
Environment Information
2016-11-14 17:30:55.567 Information INTERNAL ; Body 64-bit environment
2016-11-14 17:30:55.567 Information INTERNAL ; Body LISA folder: C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0
2016-11-14 17:30:55.567 Information INTERNAL ; Body LTSA folder: C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0
2016-11-14 17:30:55.567 Information INTERNAL ; Body LSA relative folder: 142b3d6a8ae44045a7ab615af86249d4/Scr24316
2016-11-14 17:30:55.919 Information INTERNAL ; Body Using Knowledge Base on schema prod800_local.
Run Analysis is About to Start
2016-11-14 17:30:57.321 Information MODULMSG ; Body Loading meta model from repository . . .
2016-11-14 17:30:58.376 Information MODULMSG ; Body Meta model loaded.
2016-11-14 17:30:58.376 Information INTERNAL ; Body RunAnalysis started
Configuration Information - Options from CAST-MS for CPP Analysis
2016-11-14 17:30:58.376 Information INTERNAL ; Body C File Extensions : *.c;*.pc;*.ppc
2016-11-14 17:30:58.376 Information INTERNAL ; Body C++ File Extensions : *.cpp;*.cc
2016-11-14 17:30:58.376 Information INTERNAL ; Body Analysis Unit description :
2016-11-14 17:30:58.376 Information INTERNAL ; Body Disable use of PCH : 0
2016-11-14 17:30:58.376 Information INTERNAL ; Body Force Include File :
2016-11-14 17:30:58.383 Information INTERNAL ; Body Standard processing of 'typename' : 1
2016-11-14 17:30:58.383 Information INTERNAL ; Body >> allowed to close nested templates : 1
2016-11-14 17:30:58.383 Information INTERNAL ; Body Use Microsoft Managed C++ extensions (CLR) : 0
2016-11-14 17:30:58.383 Information INTERNAL ; Body Name : My C/C++ Analysis Unit
2016-11-14 17:30:58.383 Information INTERNAL ; Body Project Path : User defined
2016-11-14 17:30:58.383 Information INTERNAL ; Body PCH generator :
2016-11-14 17:30:58.383 Information INTERNAL ; Body Precompiled header :
2016-11-14 17:30:58.383 Information INTERNAL ; Body Standard scope of 'for' loops : 1
2016-11-14 17:30:58.383 Information INTERNAL ; Body Accept Trigraphs : 0
2016-11-14 17:30:58.383 Information INTERNAL ; Body Detect unknown compilation directives : 1
2016-11-14 17:30:58.383 Information INTERNAL ; Body Custom Environment Profiles
2016-11-14 17:30:58.383 Information INTERNAL ; Body Define the Include paths used by the Analysis Unit
2016-11-14 17:30:58.383 Information INTERNAL ; Body Define the macros used by this Analysis Unit
2016-11-14 17:30:58.384 Information INTERNAL ; Body Sources
2016-11-14 17:30:58.384 Information INTERNAL ; Body File Path : C:\CASTMS\prod80\Deploy\C_CPP\CPP_Both\C
2016-11-14 17:30:58.384 Information INTERNAL ; Body Permission : Include
2016-11-14 17:30:58.384 Information INTERNAL ; Body File Path : C:\CASTMS\prod80\Deploy\C_CPP\CPP_Both\CPP
2016-11-14 17:30:58.384 Information INTERNAL ; Body Permission : Include
2016-11-14 17:30:58.384 Information INTERNAL ; Body Consider Files as : Both C and C++
2016-11-14 17:30:58.384 Information INTERNAL ; Body IDE used for this Analysis Unit : VC++ 2008 Win32/MFC
2016-11-14 17:30:58.384 Information INTERNAL ; Body STL Support : STL already in your Source Code Repository
2016-11-14 17:30:58.384 Information INTERNAL ; Body Number of Instances : 200000
2016-11-14 17:30:58.388 Information INTERNAL ; Body SESSION CONTEXT details:
1983301 ; 1983302 = "C_CPP"."My C/C++ Analysis Unit_24316_C"
2016-11-14 17:30:58.388 1 ; Job execution
CPP Analysis is Starting
We know that the analysis is starting with the statement : About to run <Execution unit name>
2016-11-14 17:30:58.388 Information INTERNAL ; Job execution About to run JOB_C_ANALYZER job 'My C/C++ Analysis Unit_24316_C'.
2016-11-14 17:30:58.392 Information MODULMSG ; Job execution Total physical memory: 8095 MB.
2016-11-14 17:30:59.444 Information MODULMSG ; Job execution External link component has loaded 0 objects
Macro and Include File Information From Environment Profiles and Settings
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution include path: '' (from current analysis unit), unsaved
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution include path: '' (from current analysis unit), unsaved
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution include path: '' (from current analysis unit), unsaved
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution include path: 'C:\Program Files\Common Files\CAST\CAST\EnvProf\CPP\VC++ 2008 Mandatory part\' (from current analysis unit), unsaved
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro _WINDOWS =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro _AFXDLL =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro _DLL =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro _MT =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro ATLASSERT(x) =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro _MSC_EXTENSIONS = 1
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro _MSC_VER = 1500
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro _WIN32 = 1
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro _Wp64 = 1
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __interface = struct
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro _CPPUNWIN = 1
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro _M_IX86 = 600
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro WIN32 = 1
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro _MBCS =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __w64 =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro _ATL_MIXED =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __pragma(x) =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __restrict =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __unaligned =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __sptr =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __uptr =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __ptr64 =
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_abstract(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_base_of(x,y) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_class(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_convertible_to(x,y) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_delegate(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_empty(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_enum(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_interface_class(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_pod(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_polymorphic(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_ref_array(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_ref_class(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_sealed(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_simple_value_class(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_union(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __is_value_class(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __identifier(x) = x ## _CAST_IDENT_
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __except(expr) = __except (int __dummy__=(expr))
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __finally(expr) = __finally (int __dummy__=(expr))
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __has_assign(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __has_copy(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __has_finalizer(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __has_nothrow_assign(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __has_nothrow_constructor(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __has_nothrow_copy(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __has_trivial_assign(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __has_trivial_constructor(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __has_trivial_copy(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __has_trivial_destructor(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __has_user_destructor(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __has_virtual_destructor(x) = true
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro __typeof(x) = typeid(x)
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution macro _INTEGRAL_MAX_BITS = 64
Parsing Source Files
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution Analysis beginning.
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution --------------------------------------------------------------------------------
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution Debugging options:
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution Debug mode message log: no (default)
2016-11-14 17:31:00.496 Information MODULMSG ; Job execution --------------------------------------------------------------------------------
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Running analysis 'My C/C++ Analysis Unit_24316_C'.
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution _________ Compiling source files for executable My C/C++ Analysis Unit_24316_C (3 items)...
_______________________________________________________________
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Parsing file (1/3) C:\CASTMS\prod80\Deploy\C_CPP\CPP_Both\C\C_code\Example.c...
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Preprocessing...
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Low level parsing...
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Source analysis...
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Parsing file (2/3) C:\CASTMS\prod80\Deploy\C_CPP\CPP_Both\CPP\CPP_Code\1\Interface.cpp...
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Preprocessing...
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Low level parsing...
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Source analysis...
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Parsing file (3/3) C:\CASTMS\prod80\Deploy\C_CPP\CPP_Both\CPP\CPP_Code\2\Interfacex.cpp...
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Preprocessing...
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Low level parsing...
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Source analysis...
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution Compilation done.
Compare and Merge
2016-11-14 17:31:00.497 Information MODULMSG ; Job execution --------------------------------------------------------------------------------
2016-11-14 17:31:00.847 MODULMSG ; Job execution Comparing objects on server . . .
2016-11-14 17:31:06.113 MODULMSG ; Job execution Comparison completed.
2016-11-14 17:31:06.113 MODULMSG ; Job execution Merging objects on server . . .
2016-11-14 17:31:09.623 MODULMSG ; Job execution Merge completed.
Execution Summary
2016-11-14 17:31:10.326 Information INTERNAL ; Job execution New Job status
2016-11-14 17:31:10.326 Information INTERNAL ; Job execution Execution date=2016/11/14 23:31
2016-11-14 17:31:10.326 Information INTERNAL ; Job execution Execution duration=0 days, 00 hours, 00 mins, 12 secs
2016-11-14 17:31:10.326 Information INTERNAL ; Job execution Execution result=success
2016-11-14 17:31:10.326 MSGACCOUNT ; Summary
2016-11-14 17:31:10.326 1048575 ; Job execution
2016-11-14 17:31:10.678 Information INTERNAL ; Body Analysis completed
CAST_MainTask_SummaryLog_<date_time>.txt
Contents of the Main Task Summary log for the analysis of C and CPP as shown above.
Execution Summary of C and CPP Source
Status: Execution succeeded
Start: Mon Nov 14 17:30:50 CST 2016
OS Version: Windows 8 (version 6.2)
Machine name: <machine name>
Software Version: CAST 8.0.0 ( Build 8525 )
Task: Take a snapshot of the application
Total duration: 5m37s
Nb of Computed Quality Rules: 136
Statistics summary for C and CPP Application
-- Statistics for application C_CPP --
Analysis duration: 40s
Nb of modules: 1
Nb of active analysis units: 1
Nb of inactive analysis units: 0
Total nb of analysis units: 1
Nb of saved objects: 38
Summary is saved at <log_file_location>\CAST_MainTask_SummaryLog_<date_time>.txt