Skip to content

Commit

Permalink
C++: Add change note
Browse files Browse the repository at this point in the history
  • Loading branch information
jketema committed Dec 26, 2024
1 parent 56b3e70 commit 8d33734
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cpp/ql/lib/change-notes/2024-12-26-requires-clause.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
category: feature
---
* New predicates `getARequiresClause`, `getTemplateRequiresClause` and `getFunctionRequiresClause` were added to the `FunctionDeclarationEntry` class, which yield the requires clauses when the entry represents a function template declaration with requires clauses.
* A new predicate `getRequiresClause` was added to the `TypeDeclarationEntry` class, which yields the requires clause when the entry represents a class template declaration with a requires clause.
* A new predicate `getRequiresClause` was added to the `VariableDeclarationEntry` class, which yields the requires clause when the entry represents a variable template declaration with a requires clause.
* A new predicate `getTypeConstraint` was added to the `TypeTemplateParameter` class, which yields the type constraint of the parameter if it exists.

0 comments on commit 8d33734

Please sign in to comment.