I'm not an expert at clang or clang++. I was attempting to retag a question, and stumbled on both of these with very similar tag excerpts. Can someone please improve them?
1 Answer
Clang is the name of the compiler. More precisely, it is a C, C++, Objective-C, and Objective-C++ front-end for the LLVM compiler.
clang
is the command you type if you only want to link against the C standard library, while clang++
links against both the C and C++ standard libraries. This default behavior can be overridden by explicitly specifying the libraries to link as arguments.
I'm not sure what the excerpts should say. You could give a short explanation like I did above of the names of the two front-end drivers, but the reality is there's no way to prevent clang from being used as a generic tag, considering it is also the name of the entire toolset. It's not as if we can use clang for C questions and clang++ for C++ questions.
I'm not a Clang expert either, so maybe someone can set me straight. But on first blush, I don't see why we need two separate tags. c and c++ should be more than enough to disambiguate.
Perhaps we should consider synonymizing the two?