diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2019-09-05 15:30:05 +0000 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2019-09-05 15:30:05 +0000 |
commit | 886382ff077ac52c6bb4a6dd3d0ceee1f88214a5 (patch) | |
tree | eb3737a0c2cd216ef6120f43b569f873a5099cb9 | |
parent | 32e7773fd50964e3bd3e753afed58dc8ea411f5d (diff) | |
download | bcm5719-llvm-886382ff077ac52c6bb4a6dd3d0ceee1f88214a5.tar.gz bcm5719-llvm-886382ff077ac52c6bb4a6dd3d0ceee1f88214a5.zip |
[clangd] Initialize int field to zero. NFC
To make sure we do not have uninitialized values and undefined behavior.
llvm-svn: 371081
-rw-r--r-- | clang-tools-extra/clangd/Protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/Protocol.h b/clang-tools-extra/clangd/Protocol.h index 538a5590df6..d244febfce4 100644 --- a/clang-tools-extra/clangd/Protocol.h +++ b/clang-tools-extra/clangd/Protocol.h @@ -1205,7 +1205,7 @@ llvm::json::Value toJSON(const FileStatus &FStatus); /// specific line of the text document. struct SemanticHighlightingInformation { /// The line these highlightings belong to. - int Line; + int Line = 0; /// The base64 encoded string of highlighting tokens. std::string Tokens; }; |