How to Install clang in Ubuntu 18.04

Install clang by entering the following commands in the terminal:

sudo apt update
sudo apt install clang


C, C++ and Objective-C compiler (LLVM based)

Clang project is a C, C++, Objective C and Objective C++ front-end for the LLVM compiler. Its goal is to offer a replacement to the GNU Compiler Collection (GCC). . Clang implements all of the ISO C++ 1998, 11 and 14 standards and also provides most of the support of C++17. . This is a dependency package providing the default clang compiler.

Version: 1:6.0-41~exp4

Section: universe/devel