Skip to content

Commit

Permalink
Include zserio exceptions in section for system includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mi-La committed Dec 16, 2024
1 parent e79a775 commit 73ff96b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public Optional(TemplateDataContext context, Field field, boolean isRecursive,
}
else
{
includeCollector.addCppUserIncludes(Arrays.asList("zserio/MissedOptionalException.h"));
includeCollector.addCppSystemIncludes(Arrays.asList("zserio/MissedOptionalException.h"));
final ExpressionFormatter cppExpressionFormatter =
context.getExpressionFormatter(includeCollector);
clause = cppExpressionFormatter.formatGetter(optionalClauseExpression);
Expand Down Expand Up @@ -590,7 +590,7 @@ private static Constraint createConstraint(TemplateDataContext context, Field fi
if (constraintExpression == null)
return null;

includeCollector.addCppUserIncludes(Arrays.asList("zserio/ConstraintException.h"));
includeCollector.addCppSystemIncludes(Arrays.asList("zserio/ConstraintException.h"));
final ExpressionFormatter viewIndirectExpressionFormatter =
context.getIndirectExpressionFormatter(includeCollector, "view");
return new Constraint(constraintExpression, viewIndirectExpressionFormatter);
Expand Down

0 comments on commit 73ff96b

Please sign in to comment.