Title: Invalid ## usage when expanding · Issue #300 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: Invalid ## usage when expanding · Issue #300 · cppcheck-opensource/simplecpp
X Title: Invalid ## usage when expanding · Issue #300 · cppcheck-opensource/simplecpp
Description: cppcheck 2.11 throws this error with the following code (Atmel ASF): [FILE_LOCATION/ASF/common/utils/parts.h:63] (error) failed to expand 'SAM', Invalid ## usage when expanding 'SAM_PART_IS_DEFINED': Unexpected token ')' [preprocessorErr...
Open Graph Description: cppcheck 2.11 throws this error with the following code (Atmel ASF): [FILE_LOCATION/ASF/common/utils/parts.h:63] (error) failed to expand 'SAM', Invalid ## usage when expanding 'SAM_PART_IS_DEFINED...
X Description: cppcheck 2.11 throws this error with the following code (Atmel ASF): [FILE_LOCATION/ASF/common/utils/parts.h:63] (error) failed to expand 'SAM', Invalid ## usage when expanding 'SAM_PAR...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/300
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid ## usage when expanding ","articleBody":"cppcheck 2.11 throws this error with the following code (Atmel ASF):\n\n```\n[FILE_LOCATION/ASF/common/utils/parts.h:63] (error) failed to expand 'SAM', Invalid ## usage when expanding 'SAM_PART_IS_DEFINED': Unexpected token ')' [preprocessorErrorDirective]\n```\n\nI think this is an error of simplecpp!\n\n```cpp\n/* ! Check GCC and IAR part definition for 8-bit AVR */\n#define AVR8_PART_IS_DEFINED(part) \\\\\n\t(defined(__ ## part ## __) || defined(__AVR_ ## part ## __))\n\n/* ! Check GCC and IAR part definition for 32-bit AVR */\n#define AVR32_PART_IS_DEFINED(part) \\\\\n\t(defined(__AT32 ## part ## __) || defined(__AVR32_ ## part ## __))\n\n/* ! Check GCC and IAR part definition for SAM */\n#define SAM_PART_IS_DEFINED(part) (defined(__ ## part ## __))\n// ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/** @} */\n```\n\n","author":{"url":"https://github.com/hobala","@type":"Person","name":"hobala"},"datePublished":"2023-08-07T17:06:46Z","url":"https://github.com/cppcheck-opensource/simplecpp/issues/300"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:845619a3-6a72-12c1-2c8b-34a8988813a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B088:18637C:4AA75:69BE0:6AFC51ED |
| html-safe-nonce | 0374a36b7ff45d9e44bb444307b08d225db328ea2552cd3cb1c803684146656b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDg4OjE4NjM3Qzo0QUE3NTo2OUJFMDo2QUZDNTFFRCIsInZpc2l0b3JfaWQiOiI0ODIzMjYzODQwMTY0NDAxNjQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b120de8d8f8e1b9f28f18543ffe3931abba508f3869e310785dada63dcf0a561 |
| hovercard-subject-tag | issue:1839895177 |
| 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/_view_fragments/issues/show/cppcheck-opensource/simplecpp/300/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3104442ed5b410c8eef1523ccda84cf85050ae3fa3458e5ad846bd9c2c1626e6/cppcheck-opensource/simplecpp/issues/300 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3104442ed5b410c8eef1523ccda84cf85050ae3fa3458e5ad846bd9c2c1626e6/cppcheck-opensource/simplecpp/issues/300 |
| og:image:alt | cppcheck 2.11 throws this error with the following code (Atmel ASF): [FILE_LOCATION/ASF/common/utils/parts.h:63] (error) failed to expand 'SAM', Invalid ## usage when expanding 'SAM_PART_IS_DEFINED... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hobala |
| hostname | github.com |
| expected-hostname | github.com |
| None | b63557e0027d8014589e873df28328da74a4356701bb1a9eab49dbf012ba8fa6 |
| turbo-cache-control | no-preview |
| 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 | 0243355b0352c83733a042e0dfb3d75149b51261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width