[clang] [DRAFT][analyzer][NFC] clang-format our folders (PR #82599)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 22 01:59:26 PST 2024
================
@@ -1481,22 +1449,24 @@ class Return : public Terminator {
return Vs.reduceReturn(*this, Ne);
}
- template <class C>
- typename C::CType compare(const Return *E, C &Cmp) const {
+ template <class C> typename C::CType compare(const Return *E, C &Cmp) const {
return Cmp.compare(Retval, E->Retval);
}
private:
- SExpr* Retval;
+ SExpr *Retval;
};
-inline ArrayRef<BasicBlock*> Terminator::successors() {
+inline ArrayRef<BasicBlock *> Terminator::successors() {
switch (opcode()) {
- case COP_Goto: return cast<Goto>(this)->successors();
- case COP_Branch: return cast<Branch>(this)->successors();
- case COP_Return: return cast<Return>(this)->successors();
- default:
- return std::nullopt;
+ case COP_Goto:
+ return cast<Goto>(this)->successors();
+ case COP_Branch:
+ return cast<Branch>(this)->successors();
+ case COP_Return:
+ return cast<Return>(this)->successors();
+ default:
+ return std::nullopt;
----------------
steakhal wrote:
This was aligned before, but I don't see much value keeping it.
https://github.com/llvm/llvm-project/pull/82599
More information about the cfe-commits
mailing list