[cfe-dev] [RFC] Handling implementation limits

Mark de Wever via cfe-dev cfe-dev at lists.llvm.org
Wed Jan 1 12:20:57 PST 2020


Thanks for the feedback.

On Wed, Jan 01, 2020 at 12:58:45PM -0500, Aaron Ballman wrote:
> On Wed, Jan 1, 2020 at 11:16 AM Mark de Wever <koraq at xs4all.nl> wrote:
> > This proposal suggests a TableGen based solution to better maintain these
> > limits. This solution will be able to generate a header and documentation
> > of these limits. The latter is required by the C++ standard [implimits].
> 
> It's also required by the C standard where they have Implementation
> Limits clauses that detail situations where the implementation may
> place limits on constructs.
> 
> > The problem
> > ===========
> >
> > The proposal tries to solve 2 issues:
> > * Implementation limits are not always clear and duplicated in the source.
> > * Document C++ Implementation quantities  is required by the C++ standard
> >   [implimits].
> 
> Do you anticipate also trying to cover the C standard implementation
> limits as well? I think it would make sense to do so -- there should
> be a large amount of overlap between the C limits and the C++ limits.

A good point. It indeed makes sense to do the same for C. I'll look at
it for the next version of the patch.

-Mark


More information about the cfe-dev mailing list