From 0817dac56de28b1c9cb3e2c2484b7b0b544ce8e1 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 8 Oct 2018 00:25:07 -0700 Subject: [PATCH] FAQ: xref --- FAQ.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/FAQ.md b/FAQ.md index fc8138a..600ebe4 100644 --- a/FAQ.md +++ b/FAQ.md @@ -165,10 +165,6 @@ ccls will save a file in `cacheDirectory`: * extern int a; If `ReferenceContext.includeDeclaration` is true, the definition and declarations are also listed. * If no references is found but the point is on the first line, list `#include` lines referencing current file. -### `$ccls/member derived:false` - -* struct A:B{void f()override;}; lists `B` or `B::f()` - ### `textDocument/implementation` * struct B{virtual void f();}; derived classes or virtual function overrides @@ -180,18 +176,22 @@ ccls will save a file in `cacheDirectory`: ### [`$ccls/call`](https://github.com/MaskRay/ccls/blob/master/src/messages/ccls_call.cc) -```elisp -(ccls-call-hierarchy nil) ; caller hierarchy -(ccls-call-hierarchy t) ; callee hierarchy -``` +Find callers. If parameter `callee:true` is specified, find callees instead. + +Specify `hierarchy:true` to enable hierarchical view. ### [`$ccls/inheritance`](https://github.com/MaskRay/ccls/blob/master/src/messages/ccls_inheritance.cc) -```elisp -(ccls-inheritance-hierarchy nil) ; base hierarchy -(ccls-inheritance-hierarchy t) ; derived hierarchy -``` +Find base classes/overriden functions. If parameter `derived:true` is specified, find derived classes/functions instead. + +Specify `hierarchy:true` to enable hierarchical view. ### [`$ccls/member`](https://github.com/MaskRay/ccls/blob/master/src/messages/ccls_member.cc) -Recursively list members of a record type. 😂 nobody has implemented vscode-ccls UI for the feature. Help wanted! +Recursively list member variables of a record type. 😂 nobody has implemented vscode-ccls UI for the feature. Help wanted! + +* struct A:B{void f()override;}; lists `B` or `B::f()` + +If parameter `kind:3` is specified, list member functions/functions in a namespace + +* struct A{void f();}; lists `A::f()`