Author: dergachev Date: Wed Oct 3 15:48:00 2018 New Revision: 343736 URL: http://llvm.org/viewvc/llvm-project?rev=343736&view=rev Log: [analyzer] [tests] [quickfix] Make more test more resilient for non-defaut -std.
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. Modified: cfe/trunk/test/Analysis/casts.cpp cfe/trunk/test/Analysis/diagnostics/no-store-func-path-notes.cpp cfe/trunk/test/Analysis/member-expr.cpp Modified: cfe/trunk/test/Analysis/casts.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/casts.cpp?rev=343736&r1=343735&r2=343736&view=diff ============================================================================== --- cfe/trunk/test/Analysis/casts.cpp (original) +++ cfe/trunk/test/Analysis/casts.cpp Wed Oct 3 15:48:00 2018 @@ -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); Modified: cfe/trunk/test/Analysis/diagnostics/no-store-func-path-notes.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/diagnostics/no-store-func-path-notes.cpp?rev=343736&r1=343735&r2=343736&view=diff ============================================================================== --- cfe/trunk/test/Analysis/diagnostics/no-store-func-path-notes.cpp (original) +++ cfe/trunk/test/Analysis/diagnostics/no-store-func-path-notes.cpp Wed Oct 3 15:48:00 2018 @@ -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}} Modified: cfe/trunk/test/Analysis/member-expr.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/member-expr.cpp?rev=343736&r1=343735&r2=343736&view=diff ============================================================================== --- cfe/trunk/test/Analysis/member-expr.cpp (original) +++ cfe/trunk/test/Analysis/member-expr.cpp Wed Oct 3 15:48:00 2018 @@ -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); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits