AUTOSAR C++14 Rule M3-9-1
The types used for an object, a function return type, or a function parameter shall be token-for-token identical in all declarations and re-declarations.
説明
ルール定義
The types used for an object, a function return type, or a function parameter shall be token-for-token identical in all declarations and re-declarations.
根拠
再宣言が前の宣言とトークン単位で同一でない場合、再宣言されているオブジェクトまたは関数が目視検査では不明確になります。
Polyspace 実装
ルール チェッカーは、現在の宣言とその前に確認された宣言を比較します。
トラブルシューティング
ルール違反が想定されるものの、Polyspace® から報告されない場合は、コーディング規約違反が想定どおりに表示されない理由の診断を参照してください。
例
チェック情報
| グループ: 基本概念 |
| カテゴリ: Required、Automated |
バージョン履歴
R2019a で導入