C and C++


LANG.COMM.NEST.CPPSTYLE : コメント内の//

要旨

/*...*/ コメント内に、文字列 // が含まれています。

プロパティ

クラス名 // in Comment
日本語クラス名 コメント内の//
クラス分類 スタイル (style)
ニーモニック LANG.COMM.NEST.CPPSTYLE
カテゴリー
MisraC2023 MisraC2023:3.1 The character sequences /* and // shall not be used within a comment
Misra2012 Misra2012:3.1 The character sequences /* and // shall not be used within a comment
対応言語 C および C++ で利用可能です。
有効/無効設定 このワーニングクラスのチェックはデフォルトで無効になっています。チェックを有効にするにはプロジェクト設定ファイル (configuration file)に以下の WARNING_FILTER ルールを追加してください。
WARNING_FILTER += allow class="// in Comment"

/* following line ok: C++ style comment not nested inside a C-style comment */
// this comment // is ok 

    /* LANG.COMM.NEST.CPPSTYLE warning issued on following line */
/* this comment // is not ok */

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

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