summaryrefslogtreecommitdiffstats
path: root/clang/lib/Tooling/Syntax/Tokens.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-12-03 08:10:49 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2019-12-03 08:12:10 -0800
commit0e9b0b6d11e882efec8505d97c4b65e1562e6715 (patch)
tree1c36aef83f3bc086433293b88119aa33b5fff649 /clang/lib/Tooling/Syntax/Tokens.cpp
parent980133a2098cf6159785b8ac0cbe4d8fbf99bfea (diff)
downloadbcm5719-llvm-0e9b0b6d11e882efec8505d97c4b65e1562e6715.tar.gz
bcm5719-llvm-0e9b0b6d11e882efec8505d97c4b65e1562e6715.zip
[EditLine] Fix RecallHistory to make it go in the right direction.
The naming used by editline for the history operations is counter intuitive to how it's used in lldb for the REPL. - The H_PREV operation returns the previous element in the history, which is newer than the current one. - The H_NEXT operation returns the next element in the history, which is older than the current one. This exposed itself as a bug in the REPL where the behavior of up- and down-arrow was inverted. This wasn't immediately obvious because of how we save the current "live" entry. This patch fixes the bug and introduces and enum to wrap the editline operations that match the semantics of lldb. Differential revision: https://reviews.llvm.org/D70932
Diffstat (limited to 'clang/lib/Tooling/Syntax/Tokens.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud