diff options
| author | Sam McCall <sam.mccall@gmail.com> | 2019-05-06 12:03:26 +0000 |
|---|---|---|
| committer | Sam McCall <sam.mccall@gmail.com> | 2019-05-06 12:03:26 +0000 |
| commit | 8940f468809686d9a02145846e46d906f0e0ba54 (patch) | |
| tree | aec8e905c09843f7d3941411f0b5d664d7208ee4 /clang-tools-extra/clangd/CodeComplete.h | |
| parent | 4ce1c3c3ff6581db208e9802ff98e7c3fd581006 (diff) | |
| download | bcm5719-llvm-8940f468809686d9a02145846e46d906f0e0ba54.tar.gz bcm5719-llvm-8940f468809686d9a02145846e46d906f0e0ba54.zip | |
[clangd] Expose whether no-compile completion was used.
Summary: Embedding clients want to experiment with showing such results in e.g. a different color.
Reviewers: kadircet
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D61588
llvm-svn: 360039
Diffstat (limited to 'clang-tools-extra/clangd/CodeComplete.h')
| -rw-r--r-- | clang-tools-extra/clangd/CodeComplete.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/CodeComplete.h b/clang-tools-extra/clangd/CodeComplete.h index 9d43107a01e..2dc7f22c14d 100644 --- a/clang-tools-extra/clangd/CodeComplete.h +++ b/clang-tools-extra/clangd/CodeComplete.h @@ -207,6 +207,9 @@ struct CodeCompleteResult { std::vector<CodeCompletion> Completions; bool HasMore = false; CodeCompletionContext::Kind Context = CodeCompletionContext::CCC_Other; + // Usually the source will be parsed with a real C++ parser. + // But heuristics may be used instead if e.g. the preamble is not ready. + bool RanParser = true; }; raw_ostream &operator<<(raw_ostream &, const CodeCompleteResult &); |

