Should be compatible with the current index format accepted by clangd
Depends on https://reviews.llvm.org/D49009
Paths
| Differential D49010
YAML output for index-while-building Needs ReviewPublic Authored by yvvan on Jul 6 2018, 1:44 AM.
Details
Summary Should be compatible with the current index format accepted by clangd Depends on https://reviews.llvm.org/D49009
Diff Detail Event TimelineComment Actions JSON is a subset of YAML, do we really need both outputs? I've noticed the schema for the output is actually different between YAML and JSON, wouldn't that be confusing?
Do we really want that? Maybe we could teach clangd to consume the index-while-build output (in binary format) when building the index instead? WDYT? Comment Actions @ilya-biryukov I would name this revision "for test purpose". It works at some extent with the current clangd version and can be used by someone else. But since we had a discussion about YAML being a temporary solution I never planned to commit this revision.
Revision Contents
Diff 155331 include/clang/Index/IndexRecordReader.h
include/clang/Index/IndexRecordWriter.h
include/indexstore/IndexStoreCXX.h
include/indexstore/indexstore.h
lib/Index/ClangIndexRecordWriter.cpp
lib/Index/IndexRecordReader.cpp
lib/Index/IndexRecordWriter.cpp
tools/IndexStore/IndexStore.cpp
tools/c-index-test/JSONAggregation.h
tools/c-index-test/JSONAggregation.cpp
tools/c-index-test/core_main.cpp
|