-
Notifications
You must be signed in to change notification settings - Fork 8
Conversation
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple documentation-related requests.
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
Thank you for prompt reviews! |
@@ -15,6 +15,8 @@ jobject asJvmBuffer(uast::Buffer buf) { | |||
return env->NewDirectByteBuffer(buf.ptr, buf.size); | |||
} | |||
|
|||
const char *nativeContext = "nativeContext"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit: Either const char * const nativeContext = "…"
or const char nativeContext[] = "…"
is preferable here—to ensure the pointer itself is also const (either works). constexpr char nativeContext[] = "…"
will also work if we assume C++ ≥ 11.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thank you, we do! Was thinking about constexpr
as well - will replace as part of the next PR.
Another part of #83
Context.encode()
implementation + testsNode.load()
Actual load() implementation will be done in subsequent PRs.