================
@@ -238,18 +239,13 @@ void Sema::inferLifetimeBoundAttribute(FunctionDecl *FD) {
     default:
       break;
     }
-    return;
----------------
ilya-biryukov wrote:

NIT: LLVM codifies a preference to use `return` in the Style Guide, see 
examples in [this 
section](https://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return).

Could you add return to the `CXXMethodDecl` case and avoid the `else`?

https://github.com/llvm/llvm-project/pull/107627
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to