From 1a8d52d1aef01644b5597d410a3e450e293c12b3 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 4 Oct 2016 02:40:35 +0000 Subject: Revert "[analyzer] Improve CloneChecker diagnostics" as its depends on reverted r283092 This reverts commit r283094. llvm-svn: 283182 --- clang/test/Analysis/copypaste/functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/Analysis/copypaste/functions.cpp') diff --git a/clang/test/Analysis/copypaste/functions.cpp b/clang/test/Analysis/copypaste/functions.cpp index c95443de72d..2a871f74b03 100644 --- a/clang/test/Analysis/copypaste/functions.cpp +++ b/clang/test/Analysis/copypaste/functions.cpp @@ -4,14 +4,14 @@ void log(); -int max(int a, int b) { // expected-warning{{Duplicate code detected}} +int max(int a, int b) { // expected-warning{{Detected code clone.}} log(); if (a > b) return a; return b; } -int maxClone(int x, int y) { // expected-note{{Similar code here}} +int maxClone(int x, int y) { // expected-note{{Related code clone is here.}} log(); if (x > y) return x; -- cgit v1.2.3