mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 16:01:05 +01:00
Style updates, mostly _ naming (#970)
There are some declaration order changes, and a few test classes switched from `struct` to `class`. However, this PR is mostly adopting `_` naming of private member variables due to the shift in naming style. None of what's here should have behavior impacts, it should just be style. Note, there are a lot of things that *look* like they could be accessor-named, but I'm not doing that in this change. Happy to do it separately if you want me to do another PR focused on it. Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
This commit is contained in:
committed by
GitHub
co-authored by
Chandler Carruth
parent
be8d0a993b
commit
652cd8c636
@@ -32,11 +32,8 @@ using ::testing::Ne;
|
||||
using ::testing::StrEq;
|
||||
namespace Yaml = Carbon::Testing::Yaml;
|
||||
|
||||
struct ParseTreeTest : ::testing::Test {
|
||||
std::forward_list<SourceBuffer> source_storage;
|
||||
std::forward_list<TokenizedBuffer> token_storage;
|
||||
DiagnosticConsumer& consumer = ConsoleDiagnosticConsumer();
|
||||
|
||||
class ParseTreeTest : public ::testing::Test {
|
||||
protected:
|
||||
auto GetSourceBuffer(llvm::Twine t) -> SourceBuffer& {
|
||||
source_storage.push_front(SourceBuffer::CreateFromText(t.str()));
|
||||
return source_storage.front();
|
||||
@@ -47,6 +44,10 @@ struct ParseTreeTest : ::testing::Test {
|
||||
TokenizedBuffer::Lex(GetSourceBuffer(t), consumer));
|
||||
return token_storage.front();
|
||||
}
|
||||
|
||||
std::forward_list<SourceBuffer> source_storage;
|
||||
std::forward_list<TokenizedBuffer> token_storage;
|
||||
DiagnosticConsumer& consumer = ConsoleDiagnosticConsumer();
|
||||
};
|
||||
|
||||
TEST_F(ParseTreeTest, Empty) {
|
||||
|
||||
Reference in New Issue
Block a user