diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2021-05-13 18:51:56 +0200 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2021-05-14 16:34:57 +0200 |
commit | ed339111bff690c6ba87d5e25c50bcad6793a309 (patch) | |
tree | 6ef6030904910b7e5853b14c2c181d10afa73f56 /llvm/unittests/Support/MathExtrasTest.cpp | |
parent | 810d4a6ff6d0b9c90f7720a7825a65f5356e4bba (diff) | |
download | llvm-ed339111bff690c6ba87d5e25c50bcad6793a309.zip llvm-ed339111bff690c6ba87d5e25c50bcad6793a309.tar.gz llvm-ed339111bff690c6ba87d5e25c50bcad6793a309.tar.bz2 |
[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
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions