Skip to content

Commit

Permalink
fix(cxx_verifier): ensure primitive members are always initialized (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
shahms committed May 19, 2023
1 parent 3d73771 commit 1625b49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kythe/cxx/verifier/assertions.h
Expand Up @@ -270,7 +270,7 @@ class AssertionParser {
Verifier& verifier_;

/// The arena from the verifier; needed by the parser implementation.
Arena* arena_;
Arena* arena_ = nullptr;

std::vector<GoalGroup> groups_;
bool inside_goal_group_ = false;
Expand Down Expand Up @@ -313,17 +313,17 @@ class AssertionParser {
bool had_errors_ = false;
/// Save the end-of-file location from the lexer.
yy::location last_eof_;
size_t last_eof_ofs_;
size_t last_eof_ofs_ = 0;
/// Inspections to be performed after the verifier stops.
std::vector<Inspection> inspections_;
/// Context mapping symbols to AST nodes.
std::unordered_map<Symbol, Identifier*> identifier_context_;
std::unordered_map<Symbol, EVar*> evar_context_;
std::unordered_map<EVar*, Symbol> singleton_evars_;
/// Are we dumping lexer trace information?
bool trace_lex_;
bool trace_lex_ = false;
/// Are we dumping parser trace information?
bool trace_parse_;
bool trace_parse_ = false;
/// Should we inspect every user-provided EVar?
bool default_inspect_ = false;
/// The current file's path.
Expand Down

0 comments on commit 1625b49

Please sign in to comment.