llvm/clang/xcode 的正确版本是什么?

Whats is proper version of llvm/clang/xcode?

这个gist mentions that xcode 9 published with 'Apple LLVM version 9.0.0 (clang-900.0.38)', but the last version of llvm in llvm.org是LLVM 5.0.0。
它们之间有什么关系?

Apple 的 Xcode 附带 LLVM,但它不是开源版本。例如,某些 clang 额外工具不会安装给您 Mac。所以至少,Apple 修改了CMakeLists.txt。您可以在 apple open source.

中阅读 CMakeLists.txtMakefile

这只是一个建议,可能没有帮助。

另一个:index.file 显示 Xcode LLVM 9 映射到 Clang/LLVM 4.0.

如果您想拥有完全相同版本的 LLVM,您可以从 https://opensource.apple.com 获得 Xcode 附带的编译器的源代码。