OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef TOOLS_GN_TOKENIZER_H_ | 5 #ifndef TOOLS_GN_TOKENIZER_H_ |
6 #define TOOLS_GN_TOKENIZER_H_ | 6 #define TOOLS_GN_TOKENIZER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/macros.h" | 12 #include "base/macros.h" |
11 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
12 #include "tools/gn/err.h" | 14 #include "tools/gn/err.h" |
13 #include "tools/gn/token.h" | 15 #include "tools/gn/token.h" |
14 | 16 |
15 class InputFile; | 17 class InputFile; |
16 | 18 |
17 class Tokenizer { | 19 class Tokenizer { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 Err* err_; | 81 Err* err_; |
80 size_t cur_; // Byte offset into input buffer. | 82 size_t cur_; // Byte offset into input buffer. |
81 | 83 |
82 int line_number_; | 84 int line_number_; |
83 int char_in_line_; | 85 int char_in_line_; |
84 | 86 |
85 DISALLOW_COPY_AND_ASSIGN(Tokenizer); | 87 DISALLOW_COPY_AND_ASSIGN(Tokenizer); |
86 }; | 88 }; |
87 | 89 |
88 #endif // TOOLS_GN_TOKENIZER_H_ | 90 #endif // TOOLS_GN_TOKENIZER_H_ |
OLD | NEW |