The wiki had show us already.
https://en.wikipedia.org/wiki/Xcode#Latest_versions
Actually we can check swift version the Xcode used, and see the llvm version in swift-llvm
For Xcode 10, the swift version is 4.2, from CMakeLists.txt we can get the llvm version is 6.0.1
if(NOT DEFINED LLVM_VERSION_MAJOR)
set(LLVM_VERSION_MAJOR 6)
endif()
if(NOT DEFINED LLVM_VERSION_MINOR)
set(LLVM_VERSION_MINOR 0)
endif()
if(NOT DEFINED LLVM_VERSION_PATCH)
set(LLVM_VERSION_PATCH 1)
endif()
And Apple should not use two versions of llvm in clang and swift :)