[PATCH] D11761: [PATCH] clang-query quit command

Aaron Ballman aaron.ballman at gmail.com
Wed Aug 5 05:17:35 PDT 2015


aaron.ballman created this revision.
aaron.ballman added reviewers: klimek, alexfh.
aaron.ballman added a subscriber: cfe-commits.

I would like to propose adding a clang-query command called 'quit' that terminates the clang-query interactive session. While Ctrl+C works well enough to terminate the application, it's not particularly discoverable, and it runs into an interesting conflict on Windows 10 where the terminal has received some love recently. Ctrl+C will perform a copy operation in the terminal now, depending on whether any text is selected or not. Muscle memory has made for some annoying mistakes recently for me.

I put together a patch that implements this functionality in terms of terminating the query session object.

Thanks!

http://reviews.llvm.org/D11761

Files:
  clang-query/Query.cpp
  clang-query/Query.h
  clang-query/QueryParser.cpp
  clang-query/QuerySession.h
  clang-query/tool/ClangQuery.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11761.31344.patch
Type: text/x-patch
Size: 3168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150805/f06ee809/attachment.bin>


More information about the cfe-commits mailing list