Page MenuHomePhabricator

eolian_cxx: rework context code, also more flexible scope indentation generator
ClosedPublic

Authored by vitor.sousa on Mar 25 2019, 2:33 PM.

Details

Summary

Context management classes now store constant copies of the tags they
are supposed to hold. So, they are immutable objects now.
Functions that manipulate context create new object copies as needed.
constexpr was added for class constructor and functions.

Indentation generator now used four space by default.
Also, the amount of desired spaces can now be specified at call site.

Added helper methods to return 'indented' and 'unindented' version of a
given indentation generator object.

Test Plan

ninja test

Diff Detail

Repository
rEFL core/efl
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
vitor.sousa created this revision.Mar 25 2019, 2:33 PM
vitor.sousa requested review of this revision.Mar 25 2019, 2:33 PM
lauromoura accepted this revision.Mar 26 2019, 11:36 AM
This revision is now accepted and ready to land.Mar 26 2019, 11:36 AM
This revision was automatically updated to reflect the committed changes.