Skip to content
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

[lineeditor] Add setHistorySize() method for adjusting history size #110092

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

devajithvs
Copy link
Contributor

This patch adds a setHistorySize method to LineEditor.

This is particularly useful for tools like clang-repl, clang-query, mlir-query, and other REPL interfaces, where managing history size might be needed.

@vgvassilev
Copy link
Contributor

@devajithvs, can you rebase this PR?

Copy link
Contributor

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Let's wait for a week to see if there are more comments/reviews.

@vgvassilev vgvassilev merged commit ec05b88 into llvm:main Nov 7, 2024
8 checks passed
s-perron pushed a commit to s-perron/llvm-project that referenced this pull request Nov 7, 2024
…llvm#110092)

This patch adds a `setHistorySize` method to `LineEditor`.

This is particularly useful for tools like `clang-repl`, `clang-query`,
`mlir-query`, and other REPL interfaces, where managing history size
might be needed.
thurstond added a commit that referenced this pull request Nov 7, 2024
…ory size (#110092)"

This reverts commit ec05b88.

Reason: buildbot breakage (https://lab.llvm.org/buildbot/#/builders/66/builds/5904)

/home/b/sanitizer-x86_64-linux/build/llvm-project/llvm/lib/LineEditor/LineEditor.cpp:23:15: error: unused variable 'DefaultHistorySize' [-Werror,-Wunused-const-variable]
   23 | constexpr int DefaultHistorySize = 800;
      |               ^~~~~~~~~~~~~~~~~~
1 error generated.
Groverkss pushed a commit to iree-org/llvm-project that referenced this pull request Nov 15, 2024
…llvm#110092)

This patch adds a `setHistorySize` method to `LineEditor`.

This is particularly useful for tools like `clang-repl`, `clang-query`,
`mlir-query`, and other REPL interfaces, where managing history size
might be needed.
Groverkss pushed a commit to iree-org/llvm-project that referenced this pull request Nov 15, 2024
…ory size (llvm#110092)"

This reverts commit ec05b88.

Reason: buildbot breakage (https://lab.llvm.org/buildbot/#/builders/66/builds/5904)

/home/b/sanitizer-x86_64-linux/build/llvm-project/llvm/lib/LineEditor/LineEditor.cpp:23:15: error: unused variable 'DefaultHistorySize' [-Werror,-Wunused-const-variable]
   23 | constexpr int DefaultHistorySize = 800;
      |               ^~~~~~~~~~~~~~~~~~
1 error generated.
vgvassilev pushed a commit that referenced this pull request Dec 2, 2024
…ory size' (#115442)

Reland: #110092

Buildbot was failing due to an unused variable warning as there were 2
implementations (with and without libedit). Compared to last version,
wrap the variable inside the `#ifdef HAVE_LIBEDIT`.

Apologies for the oversight @vgvassilev
TIFitis pushed a commit to TIFitis/llvm-project that referenced this pull request Dec 18, 2024
…ory size' (llvm#115442)

Reland: llvm#110092

Buildbot was failing due to an unused variable warning as there were 2
implementations (with and without libedit). Compared to last version,
wrap the variable inside the `#ifdef HAVE_LIBEDIT`.

Apologies for the oversight @vgvassilev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants