When histedit.h and libedit.a are in non-standard locations which is not
uncommon, cmake does not automatically configure LLVM to build the line
editor. But completion and history provided by LineEditor are very useful in
clang-query.
To use this -DLLVM_ENABLE_LIBEDIT=ON must be specified along with the location
of libedit.a and histedit.h in -DCMAKE_LIBRARY_PATH=... and
-DCMAKE_INCLUDE_PATH=... respectively. Alternatively, the full path to these
files can specified using -DLIBEDIT_LIBRARY=... and -DHISTEDIT_FILE=...
respectively
There are some instances such as when using ASan, building with libedit is
skipped. That will continue to be the case.