[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

Mital Ashok via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 6 09:26:36 PDT 2024


================
@@ -12238,7 +12255,6 @@ void Sema::CheckMain(FunctionDecl* FD, const DeclSpec& DS) {
         << FixItHint::CreateRemoval(DS.getConstexprSpecLoc());
     FD->setConstexprKind(ConstexprSpecKind::Unspecified);
   }
----------------
MitalAshok wrote:

```suggestion
  }

```

(Unnecessary diff)

https://github.com/llvm/llvm-project/pull/101853


More information about the cfe-commits mailing list