[analyzer] [tests] [quickfix] Make more test more resilient for non-defaut -std.
authorArtem Dergachev <artem.dergachev@gmail.com>
Wed, 3 Oct 2018 22:48:00 +0000 (22:48 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Wed, 3 Oct 2018 22:48:00 +0000 (22:48 +0000)
It is important to specify the version of the standard because tests should
test the same thing regardless of the current default version of the standard.

llvm-svn: 343736

clang/test/Analysis/casts.cpp
clang/test/Analysis/diagnostics/no-store-func-path-notes.cpp
clang/test/Analysis/member-expr.cpp

index 2c29105..e920bd9 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -analyzer-store=region -verify %s
+// RUN: %clang_analyze_cc1 -std=c++14 -analyzer-checker=core,debug.ExprInspection -analyzer-store=region -verify %s
 
 void clang_analyzer_eval(bool);
 
index 6e7aca0..587c08f 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_analyze_cc1 -x c++ -analyzer-checker=core -analyzer-output=text -verify %s
+// RUN: %clang_analyze_cc1 -x c++ -std=c++14 -analyzer-checker=core -analyzer-output=text -verify %s
 
 int initializer1(int &p, int x) {
   if (x) { // expected-note{{Taking false branch}}
index 9951943..8fb6fe4 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection %s -verify
+// RUN: %clang_analyze_cc1 -std=c++14 -analyzer-checker=core,debug.ExprInspection %s -verify
 
 void clang_analyzer_checkInlined(bool);
 void clang_analyzer_eval(int);