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

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

Issue 516683002: Add GN variables for controlling header checking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@desc
Patch Set: Created 6 years, 3 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 (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 #include "tools/gn/functions.h" 5 #include "tools/gn/functions.h"
6 6
7 #include "tools/gn/config_values_generator.h" 7 #include "tools/gn/config_values_generator.h"
8 #include "tools/gn/err.h" 8 #include "tools/gn/err.h"
9 #include "tools/gn/parse_tree.h" 9 #include "tools/gn/parse_tree.h"
10 #include "tools/gn/scope.h" 10 #include "tools/gn/scope.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 if (!FillTargetBlockScope(scope, function, component_mode.c_str(), block, 285 if (!FillTargetBlockScope(scope, function, component_mode.c_str(), block,
286 args, &block_scope, err)) 286 args, &block_scope, err))
287 return Value(); 287 return Value();
288 288
289 block->ExecuteBlockInScope(&block_scope, err); 289 block->ExecuteBlockInScope(&block_scope, err);
290 if (err->has_error()) 290 if (err->has_error())
291 return Value(); 291 return Value();
292 292
293 TargetGenerator::GenerateTarget(&block_scope, function, args, 293 TargetGenerator::GenerateTarget(&block_scope, function, args,
294 component_mode, err); 294 component_mode, err);
295 if (err->has_error())
296 return Value();
295 297
296 block_scope.CheckForUnusedVars(err); 298 block_scope.CheckForUnusedVars(err);
297 return Value(); 299 return Value();
298 } 300 }
299 301
300 // copy ------------------------------------------------------------------------ 302 // copy ------------------------------------------------------------------------
301 303
302 const char kCopy[] = "copy"; 304 const char kCopy[] = "copy";
303 const char kCopy_HelpShort[] = 305 const char kCopy_HelpShort[] =
304 "copy: Declare a target that copies files."; 306 "copy: Declare a target that copies files.";
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 Value RunTest(Scope* scope, 542 Value RunTest(Scope* scope,
541 const FunctionCallNode* function, 543 const FunctionCallNode* function,
542 const std::vector<Value>& args, 544 const std::vector<Value>& args,
543 BlockNode* block, 545 BlockNode* block,
544 Err* err) { 546 Err* err) {
545 return ExecuteGenericTarget(functions::kExecutable, scope, function, args, 547 return ExecuteGenericTarget(functions::kExecutable, scope, function, args,
546 block, err); 548 block, err);
547 } 549 }
548 550
549 } // namespace functions 551 } // namespace functions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698