-
Notifications
You must be signed in to change notification settings - Fork 32
Add contents for CppInterOp Documentation #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
docs/InstallationAndUsage.rst
Outdated
|
||
cd ../ | ||
export LLVM_DIR=$PWD | ||
cd ../ | ||
|
||
Clone the InterOp repo. Build it using cling and install. Note down the path to InterOp install directory. This will be referred to as INTEROP_DIR: | ||
Clone the InterOp repo. Build it using cling and install. Note down the path to InterOp install directory. This will be referred to as INTEROP_DIR: |
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.
Can you break at 80 cols?
docs/InstallationAndUsage.rst
Outdated
@@ -51,11 +51,11 @@ Build Clang-Repl: | |||
.. code-block:: text | |||
|
|||
|
|||
Get the llvm/release/16.x version: | |||
// Get the llvm/release/16.x version: |
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.
That seems to be bash, shell where the token for comments is #
.
docs/UsingCppInterOp.rst
Outdated
If you are just getting started with CppInterop, then this is the best place to start. | ||
You may want to skim some sections on the first read. | ||
This section briefly describes all the key functionalities offered by | ||
CppInterop.If you are just getting started with CppInterop, then this is the |
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.
CppInterop.If you are just getting started with CppInterop, then this is the | |
CppInterOp. If you are just getting started with CppInterop, then this is the |
docs/UsingCppInterOp.rst
Outdated
You may want to skim some sections on the first read. | ||
This section briefly describes all the key functionalities offered by | ||
CppInterop.If you are just getting started with CppInterop, then this is the | ||
best place to start.You may want to skim some sections on the first read. |
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.
best place to start.You may want to skim some sections on the first read. | |
best place to start. You may want to skim some sections on the first read. |
docs/UsingCppInterOp.rst
Outdated
|
||
C++ Language Interoperability Layer | ||
=================================== | ||
|
||
The CppInterop comes with using it is a dynamic shared library, | ||
**libclangInterOp.so.13** which resides in the CppInterOp/build/lib/. |
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.
**libclangInterOp.so.13** which resides in the CppInterOp/build/lib/. | |
**libclangInterOp.so** which resides in the CppInterOp/build/lib/. |
docs/UsingCppInterOp.rst
Outdated
|
||
libInterop = ctypes.CDLL("./libInterOp.so") |
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.
Is that the name of the library?
docs/reference.rst
Outdated
@@ -1,5 +1,39 @@ | |||
Reference | |||
--------- | |||
---------- |
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.
Why an extra dash here?
docs/tutorials.rst
Outdated
|
||
**Note:: This example library shown below is portrayal of the concept on which |
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.
**Note:: This example library shown below is portrayal of the concept on which | |
**Note:: This example library shown below is to illustrate the concept on which |
@@ -1,5 +1,153 @@ | |||
Tutorials |
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.
@wlav, could you take a look and give feedback on our documentation intent to capture the cppyy/python interop use case as motivation for CppInterOp?
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.
? What specific piece of text needs commenting?
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.
@wlav, basically this file: docs/tutorials.rst
. I'd like to make sure we are not making some unreasonable claim.
docs/tutorials.rst
Outdated
_cpp_compile = libInterop.Clang_Parse | ||
_cpp_compile.argtypes = [ctypes.c_char_p] | ||
|
||
We are using ctypes for inducting our library, *Clang_Parse* which is part |
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.
Where are Clang_Parse and such defined? Should we not show how the header file looks like at least?
docs/tutorials.rst
Outdated
# We are using ctypes for inducting our library, *Clang_Parse* which is part | ||
# of the library is being used for parsing the C++ code. | ||
|
||
.. code-block:: bash |
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.
.. code-block:: bash | |
.. code-block:: cpp |
Then replace # with //
docs/tutorials.rst
Outdated
is parsed by the CppInterOp library in previous snippet and further compilation | ||
goes on. | ||
|
||
.. code-block:: cpp |
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.
No, that’s python.
docs/tutorials.rst
Outdated
wrapped. In the similar manner we can use get_namespace. | ||
|
||
.. code-block::cpp |
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.
Likewise.
docs/tutorials.rst
Outdated
@@ -1,5 +1,185 @@ | |||
Tutorials | |||
---------- | |||
This tutorial emphasizes on the abilities and usage of CppInterOp, Let's get |
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.
This tutorial emphasizes on the abilities and usage of CppInterOp, Let's get | |
This tutorial emphasizes on the abilities and usage of CppInterOp. Let's get |
Can you please reread very carefully the entire set of documentation. I do not expect to continue fixing such details as it seems that we have not paid enough attention at that point. Please make sure it does not have any obvious issues before asking for a review.
Can you squash all commits into one and mark this ready to review. I can improve a few things after we land it. |
f8381e0
to
d497777
Compare
No description provided.