GabrielDosReis / ipr

Compiler-neutral Internal Program Representation for C++
BSD 3-Clause "New" or "Revised" License
222 stars 23 forks source link

Region has a body #202

Closed GabrielDosReis closed 2 years ago

GabrielDosReis commented 2 years ago

This patch adds the body() operation to a ipr::Region: it returns the sequence of generalized expressions (classic expressions, statements, directives, declarations, etc.) that makes up a lexical region.

As a consequence, a function and user-defined types all have bodies: the sequence of expressions lexically written in their defining initializers.