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

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

Issue 2940873002: Implement tracking of BUILD.gn files used to define target, toolchain or (Closed)
Patch Set: Fix compilation after rebase. Created 3 years, 5 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
« no previous file with comments | « tools/gn/input_conversion.cc ('k') | tools/gn/item.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_INPUT_FILE_H_ 5 #ifndef TOOLS_GN_INPUT_FILE_H_
6 #define TOOLS_GN_INPUT_FILE_H_ 6 #define TOOLS_GN_INPUT_FILE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/containers/flat_set.h"
10 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
11 #include "base/logging.h" 12 #include "base/logging.h"
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "tools/gn/source_dir.h" 14 #include "tools/gn/source_dir.h"
14 #include "tools/gn/source_file.h" 15 #include "tools/gn/source_file.h"
15 16
16 class InputFile { 17 class InputFile {
17 public: 18 public:
18 explicit InputFile(const SourceFile& name); 19 explicit InputFile(const SourceFile& name);
19 20
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 56
56 base::FilePath physical_name_; 57 base::FilePath physical_name_;
57 std::string friendly_name_; 58 std::string friendly_name_;
58 59
59 bool contents_loaded_; 60 bool contents_loaded_;
60 std::string contents_; 61 std::string contents_;
61 62
62 DISALLOW_COPY_AND_ASSIGN(InputFile); 63 DISALLOW_COPY_AND_ASSIGN(InputFile);
63 }; 64 };
64 65
66 using InputFileSet = base::flat_set<const InputFile*>;
67
65 #endif // TOOLS_GN_INPUT_FILE_H_ 68 #endif // TOOLS_GN_INPUT_FILE_H_
OLDNEW
« no previous file with comments | « tools/gn/input_conversion.cc ('k') | tools/gn/item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698