View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0032917 | Open CASCADE | OCCT:Coding | public | 2022-04-07 10:30 | 2023-03-19 23:18 |
Reporter | Assigned To | ||||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Platform | Windows | OS | VC++ 2019 | ||
Product Version | 7.6.0 | ||||
Target Version | 7.7.0 | Fixed in Version | 7.6.3 | ||
Summary | 0032917: Coding Rules - eliminate MSVS warning C26440 on VS2019/C++20 (If your function may not throw, declare it noexcept) | ||||
Description | Microsoft Visual Studio Professional 2019 Version 16.11.11 std=c++20 Get rid of warning C26440: "If your function may not throw, declare it noexcept" "If code is not supposed to cause any exceptions, it should be marked as such by using the 'noexcept' specifier. This would help to simplify error handling on the client code side, as well as enable compiler to do additional optimizations." | ||||
Steps To Reproduce | Not required | ||||
Tags | No tags attached. | ||||
Test case number | Not required | ||||
child of | 0032887 | assigned | Coding - Problem of compilation on VS2019/C++20 |
|
Branch CR32917 has been created by ddzama. SHA-1: e884648d35bf6b224f91a02376d8716ba8edce14 Detailed log of new commits: Author: Dmitry DZAMA Date: Thu Mar 31 09:21:08 2022 +0300 0032917: Coding Rules - eliminate MSVS2019 warning C26440 (If your function may not throw, declare it noexcept) Microsoft Visual Studio Professional 2019 Version 16.11.11 std=c++20 Get rid of warning C26440: "If your function may not throw, declare it noexcept" "If code is not supposed to cause any exceptions, it should be marked as such by using the 'noexcept' specifier. This would help to simplify error handling on the client code side, as well as enable compiler to do additional optimizations." |
|
Branch CR32917 has been updated forcibly by ddzama. SHA-1: 2af527362db6d0196c6aeb0cace33a719fdd4f46 |
|
Branch CR32917 has been updated forcibly by ddzama. SHA-1: fab19ad626fd8c3cb7947d7dab7005418fa2d7dc |
|
|
|
1. C26440 is generated for move operators only. 2. Please check replacement possibility `noexcept(true)` -> `noexcept` to reduce syntax sugar. |
|
Branch CR32917 has been updated forcibly by ddzama. SHA-1: 8e5614e359efea9186dd4f0d96bb510dd9d80a40 |
|
Branch CR32917 has been updated forcibly by ddzama. SHA-1: af0782421f456732b4471c62627f8a0025bd9923 |
|
1. In MSVC documentation are not any information relating std::move operand and generating that warning. 2. Yes, noexcept may be used instead noexcept(true) |
|
Please proceed with the point number two. |
|
Branch CR32917 has been updated forcibly by ddzama. SHA-1: ebc694145e9bfa0a1d2b1a695b537475d8d52194 |
|
Reviewed. Please raise the patch. OCCT - CR32917 Products - NOT |
|
Combination - OCCT branch : IR-2022-04-29 master SHA - e976df232941aae838b8c3dcf4b9f79f79bea705 49e51745631c52b6c452c65adae4d6dfa21a1b1e Products branch : IR-2022-04-29 SHA - d8a13f7f0c119514dcb0285266e54f3994f65e57 was compiled on Linux, MacOS and Windows platforms and tested in optimize mode. Number of compiler warnings: No new/fixed warnings Regressions/Differences/Improvements: No regressions/differences CPU differences: Debian80-64: OCCT Total CPU difference: 18668.100000000675 / 18636.43000000061 [+0.17%] Products Total CPU difference: 11742.710000000114 / 11717.180000000135 [+0.22%] Windows-64-VC14: OCCT Total CPU difference: 20733.796875 / 20693.28125 [+0.20%] Products Total CPU difference: 13272.875 / 13248.015625 [+0.19%] Image differences : No differences that require special attention Memory differences : No differences that require special attention |
|
Branch CR32917 has been deleted by vglukhik. SHA-1: ebc694145e9bfa0a1d2b1a695b537475d8d52194 |
occt: master 7b3f255f 2022-03-31 09:21:08
Committer: |
0032917: Coding Rules - eliminate MSVS warning C26440 on VS2019/C++20 (If your function may not throw, declare it noexcept) Microsoft Visual Studio Professional 2019 Version 16.11.11 std=c++20 Get rid of warning C26440: "If your function may not throw, declare it noexcept" "If code is not supposed to cause any exceptions, it should be marked as such by using the 'noexcept' specifier. This would help to simplify error handling on the client code side, as well as enable compiler to do additional optimizations." |
Affected Issues 0032917 |
|
mod - src/NCollection/NCollection_AliasedArray.hxx | Diff File | ||
mod - src/Poly/Poly_ArrayOfNodes.hxx | Diff File | ||
mod - src/Poly/Poly_ArrayOfUVNodes.hxx | Diff File | ||
mod - src/Standard/Standard_Handle.hxx | Diff File | ||
mod - src/TCollection/TCollection_AsciiString.hxx | Diff File | ||
mod - src/TCollection/TCollection_ExtendedString.hxx | Diff File | ||
mod - src/TopLoc/TopLoc_SListOfItemLocation.hxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-04-07 10:30 |
|
New Issue | |
2022-04-07 10:30 |
|
Assigned To | => ddzama |
2022-04-07 12:54 | kgv | Relationship added | child of 0032887 |
2022-04-07 12:54 | kgv | Product Version | 7.7.0 => 7.6.0 |
2022-04-07 12:54 | kgv | Summary | Coding Rules - eliminate MSVS2019 warning C26440 (If your function may not throw, declare it noexcept) => Coding Rules - eliminate MSVS warning C26440 on VS2019/C++20 (If your function may not throw, declare it noexcept) |
2022-04-07 14:24 | git | Note Added: 0107685 | |
2022-04-07 14:40 | git | Note Added: 0107702 | |
2022-04-07 14:52 |
|
Relationship deleted | child of 0032887 |
2022-04-07 14:54 |
|
Relationship added | child of 0032887 |
2022-04-07 15:09 | git | Note Added: 0107712 | |
2022-04-08 18:33 | kgv | Assigned To | ddzama => aml |
2022-04-08 18:33 | kgv | Status | new => resolved |
2022-04-08 18:33 | kgv | Note Added: 0107771 | |
2022-04-12 08:57 |
|
Note Added: 0107874 | |
2022-04-12 08:57 |
|
Assigned To | aml => ddzama |
2022-04-12 08:57 |
|
Status | resolved => assigned |
2022-04-20 11:23 | git | Note Added: 0108041 | |
2022-04-25 17:09 | git | Note Added: 0108163 | |
2022-04-25 17:13 |
|
Note Added: 0108164 | |
2022-04-25 17:15 |
|
Note Added: 0108165 | |
2022-04-26 02:09 | git | Note Added: 0108175 | |
2022-04-26 11:28 |
|
Assigned To | ddzama => kgv |
2022-04-26 11:28 |
|
Status | assigned => resolved |
2022-04-26 11:28 |
|
Steps to Reproduce Updated | |
2022-04-26 21:12 | kgv | Assigned To | kgv => aml |
2022-04-27 07:19 |
|
Assigned To | aml => bugmaster |
2022-04-27 07:19 |
|
Status | resolved => reviewed |
2022-04-27 07:19 |
|
Note Added: 0108206 | |
2022-05-01 13:28 |
|
Status | reviewed => tested |
2022-05-01 13:28 |
|
Note Added: 0108269 | |
2022-05-01 13:31 |
|
Test case number | => Not required |
2022-05-01 14:32 |
|
Changeset attached | => occt master 7b3f255f |
2022-05-01 14:32 |
|
Assigned To | bugmaster => ddzama |
2022-05-01 14:32 |
|
Status | tested => verified |
2022-05-01 14:32 |
|
Resolution | open => fixed |
2022-05-04 12:00 | kgv | Relationship added | parent of 0032957 |
2022-06-17 16:41 |
|
Relationship deleted | parent of 0032957 |
2023-01-21 21:13 | git | Note Added: 0112955 | |
2023-03-19 23:18 | vglukhik | Status | verified => closed |
2023-03-19 23:18 | vglukhik | Fixed in Version | => 7.6.3 |