r343715 - [analyzer] [tests] [quickfix] Make the test more resilient for a non-defaut std configuration

George Karpenkov via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 3 13:46:50 PDT 2018


Author: george.karpenkov
Date: Wed Oct  3 13:46:50 2018
New Revision: 343715

URL: http://llvm.org/viewvc/llvm-project?rev=343715&view=rev
Log:
[analyzer] [tests] [quickfix] Make the test more resilient for a non-defaut std configuration

Modified:
    cfe/trunk/test/Analysis/html_diagnostics/relevant_lines/synthesized_body.cpp

Modified: cfe/trunk/test/Analysis/html_diagnostics/relevant_lines/synthesized_body.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/html_diagnostics/relevant_lines/synthesized_body.cpp?rev=343715&r1=343714&r2=343715&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/html_diagnostics/relevant_lines/synthesized_body.cpp (original)
+++ cfe/trunk/test/Analysis/html_diagnostics/relevant_lines/synthesized_body.cpp Wed Oct  3 13:46:50 2018
@@ -20,6 +20,6 @@ void call_deref_once() {
 
 
 // RUN: rm -rf %t.output
-// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
+// RUN: %clang_analyze_cc1 -std=c++11 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
 // RUN: cat %t.output/* | FileCheck %s --match-full-lines
 // CHECK: var relevant_lines = {"1": {"3": 1,  "8": 1, "11": 1, "12": 1, "15": 1, "16": 1, "17": 1, "18": 1}};




More information about the cfe-commits mailing list