Skip to content

Commit 8f18416

Browse files
committed
Reapply Sema.h changes after rebase
1 parent ce64804 commit 8f18416

File tree

1 file changed

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

1 file changed

+9
-2
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3918,8 +3918,6 @@ class Sema final {
39183918
bool BestCase,
39193919
MSInheritanceModel Model);
39203920

3921-
bool CheckCountedByAttr(Scope *Scope, const FieldDecl *FD);
3922-
39233921
EnforceTCBAttr *mergeEnforceTCBAttr(Decl *D, const EnforceTCBAttr &AL);
39243922
EnforceTCBLeafAttr *mergeEnforceTCBLeafAttr(Decl *D,
39253923
const EnforceTCBLeafAttr &AL);
@@ -5232,6 +5230,7 @@ class Sema final {
52325230
enum ExpressionKind {
52335231
EK_Decltype,
52345232
EK_TemplateArgument,
5233+
EK_BoundsAttrArgument,
52355234
EK_Other
52365235
} ExprContext;
52375236

@@ -5349,6 +5348,12 @@ class Sema final {
53495348
return ExprEvalContexts.back();
53505349
};
53515350

5351+
bool isBoundsAttrContext() const {
5352+
return ExprEvalContexts.back().ExprContext ==
5353+
ExpressionEvaluationContextRecord::ExpressionKind::
5354+
EK_BoundsAttrArgument;
5355+
}
5356+
53525357
/// Increment when we find a reference; decrement when we find an ignored
53535358
/// assignment. Ultimately the value is 0 if every reference is an ignored
53545359
/// assignment.
@@ -11715,6 +11720,8 @@ class Sema final {
1171511720
QualType BuildMatrixType(QualType T, Expr *NumRows, Expr *NumColumns,
1171611721
SourceLocation AttrLoc);
1171711722

11723+
QualType BuildCountAttributedArrayType(QualType WrappedTy, Expr *CountExpr);
11724+
1171811725
QualType BuildAddressSpaceAttr(QualType &T, LangAS ASIdx, Expr *AddrSpace,
1171911726
SourceLocation AttrLoc);
1172011727

0 commit comments

Comments
 (0)