This is an archive of the discontinued LLVM Phabricator instance.

[clang][JumpDiagnostics] bring VerifyIndirectOrAsmJumps to C++17
ClosedPublic

Authored by nickdesaulniers on Jul 14 2023, 1:25 PM.

Details

Summary

Update the code to more modern C++ style.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJul 14 2023, 1:25 PM
nickdesaulniers requested review of this revision.Jul 14 2023, 1:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 14 2023, 1:25 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
MaskRay accepted this revision.Jul 14 2023, 1:42 PM

LGTM.

This revision is now accepted and ready to land.Jul 14 2023, 1:42 PM
void accepted this revision.Jul 14 2023, 2:04 PM
nickdesaulniers planned changes to this revision.Jul 14 2023, 2:05 PM
nickdesaulniers added inline comments.
clang/lib/Sema/JumpDiagnostics.cpp
739–741

contains

755–757

contains

790–791

JumpScope is probably a clearer identifier.

  • better identifiers, use llvm::DenseMap::contains
This revision is now accepted and ready to land.Jul 14 2023, 2:09 PM
void accepted this revision.Jul 14 2023, 2:52 PM
This revision was landed with ongoing or failed builds.Jul 14 2023, 3:28 PM
This revision was automatically updated to reflect the committed changes.