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

Side by Side Diff: tools/gn/item.cc

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/item.h ('k') | tools/gn/loader.cc » ('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
5 #include "tools/gn/item.h" 4 #include "tools/gn/item.h"
6 5
7 #include "base/logging.h" 6 #include "base/logging.h"
8 #include "tools/gn/settings.h" 7 #include "tools/gn/settings.h"
9 8
10 Item::Item(const Settings* settings, const Label& label) 9 Item::Item(const Settings* settings,
11 : settings_(settings), label_(label), defined_from_(nullptr) { 10 const Label& label,
12 } 11 const InputFileSet& input_files)
12 : settings_(settings),
13 label_(label),
14 defined_from_(nullptr),
15 input_files_(input_files) {}
13 16
14 Item::~Item() { 17 Item::~Item() {
15 } 18 }
16 19
17 Config* Item::AsConfig() { 20 Config* Item::AsConfig() {
18 return nullptr; 21 return nullptr;
19 } 22 }
20 const Config* Item::AsConfig() const { 23 const Config* Item::AsConfig() const {
21 return nullptr; 24 return nullptr;
22 } 25 }
(...skipping 25 matching lines...) Expand all
48 return "toolchain"; 51 return "toolchain";
49 if (AsPool()) 52 if (AsPool())
50 return "pool"; 53 return "pool";
51 NOTREACHED(); 54 NOTREACHED();
52 return "this thing that I have no idea what it is"; 55 return "this thing that I have no idea what it is";
53 } 56 }
54 57
55 bool Item::OnResolved(Err* err) { 58 bool Item::OnResolved(Err* err) {
56 return true; 59 return true;
57 } 60 }
OLDNEW
« no previous file with comments | « tools/gn/item.h ('k') | tools/gn/loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698