1263320SdimThis patch adds "CC" and "clang-CC" to the list of program name aliases which
2263320Sdiminvoke the C++ compiler.
3263320Sdim
4263320SdimIntroduced here: http://svn.freebsd.org/changeset/base/257109
5263320Sdim
6263320SdimIndex: tools/clang/tools/driver/driver.cpp
7263320Sdim===================================================================
8263320Sdim--- tools/clang/tools/driver/driver.cpp
9263320Sdim+++ tools/clang/tools/driver/driver.cpp
10263320Sdim@@ -215,6 +215,7 @@ static void ParseProgName(SmallVectorImpl<const ch
11263320Sdim   } suffixes [] = {
12263320Sdim     { "clang",     0 },
13263320Sdim     { "clang++",   "--driver-mode=g++" },
14263320Sdim+    { "clang-CC",  "--driver-mode=g++" },
15263320Sdim     { "clang-c++", "--driver-mode=g++" },
16263320Sdim     { "clang-cc",  0 },
17263320Sdim     { "clang-cpp", "--driver-mode=cpp" },
18263320Sdim@@ -221,6 +222,7 @@ static void ParseProgName(SmallVectorImpl<const ch
19263320Sdim     { "clang-g++", "--driver-mode=g++" },
20263320Sdim     { "clang-gcc", 0 },
21263320Sdim     { "clang-cl",  "--driver-mode=cl"  },
22263320Sdim+    { "CC",        "--driver-mode=g++" },
23263320Sdim     { "cc",        0 },
24263320Sdim     { "cpp",       "--driver-mode=cpp" },
25263320Sdim     { "cl" ,       "--driver-mode=cl"  },
26