Author: aaronpuchert Date: Tue Jun 18 18:54:05 2019 New Revision: 363760 URL: http://llvm.org/viewvc/llvm-project?rev=363760&view=rev Log: Fix more tests after r363749
Apparently -Wmissing-prototypes is used for quite a few integration tests. Modified: clang-tools-extra/trunk/test/clang-tidy/export-diagnostics.cpp Modified: clang-tools-extra/trunk/test/clang-tidy/export-diagnostics.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/export-diagnostics.cpp?rev=363760&r1=363759&r2=363760&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clang-tidy/export-diagnostics.cpp (original) +++ clang-tools-extra/trunk/test/clang-tidy/export-diagnostics.cpp Tue Jun 18 18:54:05 2019 @@ -8,6 +8,8 @@ X(f) // CHECK-MESSAGES: -input.cpp:2:1: warning: no previous prototype for function 'ff' [clang-diagnostic-missing-prototypes] // CHECK-MESSAGES: -input.cpp:1:19: note: expanded from macro 'X' // CHECK-MESSAGES: {{^}}note: expanded from here{{$}} +// CHECK-MESSAGES: -input.cpp:2:1: note: declare 'static' if the function is not intended to be used outside of this translation unit +// CHECK-MESSAGES: -input.cpp:1:14: note: expanded from macro 'X' // CHECK-YAML: --- // CHECK-YAML-NEXT: MainSourceFile: '{{.*}}-input.cpp' @@ -28,4 +30,16 @@ X(f) // CHECK-YAML-NEXT: FilePath: '' // CHECK-YAML-NEXT: FileOffset: 0 // CHECK-YAML-NEXT: Replacements: [] +// CHECK-YAML-NEXT: - Message: 'declare ''static'' if the function is not intended to be used outside of this translation unit' +// CHECK-YAML-NEXT: FilePath: '{{.*}}-input.cpp' +// CHECK-YAML-NEXT: FileOffset: 30 +// CHECK-YAML-NEXT: Replacements: +// CHECK-YAML-NEXT: - FilePath: '{{.*}}-input.cpp' +// CHECK-YAML-NEXT: Offset: 30 +// CHECK-YAML-NEXT: Length: 0 +// CHECK-YAML-NEXT: ReplacementText: 'static ' +// CHECK-YAML-NEXT: - Message: 'expanded from macro ''X''' +// CHECK-YAML-NEXT: FilePath: '{{.*}}-input.cpp' +// CHECK-YAML-NEXT: FileOffset: 13 +// CHECK-YAML-NEXT: Replacements: [] // CHECK-YAML-NEXT: ... _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits