| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:fd2b37a7-7ced-5511-dc3f-5886066608a3 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 80CE:21CB:194F70:24D8E2:6AFC59E9 |
| html-safe-nonce | 13cf5d47d7b29d9d88aec01710134fc215f1d2c6a4ea90c9c0ee0a90b9578cf3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MENFOjIxQ0I6MTk0RjcwOjI0RDhFMjo2QUZDNTlFOSIsInZpc2l0b3JfaWQiOiIzMjAyODAxODQyMjExNTQzNTI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ae21622aaed4ee9e269fdb789548872be5272b79ffa54be960254a871573d49d |
| hovercard-subject-tag | pull_request:5211190363 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cppcheck-opensource/simplecpp/pull/743/files |
| twitter:image | https://avatars.githubusercontent.com/u/60195?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/60195?s=400&v=4 |
| og:image:alt | Part of #742 (draft, work in progress).
Adds a macro expander that uses Prosser's hide-set algorithm, next to the old Macro::expand(). It is off by default and selected with DUI::hideSetExpansi... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | dca5d7b31d726645ba76b526bf3a137e74fee0f5f75412c83dafde3dc9b64ccb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bedf3a505b023592c321f5456010d0d5a61a4e05 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/cppcheck-opensource/simplecpp/pull/743/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fpull%2F743%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fpull%2F743%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=cppcheck-opensource%2Fsimplecpp |
| Reload | https://github.com/cppcheck-opensource/simplecpp/pull/743/files |
| Reload | https://github.com/cppcheck-opensource/simplecpp/pull/743/files |
| Reload | https://github.com/cppcheck-opensource/simplecpp/pull/743/files |
| cppcheck-opensource | https://github.com/cppcheck-opensource |
| simplecpp | https://github.com/cppcheck-opensource/simplecpp |
| Code | https://github.com/cppcheck-opensource/simplecpp |
| Issues86 (86) | https://github.com/cppcheck-opensource/simplecpp/issues |
| Pull requests36 (36) | https://github.com/cppcheck-opensource/simplecpp/pulls |
| Actions | https://github.com/cppcheck-opensource/simplecpp/actions |
| Wiki | https://github.com/cppcheck-opensource/simplecpp/wiki |
| Security and quality | https://github.com/cppcheck-opensource/simplecpp/security |
| Insights | https://github.com/cppcheck-opensource/simplecpp/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fcppcheck-opensource%2Fsimplecpp%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp%2Fissues%2Fnew%2Fchoose |
| danmar | https://github.com/danmar |
| master | https://github.com/cppcheck-opensource/simplecpp/tree/master |
| fix-742 | https://github.com/cppcheck-opensource/simplecpp/tree/fix-742 |
|
Conversation
5
| https://github.com/cppcheck-opensource/simplecpp/pull/743 |
|
Commits
28
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits |
|
Checks
47
| https://github.com/cppcheck-opensource/simplecpp/pull/743/checks |
|
Files changed
| https://github.com/cppcheck-opensource/simplecpp/pull/743/files |
| Please reload this page | https://github.com/cppcheck-opensource/simplecpp/pull/743/files |
|
Fix #742 (Add a macro expander that uses hide sets)
| https://github.com/cppcheck-opensource/simplecpp/pull/743/files#top |
|
Show all changes
28 commits
| https://github.com/cppcheck-opensource/simplecpp/pull/743/files |
|
eca9122
Add regression tests for macro expansion
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/eca9122eb746025943e7beb2cf927140a0391175 |
|
131c265
Move the ## checks out of Macro::expandHashHash()
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/131c265c2b9257818f6d977e4261d59e04acb396 |
|
3dbca5f
##: pasting a name or number with a string or character literal is an…
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/3dbca5f2f460424b5eac1c48b2b1e6998cbd07bc |
|
6a576de
Move the # string building out of Macro::expandHash()
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/6a576ded5323bca794601f6ba7b07a3f370f5d25 |
|
191359d
Add combineWithNext() for the token joins in TokenList::combineOperat…
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/191359daaf067efd3cfd98b1ea3b3b838d63dcec |
|
6a9acd6
#: keep the space after an operator of two characters
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/6a9acd6d56ae44a0ef17b12640813601bfbde08c |
|
92b451a
Move the argument count check into Macro::getMacroParameters()
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/92b451a1083d6e9d66fae5cc56f5d61269c09d45 |
|
df3b4c0
Add Macro::expandBuiltin() for __FILE__, __LINE__ and __COUNTER__
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/df3b4c0ceda38c9b5eccdda789ca346f97467119 |
|
52fb092
Tests: a function-like macro name at the end of the file should not b…
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/52fb0925ac422c037612356a606413d401fddc8c |
|
953f255
Add Macro::expandDefined() for defined in a replacement list
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/953f255375f34e343859fec13f6b8279bd1d3bd1 |
|
d3c9a69
Add Macro::copyMacroCall() for copying a macro call to one line
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/d3c9a695d15d4d6e038e266e30f54a32f7ddcee6 |
|
3bd22f4
Add setLocation() for setting the location of all tokens in a list
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/3bd22f4ea620dd08413a6e8f921351822e920426 |
|
306faa9
Token::setExpandedFrom() only updates the expanded-from set
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/306faa9ab5736e39bea76c8d389f2f0e9e55ac66 |
|
2677821
Rename Token::mExpandedFrom to mHideSet
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/2677821546b95396a96f7d1022440ffbbc194443 |
|
f203219
The hide set of a token holds macro names instead of Macro pointers
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/f20321968bba43cbeead0b610c1121ab8effaf5c |
|
6604e52
Add HideSetExpander, macro expansion with hide sets
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/6604e52a46f91a47bd719aec667d898120c0baf4 |
|
ec5d934
HideSetExpander: get the arguments as written before they are expanded
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/ec5d9345b1838c18636a5b3c74cdf3c924aaba68 |
|
06d3eec
HideSetExpander: handle #
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/06d3eec5fa052c17f891880effff4a05d55dfec2 |
|
b59b105
HideSetExpander: add getOperand() for what a replacement list token i…
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/b59b1051115ba53ed49098ad7ef6453d58a4d145 |
|
a62865e
HideSetExpander: handle ##
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/a62865ef03102a4b0216b4bf107b90cd961438a7 |
|
3d44fcc
HideSetExpander: add MacroCall and readMacroCall()
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/3d44fcc11eab0b32afe59ec6363c97e0d99112dd |
|
6431981
HideSetExpander: add newToken() for tokens from the replacement list
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/6431981b56a719921c4a3ad2aae8e2dc283d5a59 |
|
f2da8f7
Add Token::addToHideSet() for a set of macro names
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/f2da8f7362cee63534dd1e0b7d27ef520abdc943 |
|
9d2bbe1
Split Macro::expandDefined() into findDefinedOperand() and definedMac…
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/9d2bbe1b2bfccf25745a1dea41ca17d5ac5f3115 |
|
7f11b76
HideSetExpander: handle defined in a replacement list
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/7f11b76d3034ae45e50780b2dbf0426795a3c69f |
|
25e79f2
HideSetExpander: add substituteRange() for a range of the replacement…
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/25e79f26aaec98e8fd43ce2cd7d46494461af52e |
|
7515422
HideSetExpander: handle __VA_OPT__
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/751542287b58ea42c766befa952009610acca254 |
|
07f5f84
HideSetExpander: add getDefined() and getStringified()
dmcppcheck Nov 8, 2026
| https://github.com/cppcheck-opensource/simplecpp/pull/743/commits/07f5f84b70266abf8b0537400eb5fbab8836596b |
|
Clear filters
| https://github.com/cppcheck-opensource/simplecpp/pull/743/files |
| Please reload this page | https://github.com/cppcheck-opensource/simplecpp/pull/743/files |
| Please reload this page | https://github.com/cppcheck-opensource/simplecpp/pull/743/files |
|
main.cpp
| https://github.com/cppcheck-opensource/simplecpp/pull/743/files#diff-608d8de3fba954c50110b6d7386988f27295de845e9d7174e40095ba5efcf1bb |
|
simplecpp.cpp
| https://github.com/cppcheck-opensource/simplecpp/pull/743/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832 |
|
simplecpp.h
| https://github.com/cppcheck-opensource/simplecpp/pull/743/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174 |
|
test.cpp
| https://github.com/cppcheck-opensource/simplecpp/pull/743/files#diff-042cc0321bd0d3c8cb8262c89142b3e6aba34345ae77b4294f5e07dd2687ffcf |
| main.cpp | https://github.com/cppcheck-opensource/simplecpp/pull/743/files#diff-608d8de3fba954c50110b6d7386988f27295de845e9d7174e40095ba5efcf1bb |
|
View file
| https://github.com/cppcheck-opensource/simplecpp/blob/07f5f84b70266abf8b0537400eb5fbab8836596b/main.cpp |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cppcheck-opensource/simplecpp/pull/743/{{ revealButtonHref }} |
|
| https://github.com/cppcheck-opensource/simplecpp/pull/743/files#diff-608d8de3fba954c50110b6d7386988f27295de845e9d7174e40095ba5efcf1bb |
|
| https://github.com/cppcheck-opensource/simplecpp/pull/743/files#diff-608d8de3fba954c50110b6d7386988f27295de845e9d7174e40095ba5efcf1bb |
|
| https://github.com/cppcheck-opensource/simplecpp/pull/743/files#diff-608d8de3fba954c50110b6d7386988f27295de845e9d7174e40095ba5efcf1bb |
|
| https://github.com/cppcheck-opensource/simplecpp/pull/743/files#diff-608d8de3fba954c50110b6d7386988f27295de845e9d7174e40095ba5efcf1bb |
| Please reload this page | https://github.com/cppcheck-opensource/simplecpp/pull/743/files |
| Please reload this page | https://github.com/cppcheck-opensource/simplecpp/pull/743/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |