Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Unified Diff: runtime/vm/scanner.h

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/safepoint.cc ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scanner.h
diff --git a/runtime/vm/scanner.h b/runtime/vm/scanner.h
index aff5b3a1113ac460a0e7afe14a20026001858229..d26b989623e27e0a518db939c862b2ade19ae3f8 100644
--- a/runtime/vm/scanner.h
+++ b/runtime/vm/scanner.h
@@ -46,9 +46,10 @@ class Scanner : ValueObject {
class TokenCollector : public ValueObject {
public:
- TokenCollector() { }
- virtual ~TokenCollector() { }
- virtual void AddToken(const TokenDescriptor& token) { }
+ TokenCollector() {}
+ virtual ~TokenCollector() {}
+ virtual void AddToken(const TokenDescriptor& token) {}
+
private:
DISALLOW_COPY_AND_ASSIGN(TokenCollector);
};
@@ -166,12 +167,8 @@ class Scanner : ValueObject {
// Reads identifier.
void ScanIdentChars(bool allow_dollar);
- void ScanIdent() {
- ScanIdentChars(true);
- }
- void ScanIdentNoDollar() {
- ScanIdentChars(false);
- }
+ void ScanIdent() { ScanIdentChars(true); }
+ void ScanIdentNoDollar() { ScanIdentChars(false); }
// Reads a number literal.
void ScanNumber(bool dec_point_seen);
@@ -183,17 +180,17 @@ class Scanner : ValueObject {
Thread* thread() const { return thread_; }
Zone* zone() const { return zone_; }
- TokenDescriptor current_token_; // Current token.
- TokenDescriptor newline_token_; // Newline token.
+ TokenDescriptor current_token_; // Current token.
+ TokenDescriptor newline_token_; // Newline token.
TokenDescriptor empty_string_token_; // Token for "".
- const String& source_; // The source text being tokenized.
- intptr_t source_length_; // The length of the source text.
- intptr_t lookahead_pos_; // Position of lookahead character
- // within source_.
- intptr_t token_start_; // Begin of current token in src_.
- int32_t c0_; // Lookahead character.
- bool newline_seen_; // Newline before current token.
- intptr_t prev_token_line_; // Line number of the previous token.
+ const String& source_; // The source text being tokenized.
+ intptr_t source_length_; // The length of the source text.
+ intptr_t lookahead_pos_; // Position of lookahead character
+ // within source_.
+ intptr_t token_start_; // Begin of current token in src_.
+ int32_t c0_; // Lookahead character.
+ bool newline_seen_; // Newline before current token.
+ intptr_t prev_token_line_; // Line number of the previous token.
// The following fields keep track whether we are scanning a string literal
// and its interpolated expressions.
@@ -204,7 +201,7 @@ class Scanner : ValueObject {
const String& private_key_;
- SourcePosition c0_pos_; // Source position of lookahead character c0_.
+ SourcePosition c0_pos_; // Source position of lookahead character c0_.
const CharAtFunc char_at_func_;
« no previous file with comments | « runtime/vm/safepoint.cc ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698