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

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

Issue 2240293002: Remove GN back-compat toolchain args code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« tools/gn/function_toolchain.cc ('K') | « tools/gn/functions.h ('k') | no next file » | 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 #include "tools/gn/functions.h" 5 #include "tools/gn/functions.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <iostream> 8 #include <iostream>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 INSERT_FUNCTION(ProcessFileTemplate, false) 1007 INSERT_FUNCTION(ProcessFileTemplate, false)
1008 INSERT_FUNCTION(ReadFile, false) 1008 INSERT_FUNCTION(ReadFile, false)
1009 INSERT_FUNCTION(RebasePath, false) 1009 INSERT_FUNCTION(RebasePath, false)
1010 INSERT_FUNCTION(SetDefaults, false) 1010 INSERT_FUNCTION(SetDefaults, false)
1011 INSERT_FUNCTION(SetDefaultToolchain, false) 1011 INSERT_FUNCTION(SetDefaultToolchain, false)
1012 INSERT_FUNCTION(SetSourcesAssignmentFilter, false) 1012 INSERT_FUNCTION(SetSourcesAssignmentFilter, false)
1013 INSERT_FUNCTION(SplitList, false) 1013 INSERT_FUNCTION(SplitList, false)
1014 INSERT_FUNCTION(Template, false) 1014 INSERT_FUNCTION(Template, false)
1015 INSERT_FUNCTION(Tool, false) 1015 INSERT_FUNCTION(Tool, false)
1016 INSERT_FUNCTION(Toolchain, false) 1016 INSERT_FUNCTION(Toolchain, false)
1017 INSERT_FUNCTION(ToolchainArgs, false)
1018 INSERT_FUNCTION(WriteFile, false) 1017 INSERT_FUNCTION(WriteFile, false)
1019 1018
1020 #undef INSERT_FUNCTION 1019 #undef INSERT_FUNCTION
1021 } 1020 }
1022 }; 1021 };
1023 const FunctionInfoInitializer function_info; 1022 const FunctionInfoInitializer function_info;
1024 1023
1025 const FunctionInfoMap& GetFunctions() { 1024 const FunctionInfoMap& GetFunctions() {
1026 return function_info.map; 1025 return function_info.map;
1027 } 1026 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 } 1099 }
1101 1100
1102 // Otherwise it's a no-block function. 1101 // Otherwise it's a no-block function.
1103 if (!VerifyNoBlockForFunctionCall(function, block, err)) 1102 if (!VerifyNoBlockForFunctionCall(function, block, err))
1104 return Value(); 1103 return Value();
1105 return found_function->second.no_block_runner(scope, function, 1104 return found_function->second.no_block_runner(scope, function,
1106 args.list_value(), err); 1105 args.list_value(), err);
1107 } 1106 }
1108 1107
1109 } // namespace functions 1108 } // namespace functions
OLDNEW
« tools/gn/function_toolchain.cc ('K') | « tools/gn/functions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698