JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.0p0 Hot Tips | CONFIDENTIAL | CodeSecure Inc |
A type is not explicitly specified in one of the following contexts.
When type is not explicitly specified in these cases, it is implicitly int. This may not be what the writer intended, or what a reader assumes.
| クラス名 | Implicit Type | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 日本語クラス名 | Implicit Type | ||||||||||||
| クラス分類 | スタイル (style) | ||||||||||||
| ニーモニック | LANG.STRUCT.DECL.IMPT | ||||||||||||
| カテゴリー |
|
||||||||||||
| 対応言語 | C のみ利用可能です。 C++ は利用できません。 |
||||||||||||
| 有効/無効設定 | このワーニングクラスのチェックはデフォルトで無効になっています。チェックを有効にするにはプロジェクト設定ファイル
(configuration file)に以下の WARNING_FILTER ルールを追加してください。
WARNING_FILTER += allow class="Implicit Type" |
f1(); /* 'Implicit Type' warning issued here * - return type implicitly int */ int f2(); /* ok: explicit return type */ g1(){ /* 'Implicit Type' warning issued here * - return type implicitly int */ return 42; } int g2(){ /* ok: explicit return type */ return 42; } int h1(const x); /* 'Implicit Type' warning issued here * - parameter type implicitly const int */ int h2(const int x); /* ok: explicit parameter type */ a_global1 = 42; /* 'Implicit Type' warning issued here * - variable type implicitly int */ int a_global2 = 42; /* ok: explicit variable type */ extern an_extern1; /* 'Implicit Type' warning issued here * - variable type implicitly int */ extern int an_extern2; /* ok: explicit variable type */
設定ファイルの以下のパラメータがこのワーニングクラスのチェックに影響します。