diff options
Diffstat (limited to 'tools/clang-tidy/test/readability-else-after-return.cpp')
-rw-r--r-- | tools/clang-tidy/test/readability-else-after-return.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/clang-tidy/test/readability-else-after-return.cpp b/tools/clang-tidy/test/readability-else-after-return.cpp new file mode 100644 index 0000000000..2c72b68a92 --- /dev/null +++ b/tools/clang-tidy/test/readability-else-after-return.cpp @@ -0,0 +1,10 @@ +void f() { + +} + +void foo() { + if (true) + return; + else + f(); +} |