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
+2 -2
View File
@@ -12,7 +12,7 @@
#include "executable_semantics/common/arena.h"
namespace Carbon {
namespace Carbon::Testing {
namespace {
static constexpr std::string_view FileContents = R"(
@@ -30,4 +30,4 @@ TEST(ParseTest, ParseFromString) {
}
} // namespace
} // namespace Carbon
} // namespace Carbon::Testing
@@ -9,7 +9,7 @@
#include "executable_semantics/syntax/parse.h"
#include "executable_semantics/syntax/parse_test_matchers.h"
namespace Carbon {
namespace Carbon::Testing {
namespace {
using ::testing::ElementsAre;
@@ -33,4 +33,4 @@ TEST(UnimplementedExampleTest, VerifyPrecedence) {
}
} // namespace
} // namespace Carbon
} // namespace Carbon::Testing