René's URL Explorer Experiment


Title: Fix #686: Add warning for bad line directives by glankk · Pull Request #687 · cppcheck-opensource/simplecpp · GitHub

Open Graph Title: Fix #686: Add warning for bad line directives by glankk · Pull Request #687 · cppcheck-opensource/simplecpp

X Title: Fix #686: Add warning for bad line directives by glankk · Pull Request #687 · cppcheck-opensource/simplecpp

Description: readfile now takes a DUI with information about which standard to use, which is needed to determine if a warning should be issued or not. preprocess now also includes outputs from makeTokenLists which calls readfile. Some tests had to be fixed to have an ending newline because of this in order to pass.

Open Graph Description: readfile now takes a DUI with information about which standard to use, which is needed to determine if a warning should be issued or not. preprocess now also includes outputs from makeTokenLists wh...

X Description: readfile now takes a DUI with information about which standard to use, which is needed to determine if a warning should be issued or not. preprocess now also includes outputs from makeTokenLists wh...

Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/pull/687

X: @github

direct link

Domain: Github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:89a4173d-0652-fe05-ecdf-b9813804abce
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA012:20A836:3F7C57:596C79:6A637C53
html-safe-nonce4bbf63e3881035a7bba7e8fa4eb0dd56c69e2c22ab4795dc33597f180066cc0c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDEyOjIwQTgzNjozRjdDNTc6NTk2Qzc5OjZBNjM3QzUzIiwidmlzaXRvcl9pZCI6IjQ1MDk0Mzg3OTE4MTMxMzU0NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5c8d7580e5b1bd13cbb5b07fc9bf418f19ae14e70bd37b3833027e655083ecf6
hovercard-subject-tagpull_request:4107957019
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/cppcheck-opensource/simplecpp/pull/687/files
twitter:imagehttps://avatars.githubusercontent.com/u/10298420?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10298420?s=400&v=4
og:image:altreadfile now takes a DUI with information about which standard to use, which is needed to determine if a warning should be issued or not. preprocess now also includes outputs from makeTokenLists wh...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4c1de337de00c7969335f8866af41463301071379a3a15fba12e9b85aa6378d6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git
octolytics-dimension-user_id278097703
octolytics-dimension-user_logincppcheck-opensource
octolytics-dimension-repository_id33434464
octolytics-dimension-repository_nwocppcheck-opensource/simplecpp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33434464
octolytics-dimension-repository_network_root_nwocppcheck-opensource/simplecpp
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea4df32552e4c631011bdcd4c81cc3d7408664a8b
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://Github.com/cppcheck-opensource/simplecpp/pull/687/files#start-of-content
https://Github.com/
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fpull%2F687%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fpull%2F687%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
Reloadhttps://Github.com/cppcheck-opensource/simplecpp/pull/687/files
Reloadhttps://Github.com/cppcheck-opensource/simplecpp/pull/687/files
Reloadhttps://Github.com/cppcheck-opensource/simplecpp/pull/687/files
Please reload this pagehttps://Github.com/cppcheck-opensource/simplecpp/pull/687/files
cppcheck-opensource https://Github.com/cppcheck-opensource
simplecpphttps://Github.com/cppcheck-opensource/simplecpp
Notifications https://Github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Fork 104 https://Github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Star 263 https://Github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Code https://Github.com/cppcheck-opensource/simplecpp
Issues 82 https://Github.com/cppcheck-opensource/simplecpp/issues
Pull requests 32 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 0 https://Github.com/cppcheck-opensource/simplecpp/security
Insights https://Github.com/cppcheck-opensource/simplecpp/pulse
Code https://Github.com/cppcheck-opensource/simplecpp
Issues https://Github.com/cppcheck-opensource/simplecpp/issues
Pull requests 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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://Github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp%2Fissues%2Fnew%2Fchoose
glankkhttps://Github.com/glankk
cppcheck-opensource:masterhttps://Github.com/cppcheck-opensource/simplecpp/tree/master
glankk:686https://Github.com/glankk/simplecpp/tree/686
Conversation 29 https://Github.com/cppcheck-opensource/simplecpp/pull/687
Commits 20 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits
Checks 26 https://Github.com/cppcheck-opensource/simplecpp/pull/687/checks
Files changed 4 https://Github.com/cppcheck-opensource/simplecpp/pull/687/files
Fix #686: Add warning for bad line directives https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#top
Show all changes 20 commits https://Github.com/cppcheck-opensource/simplecpp/pull/687/files
40b8f3d 686 glankk Jul 22, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/40b8f3d7216f72cf20f388647f89aa88176b9462
be6e79e Fix warnings glankk Jul 22, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/be6e79ef3dd92af6cc839834c4a0ff10b7f284c0
a1240b3 Fix tests glankk Jul 22, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/a1240b3c81d1aa445c122c139c36f167c532efd1
e5ecbd4 Fix formatting glankk Jul 22, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/e5ecbd4f43ee83f1cb394c72a1e6335df44f26c7
d4f1c1f Fix clang-tidy issues glankk Jul 22, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/d4f1c1f98510c19df8b5077065159d599c3bd0ce
036b59d Add range, support type, and standard in error messages glankk Jul 22, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/036b59d10620f4b2517ffb109ab97dfa2fa9d24d
3ee1302 Fix getCStdName glankk Jul 22, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/3ee1302b79c085d60f309b7d3027ba859fc6a635
b33c236 Fix warnings glankk Jul 22, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/b33c236b0791f2ff52ccf8582f3136976f694be6
d9fbdcd Fix clang-tidy issues glankk Jul 22, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/d9fbdcdd53c227dfd28b767e0b0f17a7fdd3b907
b9a7613 Fix formatting glankk Jul 22, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/b9a7613e72d851e36439626e11ca8ab7e50f30a6
9642334 Fix formatting glankk Jul 22, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/96423345924c63226b718bc589900a72c3929a73
40a815f Fix formatting glankk Jul 22, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/40a815fafaa398a1b2642959f455a58136b8e609
0cca41f Add syntax error for signed line numbers glankk Jul 22, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/0cca41f84bb1d8c823474d573304cf96fec2b52b
23ab6e7 Update simplecpp.cpp glankk Jul 23, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/23ab6e79d2ddf390f79a5de14b7b7e8c4c4714cd
d3f8a97 Address PR comments glankk Jul 23, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/d3f8a97cc58517911250f464bb31dc677ac19ef7
a3c9318 Update simplecpp.cpp glankk Jul 23, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/a3c9318f56fa93775ca6c583fb8dd35a4ce38166
25988a1 Fix compilation errors glankk Jul 23, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/25988a16718e8dc578ead57f106e8297a85b3638
f2bd340 Revert changes to getCStd and getCppStd glankk Jul 23, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/f2bd3401a1124d334906caa9cd8adee37c820ac9
2f1fd82 Limit line numbers to Location::line max value glankk Jul 23, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/2f1fd82b66f0c00244dd3f4b4799f617fcdd7ff7
b9309c3 Fix warnings glankk Jul 23, 2026 https://Github.com/cppcheck-opensource/simplecpp/pull/687/commits/b9309c3575dd5522151dde08321f3d7b2e521a09
Clear filters https://Github.com/cppcheck-opensource/simplecpp/pull/687/files
Please reload this pagehttps://Github.com/cppcheck-opensource/simplecpp/pull/687/files
Please reload this pagehttps://Github.com/cppcheck-opensource/simplecpp/pull/687/files
main.cpp https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-608d8de3fba954c50110b6d7386988f27295de845e9d7174e40095ba5efcf1bb
simplecpp.cpp https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
simplecpp.h https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
test.cpp https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-042cc0321bd0d3c8cb8262c89142b3e6aba34345ae77b4294f5e07dd2687ffcf
main.cpphttps://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-608d8de3fba954c50110b6d7386988f27295de845e9d7174e40095ba5efcf1bb
View file https://Github.com/glankk/simplecpp/blob/b9309c3575dd5522151dde08321f3d7b2e521a09/main.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/cppcheck-opensource/simplecpp/pull/687/{{ revealButtonHref }}
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-608d8de3fba954c50110b6d7386988f27295de845e9d7174e40095ba5efcf1bb
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-608d8de3fba954c50110b6d7386988f27295de845e9d7174e40095ba5efcf1bb
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-608d8de3fba954c50110b6d7386988f27295de845e9d7174e40095ba5efcf1bb
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-608d8de3fba954c50110b6d7386988f27295de845e9d7174e40095ba5efcf1bb
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-608d8de3fba954c50110b6d7386988f27295de845e9d7174e40095ba5efcf1bb
simplecpp.cpphttps://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
View file https://Github.com/glankk/simplecpp/blob/b9309c3575dd5522151dde08321f3d7b2e521a09/simplecpp.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/cppcheck-opensource/simplecpp/pull/687/{{ revealButtonHref }}
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
simplecpp.hhttps://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
View file https://Github.com/glankk/simplecpp/blob/b9309c3575dd5522151dde08321f3d7b2e521a09/simplecpp.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/cppcheck-opensource/simplecpp/pull/687/{{ revealButtonHref }}
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
https://Github.com/cppcheck-opensource/simplecpp/pull/687/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
Please reload this pagehttps://Github.com/cppcheck-opensource/simplecpp/pull/687/files
Please reload this pagehttps://Github.com/cppcheck-opensource/simplecpp/pull/687/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.