Title: Issue · GitHub
Open Graph Title: Issue · cppcheck-opensource/simplecpp
X Title: Issue · cppcheck-opensource/simplecpp
Description: C++ preprocessor. Contribute to cppcheck-opensource/simplecpp development by creating an account on GitHub.
Open Graph Description: C++ preprocessor. Contribute to cppcheck-opensource/simplecpp development by creating an account on GitHub.
X Description: C++ preprocessor. Contribute to cppcheck-opensource/simplecpp development by creating an account on GitHub.
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"address `bugprone-exception-escape` clang-tidy warning in `Macro` copy constructor","articleBody":"Encountered in #421.\n\n```\n/usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/stl_pair.h:295:17: error: an exception may be thrown in function 'pair' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors]\n 295 | constexpr pair(pair\u0026\u0026) = default; ///\u003c Move constructor\n | ^\n/home/runner/work/simplecpp/simplecpp/simplecpp.cpp:1747:29: note: frame #0: unhandled exception of type 'simplecpp::Macro::Error' may be thrown in function 'parseDefine' here\n 1747 | throw Error(tok-\u003elocation, \"In definition of '\" + nameTokDef-\u003estr() + \"': Missing opening parenthesis for __VA_OPT__\");\n | ^\n/home/runner/work/simplecpp/simplecpp/simplecpp.cpp:1508:21: note: frame #1: function 'operator=' calls function 'parseDefine' here\n 1508 | parseDefine(other.nameTokDef);\n | ^\n/home/runner/work/simplecpp/simplecpp/simplecpp.cpp:1495:19: note: frame #2: function 'Macro' calls function 'operator=' here\n 1495 | *this = other;\n | ^\n/usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/stl_pair.h:295:17: note: frame #3: function 'pair' calls function 'Macro' here\n 295 | constexpr pair(pair\u0026\u0026) = default; ///\u003c Move constructor\n | ^\n``","author":{"url":"https://github.com/firewave","@type":"Person","name":"firewave"},"datePublished":"2025-09-09T10:27:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/537/simplecpp/issues/537"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:d0216777-7808-5ed5-f0ae-6df101c95f5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97DE:216A08:477EE0:5F8A4E:6A4DC91B |
| html-safe-nonce | 342a1f9bd4873e421b4b3802c4d0205d952a418614140269d3215d743dc2b4d4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0RFOjIxNkEwODo0NzdFRTA6NUY4QTRFOjZBNERDOTFCIiwidmlzaXRvcl9pZCI6IjM2NjQ1MjQxNjIzOTM1NTcyNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c693633333083bc978f33e943267ea69ed0830505834a91cb8a4f0f30f6f7643 |
| hovercard-subject-tag | repository:33434464 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cppcheck-opensource/simplecpp/issues/537 |
| twitter:image | https://opengraph.githubassets.com/94d53ad069b41a5b4fcd8c4b065e89458fa03ca5276f896213a82f1393b022d3/cppcheck-opensource/simplecpp |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/94d53ad069b41a5b4fcd8c4b065e89458fa03ca5276f896213a82f1393b022d3/cppcheck-opensource/simplecpp |
| og:image:alt | C++ preprocessor. Contribute to cppcheck-opensource/simplecpp development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-cache |
| go-import | github.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git |
| octolytics-dimension-user_id | 278097703 |
| octolytics-dimension-user_login | cppcheck-opensource |
| octolytics-dimension-repository_id | 33434464 |
| octolytics-dimension-repository_nwo | cppcheck-opensource/simplecpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33434464 |
| octolytics-dimension-repository_network_root_nwo | cppcheck-opensource/simplecpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width