Skip to content

Conversation

@dmkozh
Copy link
Contributor

@dmkozh dmkozh commented Jan 12, 2026

Description

  • Enable Zc:lambda for a more modern lambda parser (also update the respective code that prompted enabling this)
  • Add the missing files to the project
  • Remove an unnecessary friend declaration that has confused MSVC compiler and doesn't seem necessary for anything

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

Copilot AI review requested due to automatic review settings January 12, 2026 21:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the MSVS (Visual Studio) project configuration to enable better lambda support and includes previously missing files. The changes modernize the compiler settings and clean up unnecessary forward declarations.

Changes:

  • Enable /Zc:lambda compiler flag for modern lambda parsing across all build configurations
  • Add missing LedgerEntryScope.cpp and LedgerEntryScope.h files to the Visual Studio project
  • Update lambda code to work with the new compiler flag by removing unused capture
  • Remove unnecessary friend declaration from LedgerEntryScope.h

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Builds/VisualStudio/stellar-core.vcxproj Adds /Zc:lambda flag to all build configurations and includes missing LedgerEntryScope files
Builds/VisualStudio/stellar-core.vcxproj.filters Adds missing LedgerEntryScope files to the ledger filter group
src/simulation/test/LoadGeneratorTests.cpp Removes unused frameSize capture from lambda to comply with /Zc:lambda
src/ledger/LedgerEntryScope.h Removes unnecessary friend declaration for stream operator
src/rust/soroban/p25 Updates subproject commit reference
src/protocol-curr/xdr Updates subproject commit reference

- Enable `Zc:lambda` for a more modern lambda parser (also update the respective code that prompted enabling this)
- Add the missing files to the project
- Remove an unnecessary friend declaration that has confused MSVC compiler and doesn't seem necessary for anything
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants