C and C++


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

要旨

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

プロパティ

クラス名 /* in Comment
日本語クラス名 コメント内の/*
クラス分類 スタイル (style)
ニーモニック LANG.COMM.NEST.CSTYLE
カテゴリー
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
Misra2004 Misra2004:2.3 The character sequence /* shall not be used within a comment
AUTOSARC++14 AUTOSARC++14:M2-7-1 The character sequence /* shall not be used within a C-style comment.
MisraC++2008 MisraC++2008:2-7-1 The character sequence /* shall not be used within a C-style comment.
MisraC++2023 MisraC++2023:5.7.1 The character sequence /* shall not be used within a C-style comment
対応言語 C および C++ で利用可能です。
有効/無効設定 このワーニングクラスのチェックはデフォルトで無効になっています。チェックを有効にするにはプロジェクト設定ファイル (configuration file)に以下の WARNING_FILTER ルールを追加してください。
WARNING_FILTER += allow class="/* in Comment"

/* body of comment does not contain C-style comment start delimiter */
/* C-style comment */  

    /* body of comment does not contain C-style comment start delimiter */
// C++-style comment  

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

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

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

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