diff options
| author | Alexander Kornienko <alexfh@google.com> | 2017-01-17 16:14:03 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2017-01-17 16:14:03 +0000 |
| commit | 0d7a7cdb28d688298ac3c19c59b60f8de59cd1e6 (patch) | |
| tree | 8b46cc83e1367b85d00227253cf6eae8261bb982 /clang-tools-extra/test/clang-tidy/modernize-use-using.cpp | |
| parent | 1d6d1b44cccd94ee74e1e87726e03eafa4496660 (diff) | |
| download | bcm5719-llvm-0d7a7cdb28d688298ac3c19c59b60f8de59cd1e6.tar.gz bcm5719-llvm-0d7a7cdb28d688298ac3c19c59b60f8de59cd1e6.zip | |
[clang-tidy] Fix crash in modernize-use-using (http://llvm.org/PR29135)
llvm-svn: 292229
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/modernize-use-using.cpp')
| -rw-r--r-- | clang-tools-extra/test/clang-tidy/modernize-use-using.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-using.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-using.cpp index 6cf08e0d038..7a439e6bf72 100644 --- a/clang-tools-extra/test/clang-tidy/modernize-use-using.cpp +++ b/clang-tools-extra/test/clang-tidy/modernize-use-using.cpp @@ -85,3 +85,12 @@ typedef int bla1, bla2, bla3; CODE; // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef' +// CHECK-FIXES: #define CODE typedef int INT +// CHECK-FIXES: CODE; + +struct Foo; +#define Bar Baz +typedef Foo Bar; +// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef' +// CHECK-FIXES: #define Bar Baz +// CHECK-FIXES: using Baz = Foo; |

