Skip to content

Commit bb24800

Browse files
committed
Update parameter name 'NestedTypeLevel' and add description
1 parent 7ce24ab commit bb24800

File tree

1 file changed

+5
-2
lines changed
  • clang/include/clang/Sema

1 file changed

+5
-2
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,6 +2445,8 @@ class Sema final : public SemaBase {
24452445
///
24462446
/// \param FD The FieldDecl to apply the attribute to
24472447
/// \param E The count expression on the attribute
2448+
/// \param NestedTypeLevel The pointer indirection level where the attribute
2449+
/// applies
24482450
/// \param CountInBytes If true the attribute is from the "sized_by" family of
24492451
/// attributes. If the false the attribute is from
24502452
/// "counted_by" family of attributes.
@@ -2457,8 +2459,9 @@ class Sema final : public SemaBase {
24572459
/// `counted_by_or_null` attribute.
24582460
///
24592461
/// \returns false iff semantically valid.
2460-
bool CheckCountedByAttrOnField(FieldDecl *FD, Expr *E, unsigned Level,
2461-
bool CountInBytes, bool OrNull);
2462+
bool CheckCountedByAttrOnField(FieldDecl *FD, Expr *E,
2463+
unsigned NestedTypeLevel, bool CountInBytes,
2464+
bool OrNull);
24622465

24632466
/// Perform Bounds Safety Semantic checks for assigning to a `__counted_by` or
24642467
/// `__counted_by_or_null` pointer type \param LHSTy.

0 commit comments

Comments
 (0)