[clang] [libclang/python] Expose Rewriter to the python binding (PR #77269)

2024-01-27 Thread Craig Hesling via cfe-commits
linux4life798 wrote: > @linux4life798 Can you review the last update? This change LGTM (I don't actually have reviewer rights). https://github.com/llvm/llvm-project/pull/77269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [libclang/python] Expose Rewriter to the python binding (PR #77269)

2024-01-27 Thread Craig Hesling via cfe-commits
linux4life798 wrote: > Added flush before calling `writeMainFileToStdOut`. I think that's reasonable. > Personally I didn't find this function particularly useful: I was hoping to > perform rewriting without creating new files, but seems like capturing stdout > from a shared library requires

[clang] [libclang/python] Expose Rewriter to the python binding (PR #77269)

2024-01-22 Thread Craig Hesling via cfe-commits
linux4life798 wrote: I don't think this needs to block this change, but another concern I have about this API is that it is writing to stdout from C++ intermixed with Python writing to its own buffered stdout. This means that the user may see inconsistent output. This is somewhat a deficiency

[clang] [libclang/python] Expose Rewriter to the python binding (PR #77269)

2024-01-22 Thread Craig Hesling via cfe-commits
linux4life798 wrote: > @linux4life798 Nice catch! I see that so far only CompilationDatabase and > CompletionChunk expose functions in camelCase. It would be nice to change > them, too, but those are decade-old APIs that I think we promise stability > for, so it might not be possible. Yep.

[clang] [libclang/python] Expose Rewriter to the python binding (PR #77269)

2024-01-21 Thread Craig Hesling via cfe-commits
linux4life798 wrote: Thanks! https://github.com/llvm/llvm-project/pull/77269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Expose Rewriter to the python binding (PR #77269)

2024-01-21 Thread Craig Hesling via cfe-commits
linux4life798 wrote: Hi all, sorry for jumping in late. Minor nit here. It looks like this change is introducing camelCase methods, but the majority of the existing Python file uses snake_case, even though the underlying libclang interface is camelCase. For consistency, can we make these

[clang] [libclang/python] Bump minimum compatibility to Python 3.6 (PR #77228)

2024-01-17 Thread Craig Hesling via cfe-commits
linux4life798 wrote: Thanks all! @boomanaiden154 or @tru, could you merge this PR? https://github.com/llvm/llvm-project/pull/77228 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Bump minimum compatibility to Python 3.6 (PR #77228)

2024-01-14 Thread Craig Hesling via cfe-commits
linux4life798 wrote: > This should just bump to 3.8 IMO. Anything below that is end-of-life and a > waste of time to support. I agree and my personal plan is still to bump the version to 3.7 or 3.8, but it was more important to me to make progress towards adding any usable type annotations

[clang] [llvm] [GitHub] Add python 3.7 to libclang python test (PR #77219)

2024-01-14 Thread Craig Hesling via cfe-commits
@@ -30,10 +30,15 @@ jobs: check-clang-python: # Build libclang and then run the libclang Python binding's unit tests. name: Build and run Python unit tests +strategy: + fail-fast: false + matrix: +python-version: ["3.7", "3.11"]

[clang] [llvm] [GitHub] Add python 3.7 to libclang python test (PR #77219)

2024-01-14 Thread Craig Hesling via cfe-commits
https://github.com/linux4life798 edited https://github.com/llvm/llvm-project/pull/77219 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [GitHub] Add python 3.7 to libclang python test (PR #77219)

2024-01-14 Thread Craig Hesling via cfe-commits
https://github.com/linux4life798 edited https://github.com/llvm/llvm-project/pull/77219 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [GitHub] Add python 3.7 to libclang python test (PR #77219)

2024-01-14 Thread Craig Hesling via cfe-commits
https://github.com/linux4life798 updated https://github.com/llvm/llvm-project/pull/77219 >From 34492a5aea953be59cf84450862143cbcf53ea6e Mon Sep 17 00:00:00 2001 From: Craig Hesling Date: Sat, 30 Dec 2023 01:17:57 -0500 Subject: [PATCH 1/3] [GitHub] Add python_version input to

[clang] [libclang/python] Bump minimum compatibility to Python 3.6 (PR #77228)

2024-01-06 Thread Craig Hesling via cfe-commits
https://github.com/linux4life798 created https://github.com/llvm/llvm-project/pull/77228 Remove Python 2 support and clean up code that conditions based on version. Issue #76664. >From 1ce6508ee1052c46c44a0f8f5dfd424df83ce209 Mon Sep 17 00:00:00 2001 From: Craig Hesling Date: Sat, 2 Dec 2023

[clang] [clang] Add build type to LibASTMatchersTutorial.rst cmake (PR #76301)

2023-12-29 Thread Craig Hesling via cfe-commits
linux4life798 wrote: @tbaederr, thanks for the review! Can you merge the change or should I reach out to another reviewer? Best, Craig https://github.com/llvm/llvm-project/pull/76301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang] Add build type to LibASTMatchersTutorial.rst cmake (PR #76301)

2023-12-23 Thread Craig Hesling via cfe-commits
https://github.com/linux4life798 edited https://github.com/llvm/llvm-project/pull/76301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add build type to LibASTMatchersTutorial.rst cmake (PR #76301)

2023-12-23 Thread Craig Hesling via cfe-commits
https://github.com/linux4life798 created https://github.com/llvm/llvm-project/pull/76301 Add the required CMAKE_BUILD_TYPE to the cmake configuration line. >From 6c3466f88cb9746e3b94d7dd1c0e1e33a26c8bb3 Mon Sep 17 00:00:00 2001 From: Craig Hesling Date: Sat, 23 Dec 2023 16:13:46 -0500

[clang] [libclang/python] Fix some minor typos (PR #74292)

2023-12-04 Thread Craig Hesling via cfe-commits
https://github.com/linux4life798 edited https://github.com/llvm/llvm-project/pull/74292 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Fix some minor typos (PR #74292)

2023-12-04 Thread Craig Hesling via cfe-commits
https://github.com/linux4life798 edited https://github.com/llvm/llvm-project/pull/74292 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Fix some minor typos (PR #74292)

2023-12-04 Thread Craig Hesling via cfe-commits
https://github.com/linux4life798 edited https://github.com/llvm/llvm-project/pull/74292 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Fix some minor typos (PR #74292)

2023-12-04 Thread Craig Hesling via cfe-commits
https://github.com/linux4life798 created https://github.com/llvm/llvm-project/pull/74292 None >From 22b357ace6de02e537b5fbc217febe8cd59ae40a Mon Sep 17 00:00:00 2001 From: Craig Hesling Date: Sun, 3 Dec 2023 15:59:00 -0800 Subject: [PATCH 1/2] [libclang/python] Update README.txt path Update