C and C++


LANG.PREPROC.INCLUDE : Use of #include

要旨

A use of the #include preprocessor directive.

Many coding standards forbid the use of #include because it makes code harder for human readers to understand.

プロパティ

クラス名 Use of #include
日本語クラス名 Use of #include
クラス分類 スタイル (style)
ニーモニック LANG.PREPROC.INCLUDE
カテゴリー
CWE CWE:710 Improper Adherence to Coding Standards
JSF++ JSF++:32 The #include pre-processor directive will only be used to include header (*.h) files.
対応言語 C および C++ で利用可能です。
有効/無効設定 このワーニングクラスのチェックはデフォルトで無効になっています。チェックを有効にするにはプロジェクト設定ファイル (configuration file)に以下の WARNING_FILTER ルールを追加してください。
WARNING_FILTER += allow class="Use of #include"

#ifdef NEED_MATH        /* ('Use of #ifdef' warning issued here if enabled) */
#include "math.h" /* 'Use of #include' warning issued here */
#endif                  /* ('Use of #endif' warning issued here if enabled) */

関連のある設定ファイルパラメータ

設定ファイルの以下のパラメータがこのワーニングクラスのチェックに影響します。