diff options
author | Aaron Puchert <aaron.puchert@sap.com> | 2019-06-19 01:54:05 +0000 |
---|---|---|
committer | Aaron Puchert <aaron.puchert@sap.com> | 2019-06-19 01:54:05 +0000 |
commit | 44940048dde5db9a617c319f595425c7c1cf8e3b (patch) | |
tree | 720fd0fbfc3b581f1701775e2a68ddc283594662 /clang-tools-extra/test/clang-tidy/export-diagnostics.cpp | |
parent | 8c24a5769561c1f6263341e1c54ed43ae572939b (diff) | |
download | bcm5719-llvm-44940048dde5db9a617c319f595425c7c1cf8e3b.tar.gz bcm5719-llvm-44940048dde5db9a617c319f595425c7c1cf8e3b.zip |
Fix more tests after r363749
Apparently -Wmissing-prototypes is used for quite a few integration
tests.
llvm-svn: 363760
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/export-diagnostics.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/export-diagnostics.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/export-diagnostics.cpp b/clang-tools-extra/test/clang-tidy/export-diagnostics.cpp index 14a6a40dca3..eb77be8fbdb 100644 --- a/clang-tools-extra/test/clang-tidy/export-diagnostics.cpp +++ b/clang-tools-extra/test/clang-tidy/export-diagnostics.cpp @@ -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: ... |