r348603 - [unittests] Add C++17 and C++2a support to the tooling tests

Hamza Sood via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 7 07:46:30 PST 2018


Author: hamzasood
Date: Fri Dec  7 07:46:29 2018
New Revision: 348603

URL: http://llvm.org/viewvc/llvm-project?rev=348603&view=rev
Log:
[unittests] Add C++17 and C++2a support to the tooling tests

Modified:
    cfe/trunk/unittests/Tooling/TestVisitor.h

Modified: cfe/trunk/unittests/Tooling/TestVisitor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/TestVisitor.h?rev=348603&r1=348602&r2=348603&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/TestVisitor.h (original)
+++ cfe/trunk/unittests/Tooling/TestVisitor.h Fri Dec  7 07:46:29 2018
@@ -44,6 +44,8 @@ public:
     Lang_CXX98,
     Lang_CXX11,
     Lang_CXX14,
+    Lang_CXX17,
+    Lang_CXX2a,
     Lang_OBJC,
     Lang_OBJCXX11,
     Lang_CXX = Lang_CXX98
@@ -60,6 +62,8 @@ public:
       case Lang_CXX98: Args.push_back("-std=c++98"); break;
       case Lang_CXX11: Args.push_back("-std=c++11"); break;
       case Lang_CXX14: Args.push_back("-std=c++14"); break;
+      case Lang_CXX17: Args.push_back("-std=c++17"); break;
+      case Lang_CXX2a: Args.push_back("-std=c++2a"); break;
       case Lang_OBJC:
         Args.push_back("-ObjC");
         Args.push_back("-fobjc-runtime=macosx-10.12.0");




More information about the cfe-commits mailing list