2014-10-26 10:58:07 +08:00
|
|
|
// RUN: $(dirname %s)/check_clang_tidy.sh %s google-readability-namespace-comments %t
|
2014-09-22 18:41:39 +08:00
|
|
|
// REQUIRES: shell
|
|
|
|
|
|
|
|
namespace n1 {
|
|
|
|
namespace n2 {
|
2014-11-20 23:05:32 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-18 01:32:32 +08:00
|
|
|
// CHECK-MESSAGES: :[[@LINE+4]]:2: warning: namespace 'n2' not terminated with a closing comment [google-readability-namespace-comments]
|
2014-11-20 23:05:32 +08:00
|
|
|
// CHECK-MESSAGES: :[[@LINE-7]]:11: note: namespace 'n2' starts here
|
2014-11-18 01:32:32 +08:00
|
|
|
// CHECK-MESSAGES: :[[@LINE+3]]:2: warning: namespace 'n1' not terminated with
|
2014-11-20 23:05:32 +08:00
|
|
|
// CHECK-MESSAGES: :[[@LINE-10]]:11: note: namespace 'n1' starts here
|
2014-09-22 18:41:39 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
// CHECK-FIXES: } // namespace n2
|
|
|
|
// CHECK-FIXES: } // namespace n1
|
|
|
|
|
|
|
|
|
2014-11-20 23:05:32 +08:00
|
|
|
namespace short1 {
|
|
|
|
namespace short2 {
|
|
|
|
// Namespaces covering 10 lines or fewer are exempt from this rule.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|