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

Side by Side Diff: tools/clang/blink_gc_plugin/BlinkGCPluginOptions.h

Issue 2730673003: blink_gc_plugin: always enable warn_stack_allocated_trace_method check. (Closed)
Patch Set: Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_OPTIONS_H_ 5 #ifndef TOOLS_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_OPTIONS_H_
6 #define TOOLS_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_OPTIONS_H_ 6 #define TOOLS_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_OPTIONS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 struct BlinkGCPluginOptions { 12 struct BlinkGCPluginOptions {
13 bool dump_graph = false; 13 bool dump_graph = false;
14 14
15 // If |true|, emit warning if stack allocated class types provide 15 // If |true|, emit warning if stack allocated class types provide
16 // a trace method. 16 // a trace method.
17 bool warn_stack_allocated_trace_method = false; 17 bool warn_stack_allocated_trace_method = true;
Nico 2017/03/02 14:18:21 I think you can remove this completely and pretend
sof 2017/03/02 14:23:21 Does it matter much? we'll have to be back one mor
Nico 2017/03/02 14:26:49 Doesn't matter too much but at the moment (after t
18 // If |true|, emit warning for class types which derive from from 18 // If |true|, emit warning for class types which derive from from
19 // GarbageCollectedFinalized<> when just GarbageCollected<> will do. 19 // GarbageCollectedFinalized<> when just GarbageCollected<> will do.
20 bool warn_unneeded_finalizer = false; 20 bool warn_unneeded_finalizer = false;
21 21
22 // TODO(https://crbug.com/675879): Clean up after the Blink rename. 22 // TODO(https://crbug.com/675879): Clean up after the Blink rename.
23 bool use_chromium_style_naming = false; 23 bool use_chromium_style_naming = false;
24 24
25 std::set<std::string> ignored_classes; 25 std::set<std::string> ignored_classes;
26 std::set<std::string> checked_namespaces; 26 std::set<std::string> checked_namespaces;
27 std::vector<std::string> ignored_directories; 27 std::vector<std::string> ignored_directories;
28 }; 28 };
29 29
30 #endif // TOOLS_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_OPTIONS_H_ 30 #endif // TOOLS_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_OPTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698