Fix a few inconsistencies in reporting of file/line numberings including modifying the overload warnings to now be two line warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11813 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a541f7c203
commit
e554146aac
11 changed files with 106 additions and 92 deletions
|
|
@ -684,8 +684,8 @@ void foo(Bar &b);
|
|||
If declarations such as these appear, you will get a warning message like this:
|
||||
</p>
|
||||
<div class="shell"><pre>
|
||||
example.i:12: Warning 509: Overloaded spam(short) is shadowed by spam(int)
|
||||
at example.i:11.
|
||||
example.i:12: Warning 509: Overloaded method spam(short) effectively ignored,
|
||||
example.i:11: Warning 509: as it is shadowed by spam(int).
|
||||
</pre></div>
|
||||
<p>
|
||||
To fix this, you either need to ignore or rename one of the methods. For example:
|
||||
|
|
|
|||
|
|
@ -1710,8 +1710,8 @@ If declarations such as these appear, you will get a warning message like this:
|
|||
|
||||
<div class="shell">
|
||||
<pre>
|
||||
example.i:12: Warning 509: Overloaded spam(short) is shadowed by spam(int)
|
||||
at example.i:11.
|
||||
example.i:12: Warning 509: Overloaded method spam(short) effectively ignored,
|
||||
example.i:11: Warning 509: as it is shadowed by spam(int).
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -1810,7 +1810,11 @@ message like this: </p>
|
|||
|
||||
|
||||
<div class="code shell">
|
||||
<pre>example.i:12: Warning 509: Overloaded spam(short) is shadowed by spam(int)<br>at example.i:11.<br> </pre>
|
||||
<pre>
|
||||
example.i:12: Warning 509: Overloaded method spam(short) effectively ignored,
|
||||
example.i:11: Warning 509: as it is shadowed by spam(int).
|
||||
<br>
|
||||
</pre>
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2031,7 +2031,8 @@ Therefore, when SWIG encounters this situation, it may generate a warning messag
|
|||
|
||||
<div class="shell">
|
||||
<pre>
|
||||
example.i:4: Warning 509: Overloaded foo(long) is shadowed by foo(int) at example.i:3.
|
||||
example.i:4: Warning 509: Overloaded method foo(long) effectively ignored,
|
||||
example.i:3: Warning 509: as it is shadowed by foo(int).
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
|
|
@ -2041,7 +2042,8 @@ or for statically typed languages like Java:
|
|||
|
||||
<div class="shell">
|
||||
<pre>
|
||||
example.i:4: Warning 516: Overloaded method foo(long) ignored. Method foo(int)
|
||||
example.i:4: Warning 516: Overloaded method foo(long) ignored,
|
||||
example.i:3: Warning 516: using foo(int) instead.
|
||||
at example.i:3 used.
|
||||
</pre>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1502,8 +1502,8 @@ If declarations such as these appear, you will get a warning message like this:
|
|||
|
||||
<div class="code">
|
||||
<pre>
|
||||
example.i:12: Warning 509: Overloaded spam(short) is shadowed by spam(int)
|
||||
at example.i:11.
|
||||
example.i:12: Warning 509: Overloaded method spam(short) effectively ignored,
|
||||
example.i:11: Warning 509: as it is shadowed by spam(int).
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -494,22 +494,22 @@ example.i(4): Syntax error in input.
|
|||
|
||||
|
||||
<ul>
|
||||
<li>501. Overloaded declaration ignored. <em>decl</em>
|
||||
<li>502. Overloaded constructor ignored. <em>decl</em>
|
||||
<li>501. Overloaded declaration ignored. <em>decl</em>. Previous declaration is <em>decl</em>.
|
||||
<li>502. Overloaded constructor ignored. <em>decl</em>. Previous declaration is <em>decl</em>.
|
||||
<li>503. Can't wrap '<em>identifier</em>' unless renamed to a valid identifier.
|
||||
<li>504. Function <em>name</em> must have a return type.
|
||||
<li>505. Variable length arguments discarded.
|
||||
<li>506. Can't wrap varargs with keyword arguments enabled.
|
||||
<li>507. Adding native function <em>name</em> not supported (ignored).
|
||||
<li>508. Declaration of '<em>name</em>' shadows declaration accessible via operator->() at <em>file:line</em>.
|
||||
<li>509. Overloaded <em>declaration</em> is shadowed by <em>declaration</em> at <em>file</em>:<em>line</em>.
|
||||
<li>509. Overloaded method <em>declaration</em> effectively ignored, as it is shadowed by <em>declaration</em>.
|
||||
<li>510. Friend function '<em>name</em>' ignored.
|
||||
<li>511. Can't use keyword arguments with overloaded functions.
|
||||
<li>512. Overloaded <em>declaration</em> const ignored. Non-const method at <em>file</em>:<em>line</em> used.
|
||||
<li>512. Overloaded method <em>declaration</em> ignored, using non-const method <em>declaration</em> instead.
|
||||
<li>513. Can't generate wrappers for unnamed struct/class.
|
||||
<li>514.
|
||||
<li>515.
|
||||
<li>516. Overloaded method <em>declaration</em> ignored. Method <em>declaration</em> at <em>file</em>:<em>line</em> used.
|
||||
<li>516. Overloaded method <em>declaration</em> ignored, using <em>declaration</em> instead.
|
||||
<li>517.
|
||||
<li>518. Portability warning: File <em>file1</em> will be overwritten by <em>file2</em> on case insensitive filesystems such as Windows' FAT32 and NTFS unless the class/module name is renamed.
|
||||
<li>519. %template() contains no name. Template method ignored: <em>declaration</em>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue