Note namespace and static recommendations in C++ style guide (#1041)

This commit is contained in:
Jon Meow
2022-01-27 11:26:47 -08:00
committed by GitHub
parent 086834d63a
commit eda43faa5a
16 changed files with 48 additions and 49 deletions
@@ -6,7 +6,7 @@
#include "migrate_cpp/cpp_refactoring/matcher_test_base.h"
namespace Carbon {
namespace Carbon::Testing {
namespace {
class FnInserterTest : public MatcherTestBase<FnInserterFactory> {};
@@ -90,4 +90,4 @@ TEST_F(FnInserterTest, LegacyReturn) {
}
} // namespace
} // namespace Carbon
} // namespace Carbon::Testing
@@ -6,7 +6,7 @@
#include "migrate_cpp/cpp_refactoring/matcher_test_base.h"
namespace Carbon {
namespace Carbon::Testing {
namespace {
class ForRangeTest : public MatcherTestBase<ForRangeFactory> {};
@@ -49,4 +49,4 @@ TEST_F(ForRangeTest, NoSpace) {
}
} // namespace
} // namespace Carbon
} // namespace Carbon::Testing
@@ -13,7 +13,7 @@
#include "clang/Tooling/Tooling.h"
#include "migrate_cpp/cpp_refactoring/matcher_manager.h"
namespace Carbon {
namespace Carbon::Testing {
// Matcher test framework.
template <typename MatcherFactoryType>
@@ -61,6 +61,6 @@ class MatcherTestBase : public ::testing::Test {
MatcherManager matchers;
};
} // namespace Carbon
} // namespace Carbon::Testing
#endif // MIGRATE_CPP_CPP_REFACTORING_MATCHER_TEST_BASE_H_
@@ -6,7 +6,7 @@
#include "migrate_cpp/cpp_refactoring/matcher_test_base.h"
namespace Carbon {
namespace Carbon::Testing {
namespace {
class VarDeclTest : public MatcherTestBase<VarDeclFactory> {};
@@ -254,4 +254,4 @@ TEST_F(VarDeclTest, Template) {
}
} // namespace
} // namespace Carbon
} // namespace Carbon::Testing