Title: `#ifdef` and `#ifndef` directives missing from `ifCond` · Issue #688 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: `#ifdef` and `#ifndef` directives missing from `ifCond` · Issue #688 · cppcheck-opensource/simplecpp
X Title: `#ifdef` and `#ifndef` directives missing from `ifCond` · Issue #688 · cppcheck-opensource/simplecpp
Description: Failing test: { const char code[] = "#ifdef NOTDEFINED\n" "#endif\n" "#ifndef NOTDEFINED\n" "#endif\n"; std::list
Open Graph Description: Failing test: { const char code[] = "#ifdef NOTDEFINED\n" "#endif\n" "#ifndef NOTDEFINED\n" "#endif\n"; std::list
X Description: Failing test: { const char code[] = "#ifdef NOTDEFINED\n" "#endif\n" "#ifndef NOTDEFINED\n" "#endif\n"; std::list<simplecpp::IfCond> ifCond; ASSERT_EQU...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/688
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`#ifdef` and `#ifndef` directives missing from `ifCond`","articleBody":"Failing test:\n\n```c++\n {\n const char code[] = \"#ifdef NOTDEFINED\\n\"\n \"#endif\\n\"\n \"#ifndef NOTDEFINED\\n\"\n \"#endif\\n\";\n std::list\u003csimplecpp::IfCond> ifCond;\n ASSERT_EQUALS(\"\", preprocess(code, &ifCond));\n ASSERT_EQUALS(2, ifCond.size());\n auto it = ifCond.cbegin();\n ASSERT_EQUALS(0, it->location.fileIndex);\n ASSERT_EQUALS(1, it->location.line);\n ASSERT_EQUALS(2, it->location.col);\n ASSERT_EQUALS(\"defined(NOTDEFINED)\", it->E);\n ASSERT_EQUALS(0, it->result);\n ++it;\n ASSERT_EQUALS(0, it->location.fileIndex);\n ASSERT_EQUALS(3, it->location.line);\n ASSERT_EQUALS(2, it->location.col);\n ASSERT_EQUALS(\"!defined(NOTDEFINED)\", it->E);\n ASSERT_EQUALS(1, it->result);\n }\n\n```","author":{"url":"https://github.com/ludviggunne","@type":"Person","name":"ludviggunne"},"datePublished":"2026-07-23T09:02:44Z","url":"https://github.com/cppcheck-opensource/simplecpp/issues/688"}
| 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:1514f2f9-1b5a-e105-f125-f1bc1911c3e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B672:267152:30BE85:4619E3:6AFC51E3 |
| html-safe-nonce | 8287a9704f88586c12052f1bf2ccad828ad4673b02fb2b84484a97847174102e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjcyOjI2NzE1MjozMEJFODU6NDYxOUUzOjZBRkM1MUUzIiwidmlzaXRvcl9pZCI6IjUyMjk0NzUyMDI3MDU2NzQ3MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e5450edd450749399ca94c6655ccba1dba2729a95cee526d6f8c95932f5e39f5 |
| hovercard-subject-tag | issue:4957216898 |
| 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/688/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b41ff8b8d38a5092a7750022d471d8e5397d1c335ae310371b773e15ad4b998c/cppcheck-opensource/simplecpp/issues/688 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b41ff8b8d38a5092a7750022d471d8e5397d1c335ae310371b773e15ad4b998c/cppcheck-opensource/simplecpp/issues/688 |
| og:image:alt | Failing test: { const char code[] = "#ifdef NOTDEFINED\n" "#endif\n" "#ifndef NOTDEFINED\n" "#endif\n"; std::list |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ludviggunne |
| 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