Skip to content

Commit

Permalink
Add documentation for new warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePopoloski committed May 1, 2024
1 parent a287823 commit f56f4b7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions scripts/warning_docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1223,3 +1223,35 @@ module m;
int j = i;
endmodule
```

-Wfloat-int-conv
A floating point value (real or shortreal) is implicitly converted to an integer.
```
function automatic f(real r);
int i = r;
endfunction
```

-Wint-float-conv
A integer value is implicitly converted to a floating point type (real or shortreal).
```
function automatic f(int i);
real r = i;
endfunction
```

-Wfloat-expand
A floating point value is implicitly converted to a wider floating point type.
```
function automatic f(shortreal s);
real r = s;
endfunction
```

-Wfloat-shrink
A floating point value is implicitly converted to a narrower floating point type.
```
function automatic f(real r);
shortreal s = r;
endfunction
```

0 comments on commit f56f4b7

Please sign in to comment.