diff options
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/google-readability-namespace-comments.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/google-readability-namespace-comments.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/google-readability-namespace-comments.cpp b/clang-tools-extra/test/clang-tidy/google-readability-namespace-comments.cpp new file mode 100644 index 00000000000..5f55a360f5a --- /dev/null +++ b/clang-tools-extra/test/clang-tidy/google-readability-namespace-comments.cpp @@ -0,0 +1,15 @@ +// RUN: $(dirname %s)/check_clang_tidy_fix.sh %s google-readability-namespace-comments %t +// REQUIRES: shell + +// CHECK-MESSAGES: :[[@LINE+2]]:11: warning: namespace not terminated with a closing comment [google-readability-namespace-comments] +// CHECK-MESSAGES: :[[@LINE+2]]:11: warning: namespace not terminated with a closing comment [google-readability-namespace-comments] +namespace n1 { +namespace n2 { + +} +} +// CHECK-FIXES: } // namespace n2 +// CHECK-FIXES: } // namespace n1 + + +namespace short1 { namespace short2 { } } |