summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/CodeComplete.h
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2019-07-08 17:27:15 +0000
committerSam McCall <sam.mccall@gmail.com>2019-07-08 17:27:15 +0000
commit5f092e31ab8554dfba429fb43ec2a632bb7e3b1d (patch)
tree0d8d10acd8b4bbe218a12811bb884addc01266fd /clang-tools-extra/clangd/CodeComplete.h
parentb736969eddce563a7fd3fe10b8fe7adfd85c8692 (diff)
downloadbcm5719-llvm-5f092e31ab8554dfba429fb43ec2a632bb7e3b1d.tar.gz
bcm5719-llvm-5f092e31ab8554dfba429fb43ec2a632bb7e3b1d.zip
[clangd] Use -completion-style=bundled by default if signature help is available
Summary: I didn't manage to find something nicer than optional<bool>, but at least I found a sneakier comment. Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64216 llvm-svn: 365356
Diffstat (limited to 'clang-tools-extra/clangd/CodeComplete.h')
-rw-r--r--clang-tools-extra/clangd/CodeComplete.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/CodeComplete.h b/clang-tools-extra/clangd/CodeComplete.h
index 58728285d96..cf872729df9 100644
--- a/clang-tools-extra/clangd/CodeComplete.h
+++ b/clang-tools-extra/clangd/CodeComplete.h
@@ -62,7 +62,10 @@ struct CodeCompleteOptions {
bool IncludeIneligibleResults = false;
/// Combine overloads into a single completion item where possible.
- bool BundleOverloads = false;
+ /// If none, the the implementation may choose an appropriate behavior.
+ /// (In practice, ClangdLSPServer enables bundling if the client claims
+ /// to supports signature help).
+ llvm::Optional<bool> BundleOverloads;
/// Limit the number of results returned (0 means no limit).
/// If more results are available, we set CompletionList.isIncomplete.
OpenPOWER on IntegriCloud