This is an archive of the discontinued LLVM Phabricator instance.

[clang][NFC] Simplify SourceLocExpr::EvaluateInContext
ClosedPublic

Authored by tbaeder on Jul 18 2023, 5:05 AM.

Details

Reviewers
cor3ntin
Group Reviewers
Restricted Project
Commits
rG5522e316f91e: [clang][NFC] Simplify SourceLocExpr::EvaluateInContext
Summary
Use ASTContext::MakeIntValue and remove the std::tie+lambda weirdness.

Diff Detail

Event Timeline

tbaeder created this revision.Jul 18 2023, 5:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2023, 5:05 AM
tbaeder requested review of this revision.Jul 18 2023, 5:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2023, 5:05 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
cor3ntin accepted this revision.Jul 18 2023, 5:11 AM
cor3ntin added a subscriber: cor3ntin.

I agree, this looks better

This revision is now accepted and ready to land.Jul 18 2023, 5:11 AM
This revision was automatically updated to reflect the committed changes.