Everything
2.6.6 Update file dependencies

When you perform a change (changing include file paths, adding the include statement of the header file to the source file, etc.) that effects the file dependencies in the compile option settings or assemble option settings, you must update the dependencies of the relevant files.

Updating file dependencies is performed for the entire project (main project and subprojects) or active project.

(1)

For the entire project

From the [Build] menu, select [Update Dependencies].

Figure 2.60

[Update Dependencies] Item

 

(2)

For the active project

From the [Build] menu, select [Update Dependencies of active project].

Figure 2.61

[Update Dependencies of active project] Item

 

Remark

If there are files being edited with the Editor panel when updating file dependencies, then all these files are saved.

 

Dependency files (include files) can be displayed under the source file on the project tree.

Figure 2.62

Project Tree Panel (After Displaying Dependency File)

 

The display of the dependency files is updated on the following timings:

-

When the first build is run after the project is loaded

-

When on the toolbar is clicked

-

When [Update Dependencies] is selected from the [Build] menu

-

When [Update Dependencies of active project] is selected from the [Build] menu

Remark 1.

The display of dependency files is valid only when the [Show dependency files in project tree] check box in the [General - Build] category of the Option dialog box is selected.

Remark 2.

Information on the dependency files displayed on the project tree is not saved in the project file.

 

The points for caution described below do not apply when [Use compiler for updating dependencies when the functionality is available] is selected for the [General - Build] category in the Option dialog box and the compiler selected for the project is CC-RH V1.00.00 or a later version, CC-RX V2.00.00 or a later version, or CC-RL V1.00.00 or a later version.

Caution 1.

When checking for dependences on include files, CS+ does not support cases of include files to which conditional statements such as #if apply or for which the #include directive is commented out.
Therefore, there is a case where this product regards an include file unnecessary for a build as a necessary file (In the example below, header1.h and header5.h are judged as required for build).

#if         0
#include    "header1.h"     /* Dependence relationship judged to exist */
#else                       /* ! zero */
#include    "header2.h"     /* Dependence relationship to exist */
#endif
 
#define     AAA
#ifdef      AAA
#include    "header3.h"     /* Dependence relationship to exist */
#else
#include    "header4.h"     /* Dependence relationship to exist */
#endif
 
/*
#include    "header5.h"     /* Dependence relationship judged to exist */
*/

Caution 2.

When checking for dependences on include files, CS+ does not support include statements that follow comments or comment marks that are on the same line.
Therefore, there is a case where this product regards an include file necessary for a build as a unnecessary file (In the example below, header6.h and header7.h are judged as no-required for build).

/* comment */   #include    "header6.h"     /* Dependence relationship judged not to exist */
 
/*
comment
*/  #include    "header7.h"                 /* Dependence relationship judged not to exist */