]> granicus.if.org Git - clang/commitdiff
[unittests] Add C++17 and C++2a support to the tooling tests
authorHamza Sood <hamza_sood@me.com>
Fri, 7 Dec 2018 15:46:29 +0000 (15:46 +0000)
committerHamza Sood <hamza_sood@me.com>
Fri, 7 Dec 2018 15:46:29 +0000 (15:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348603 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Tooling/TestVisitor.h

index fb6a76ccadd014f644eb1ca0e9919968db4d3497..1a22ae737b758947a7dd793a04abfe87182228ef 100644 (file)
@@ -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");