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

Side by Side Diff: tools/gn/c_include_iterator.h

Issue 1280123005: tools/gn: Remove includes of basictypes.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_C_INCLUDE_ITERATOR_H_ 5 #ifndef TOOLS_GN_C_INCLUDE_ITERATOR_H_
6 #define TOOLS_GN_C_INCLUDE_ITERATOR_H_ 6 #define TOOLS_GN_C_INCLUDE_ITERATOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/macros.h"
9 #include "base/strings/string_piece.h" 9 #include "base/strings/string_piece.h"
10 10
11 class InputFile; 11 class InputFile;
12 class LocationRange; 12 class LocationRange;
13 13
14 // Iterates through #includes in C source and header files. 14 // Iterates through #includes in C source and header files.
15 // 15 //
16 // This only returns includes we want to check, which is user includes with 16 // This only returns includes we want to check, which is user includes with
17 // double-quotes: #include "..." 17 // double-quotes: #include "..."
18 class CIncludeIterator { 18 class CIncludeIterator {
(...skipping 27 matching lines...) Expand all
46 int line_number_; // One-based. Indicates the last line we read. 46 int line_number_; // One-based. Indicates the last line we read.
47 47
48 // Number of lines we've processed since seeing the last include (or the 48 // Number of lines we've processed since seeing the last include (or the
49 // beginning of the file) with some exceptions. 49 // beginning of the file) with some exceptions.
50 int lines_since_last_include_; 50 int lines_since_last_include_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(CIncludeIterator); 52 DISALLOW_COPY_AND_ASSIGN(CIncludeIterator);
53 }; 53 };
54 54
55 #endif // TOOLS_GN_C_INCLUDE_ITERATOR_H_ 55 #endif // TOOLS_GN_C_INCLUDE_ITERATOR_H_
OLDNEW
« tools/gn/args.h ('K') | « tools/gn/builder_record.h ('k') | tools/gn/command_refs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698