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

This commit is contained in:
Jon Meow authored and GitHub committed 2022-01-27 11:26:47 -08:00
1 parent 086834d63a
commit eda43faa5a
16 files changed
+48 -49

No files matched your search

+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