diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-06-22 23:43:22 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-06-22 23:43:22 +0000 |
commit | 169b753b4546b464ad81742ec09a9b9bb11d3b47 (patch) | |
tree | d394771c26d39462a5704897620a24c2deeda4d6 /lib | |
parent | 00619623af0b9d3271e31402ec1a95e84c2c4526 (diff) |
Make c++ and C++ valid extensions for C++ source files, from Seth Cantrell!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Driver/Types.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Driver/Types.cpp b/lib/Driver/Types.cpp index 752a881ba5..3c07cf2898 100644 --- a/lib/Driver/Types.cpp +++ b/lib/Driver/Types.cpp @@ -157,6 +157,8 @@ types::ID types::lookupTypeForExtension(const char *Ext) { .Case("ads", TY_Ada) .Case("adb", TY_Ada) .Case("ast", TY_AST) + .Case("c++", TY_CXX) + .Case("C++", TY_CXX) .Case("cxx", TY_CXX) .Case("cpp", TY_CXX) .Case("CPP", TY_CXX) |