mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Note namespace and static recommendations in C++ style guide (#1041)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user