C and C++


LANG.PREPROC.ENDIF : Use of #endif

要旨

A use of the #endif preprocessor directive.

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

プロパティ

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

#ifdef NEED_E                 /* ('Use of #ifdef' warning issued here if enabled) */
double e = 2.7182818;
#endif               /* 'Use of '#endif' warning issued here */

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

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