diff options
| author | Alexander Kornienko <alexfh@google.com> | 2017-05-09 14:56:28 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2017-05-09 14:56:28 +0000 |
| commit | d0488d427c74564a1f95849c5faa9b1f3b9ee45b (patch) | |
| tree | 51097882a9c431d1f0a88d9d969a53b1f93b6823 /clang-tools-extra/test/clang-tidy/misc-undelegated-constructor-cxx98.cpp | |
| parent | 66fb0d9768edf37c65c20e9d4dafc5d7f96669de (diff) | |
| download | bcm5719-llvm-d0488d427c74564a1f95849c5faa9b1f3b9ee45b.tar.gz bcm5719-llvm-d0488d427c74564a1f95849c5faa9b1f3b9ee45b.zip | |
Change EOL style to LF. NFC
llvm-svn: 302534
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/misc-undelegated-constructor-cxx98.cpp')
| -rw-r--r-- | clang-tools-extra/test/clang-tidy/misc-undelegated-constructor-cxx98.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/clang-tools-extra/test/clang-tidy/misc-undelegated-constructor-cxx98.cpp b/clang-tools-extra/test/clang-tidy/misc-undelegated-constructor-cxx98.cpp index e614f22bf5c..78b53bb7840 100644 --- a/clang-tools-extra/test/clang-tidy/misc-undelegated-constructor-cxx98.cpp +++ b/clang-tools-extra/test/clang-tidy/misc-undelegated-constructor-cxx98.cpp @@ -1,23 +1,23 @@ -// RUN: clang-tidy %s -checks=-*,misc-undelegated-constructor -- -std=c++98 | count 0
-
-// Note: this test expects no diagnostics, but FileCheck cannot handle that,
-// hence the use of | count 0.
-
-struct Ctor;
-Ctor foo();
-
-struct Ctor {
- Ctor();
- Ctor(int);
- Ctor(int, int);
- Ctor(Ctor *i) {
- Ctor();
- Ctor(0);
- Ctor(1, 2);
- foo();
- }
-};
-
-Ctor::Ctor() {
- Ctor(1);
-}
+// RUN: clang-tidy %s -checks=-*,misc-undelegated-constructor -- -std=c++98 | count 0 + +// Note: this test expects no diagnostics, but FileCheck cannot handle that, +// hence the use of | count 0. + +struct Ctor; +Ctor foo(); + +struct Ctor { + Ctor(); + Ctor(int); + Ctor(int, int); + Ctor(Ctor *i) { + Ctor(); + Ctor(0); + Ctor(1, 2); + foo(); + } +}; + +Ctor::Ctor() { + Ctor(1); +} |

