diff options
Diffstat (limited to 'clang/test/Analysis/copypaste/macro-complexity.cpp')
-rw-r--r-- | clang/test/Analysis/copypaste/macro-complexity.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Analysis/copypaste/macro-complexity.cpp b/clang/test/Analysis/copypaste/macro-complexity.cpp index aca4df1d025..58b884ab436 100644 --- a/clang/test/Analysis/copypaste/macro-complexity.cpp +++ b/clang/test/Analysis/copypaste/macro-complexity.cpp @@ -11,11 +11,11 @@ // This confirms that with the current configuration the macro body would be // considered large enough to pass the MinimumCloneComplexity constraint. -int manualMacro(int a, int b) { // expected-warning{{Duplicate code detected}} +int manualMacro(int a, int b) { // expected-warning{{Detected code clone.}} return a > b ? -a * a : -b * b; } -int manualMacroClone(int a, int b) { // expected-note{{Similar code here}} +int manualMacroClone(int a, int b) { // expected-note{{Related code clone is here.}} return a > b ? -a * a : -b * b; } @@ -41,10 +41,10 @@ int macroClone(int a, int b) { #define NEG(A) -(A) -int nestedMacros() { // expected-warning{{Duplicate code detected}} +int nestedMacros() { // expected-warning{{Detected code clone.}} return NEG(NEG(NEG(NEG(NEG(NEG(NEG(NEG(NEG(NEG(1)))))))))); } -int nestedMacrosClone() { // expected-note{{Similar code here}} +int nestedMacrosClone() { // expected-note{{Related code clone is here.}} return NEG(NEG(NEG(NEG(NEG(NEG(NEG(NEG(NEG(NEG(1)))))))))); } |