================
@@ -2763,6 +2763,17 @@ class Parser : public CodeCompletionHandler {
       const Declarator &D, const DeclSpec &DS,
       std::optional<Sema::CXXThisScopeRAII> &ThisScope);
 
+  enum class ContractSpecifierKind { Pre, Post };
+  std::optional<ContractSpecifierKind> getContractSpecifierKind();
+  void ParseContractSpecifiers(Declarator &D);
+  /// Parse the function tails. e.g., requires clause and contracts.
+  ///
+  /// \param ParametersAlreadyInScope whether the paramers are arealdy in an
+  /// active function prototype scope. This can be true for lambda as lambda
+  /// would always build its function prototype scope.
+  void ParseFunctionDeclaratorTail(Declarator &D,
----------------
cor3ntin wrote:

```suggestion
  void ParseFunctionContractSpecifiersAndConstraints(Declarator &D,
```

I'd prefer we don't invent terminology (What can appear in a function 
declaration is bound to change)

https://github.com/llvm/llvm-project/pull/221139
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to