summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2019-01-08 00:09:34 +0000
committerStephen Kelly <steveire@gmail.com>2019-01-08 00:09:34 +0000
commit4646da85558c4d6e25a04ea97cefffb3bb0e1e1b (patch)
tree02d3042fdcbc51a1600ca9c8f91033fc6a608792
parent255998ae2439f9a20ff8d2a1a1cf6debfd8df593 (diff)
ReleaseNotes: Update with my clang-query contributions this cycle
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@350584 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--docs/ReleaseNotes.rst42
1 files changed, 41 insertions, 1 deletions
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst
index 8d6e5be3..706e83d2 100644
--- a/docs/ReleaseNotes.rst
+++ b/docs/ReleaseNotes.rst
@@ -57,7 +57,47 @@ The improvements are...
Improvements to clang-query
---------------------------
-The improvements are...
+- A new command line parameter ``--preload`` was added to
+ run commands from a file and then start the interactive interpreter.
+
+- The command ``q`` can was added as an alias for ``quit`` to exit the
+ ``clang-query`` interpreter.
+
+- It is now possible to bind to named values (the result of ``let``
+ expressions). For example:
+
+ .. code-block:: none
+
+ let fn functionDecl()
+ match fn.bind("foo")
+
+- It is now possible to write comments in ``clang-query`` code. This
+ is primarily useful when using script-mode. Comments are all content
+ following the ``#`` character on a line:
+
+ .. code-block:: none
+
+ # This is a comment
+ match fn.bind("foo") # This is a trailing comment
+
+- The new ``set print-matcher true`` command now causes ``clang-query`` to
+ print the evaluated matcher together with the resulting bindings.
+
+- A new output mode ``detailed-ast`` was added to ``clang-query``. The
+ existing ``dump`` output mode is now a deprecated alias
+ for ``detailed-ast``
+
+- Output modes can now be enabled or disabled non-exclusively. For example,
+
+ .. code-block:: none
+
+ # Enable detailed-ast without disabling other output, such as diag
+ enable output detailed-ast
+ m functionDecl()
+
+ # Disable detailed-ast only
+ disable output detailed-ast
+ m functionDecl()
Improvements to clang-rename
----------------------------