lowerCamelCase => snake_case (#396)

This commit is contained in:
Dave Abrahams
2021-03-17 13:09:58 -07:00
committed by GitHub
parent 71a8d072b4
commit 7e1721dc01
10 changed files with 105 additions and 103 deletions
@@ -17,19 +17,20 @@ namespace Carbon {
class ParseAndLexContext {
public:
// Creates an instance analyzing the given input file.
ParseAndLexContext(const std::string& inputFile) : inputFileName(inputFile) {}
ParseAndLexContext(const std::string& input_file)
: input_file_name(input_file) {}
// Writes a syntax error diagnostic, containing message, for the input file at
// the given line, to standard error.
auto PrintDiagnostic(const std::string& message, int lineNumber) -> void;
auto PrintDiagnostic(const std::string& message, int line_number) -> void;
// The source range of the token being (or just) lex'd.
yy::location currentTokenPosition;
yy::location current_token_position;
private:
// A path to the file processed, relative to the current working directory
// when *this is called.
const std::string inputFileName;
const std::string input_file_name;
};
} // namespace Carbon