[clang] Propagate lifetimebound from formal parameters to those in the canonical declaration and use that for analysis (PR #107627)

Ilya Biryukov via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 10 08:55:10 PST 2024


================
@@ -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


More information about the cfe-commits mailing list