This is an archive of the discontinued LLVM Phabricator instance.

[AST][NFC] Various cleanups to GenericSelectionExpr
ClosedPublic

Authored by riccibruno on Jan 25 2019, 6:23 AM.

Details

Summary

Various cleanups to GenericSelectionExpr, factored out of D57104. In particular:

  1. Move the friend declaration to the top.
  2. Introduce a constant ResultDependentIndex instead of the magic "-1".
  3. clang-format
  4. Group the member function together so that they can be removed as one block by D57106.

NFC.

Diff Detail

Repository
rL LLVM

Event Timeline

riccibruno created this revision.Jan 25 2019, 6:23 AM
aaron.ballman accepted this revision.Jan 25 2019, 6:36 AM
aaron.ballman added a subscriber: aaron.ballman.

LGTM!

include/clang/AST/Expr.h
5095 ↗(On Diff #183530)

If you wanted to fix up i to be Idx or something more closely matching the naming conventions, that would be a nice change. Same elsewhere in the patch.

This revision is now accepted and ready to land.Jan 25 2019, 6:36 AM
riccibruno marked an inline comment as done.Jan 25 2019, 6:55 AM
riccibruno added inline comments.
include/clang/AST/Expr.h
5095 ↗(On Diff #183530)

It is just going to be removed by D57106 so I didn't bother.

aaron.ballman added inline comments.Jan 25 2019, 7:09 AM
include/clang/AST/Expr.h
5095 ↗(On Diff #183530)

Ah, sounds great, thanks!

This revision was automatically updated to reflect the committed changes.