C++ bindings: rename get_ctx method to ctx
commitf5f35ae1c3b4edcbb18b8bd639361256cf8c1030
authorSven Verdoolaege <sven@cerebras.net>
Wed, 7 Nov 2018 21:57:33 +0000 (7 13:57 -0800)
committerSven Verdoolaege <sven@cerebras.net>
Wed, 5 Dec 2018 08:52:20 +0000 (5 09:52 +0100)
tree9eacf07665d86ce271ed51c60b8c633b05db680f
parent89032cf3ecd58b660408ac96f7f32e607f83ec69
C++ bindings: rename get_ctx method to ctx

In the C API, a "get" infix in the function name serves
as a reminder that the function does not consume ("take")
its argument(s).
In the C++ bindings, there is no such concept,
so the (now) "get" prefix does not serve any purpose and
in fact introduces a distinction that is completely irrelevant
and can only lead to confusion.

This commit is a first step towards removing this prefix and
specifically targets the get_ctx() method that is automatically
added to all exported classes and that is specific to the C++ bindings.
The method was introduced in isl-0.18-987-gec4ece19 (cpp: generate
get_ctx method for all exported classes, Wed Jul 5 14:07:48 2017 +0200),
but it was removed in isl-0.18-1047-g4a20ef8e (drop C++ bindings,
Sun Feb 4 09:06:48 2018 +0100), only to get merged back in in
isl-0.20-35-ge0a98b62 (Merge branch 'cpp', Mon Jul 30 23:10:59 2018 +0200).
It was therefore not included in any release and should
therefore be safe to change without introducing backward
incompatibilities.

Signed-off-by: Sven Verdoolaege <sven@cerebras.net>
interface/cpp.cc
interface/cpp.h
isl_test_cpp-generic.cc