[clangd] Always default to raw pch format
Clang would emit a fatal error when it encounters an unregistered PCH format. This change ensures clangd will always use raw format no matter what user specifies. As side effects: - serializing an AST in an unknown format might throw off build systems. I suppose this would only be an issue when build system and clangd are racing for same PCM modules, hopefully this should be rare and both clangd or the build system should recover on the next run. - whenever clang reads a serialized AST it seems to be checking for file signature and emitting non-fatal errors. so this should be fine again. The only other valid module format in clang is `obj` but it is part of codegen, i don't think it is worth the dependency. Hence chosing to not register it, at least yet. Differential Revision: https://reviews.llvm.org/D102418
Loading
Please sign in to comment