On my experiment with FreeBSD 11.1, after some time i am installing codeblocks , an IDE for creating C/C++ program. Unfortunately codeblocks didnt work (crash) on launch. Looks like some issue on wxwidget. Dunno.
After some casual browsing on FreeBSD package/ports list on the net , i found another C/C++ IDE !
It is Codelite !
pkg install codelite
Launch codelite, automatically detect clang llvm 4 available, then do some helloworld project …