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

Side by Side Diff: tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp

Issue 2776033002: blink_gc_plugin: retire warn-stack-allocated-trace-method option. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | tools/clang/blink_gc_plugin/tests/legacy_naming/stack_allocated.flags » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This clang plugin checks various invariants of the Blink garbage 5 // This clang plugin checks various invariants of the Blink garbage
6 // collection infrastructure. 6 // collection infrastructure.
7 // 7 //
8 // Errors are described at: 8 // Errors are described at:
9 // http://www.chromium.org/developers/blink-gc-plugin-errors 9 // http://www.chromium.org/developers/blink-gc-plugin-errors
10 10
(...skipping 15 matching lines...) Expand all
26 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance& instance, 26 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance& instance,
27 llvm::StringRef ref) override { 27 llvm::StringRef ref) override {
28 return llvm::make_unique<BlinkGCPluginConsumer>(instance, options_); 28 return llvm::make_unique<BlinkGCPluginConsumer>(instance, options_);
29 } 29 }
30 30
31 bool ParseArgs(const CompilerInstance&, 31 bool ParseArgs(const CompilerInstance&,
32 const std::vector<std::string>& args) override { 32 const std::vector<std::string>& args) override {
33 for (const auto& arg : args) { 33 for (const auto& arg : args) {
34 if (arg == "dump-graph") { 34 if (arg == "dump-graph") {
35 options_.dump_graph = true; 35 options_.dump_graph = true;
36 } else if (arg == "warn-stack-allocated-trace-method") {
37 // TODO(sof): after next roll, remove this option to round out
38 // crbug.com/689874
39 continue;
40 } else if (arg == "warn-unneeded-finalizer") { 36 } else if (arg == "warn-unneeded-finalizer") {
41 options_.warn_unneeded_finalizer = true; 37 options_.warn_unneeded_finalizer = true;
42 } else if (arg == "use-chromium-style-naming") { 38 } else if (arg == "use-chromium-style-naming") {
43 options_.use_chromium_style_naming = true; 39 options_.use_chromium_style_naming = true;
44 } else { 40 } else {
45 llvm::errs() << "Unknown blink-gc-plugin argument: " << arg << "\n"; 41 llvm::errs() << "Unknown blink-gc-plugin argument: " << arg << "\n";
46 return false; 42 return false;
47 } 43 }
48 } 44 }
49 return true; 45 return true;
50 } 46 }
51 47
52 private: 48 private:
53 BlinkGCPluginOptions options_; 49 BlinkGCPluginOptions options_;
54 }; 50 };
55 51
56 static FrontendPluginRegistry::Add<BlinkGCPluginAction> X( 52 static FrontendPluginRegistry::Add<BlinkGCPluginAction> X(
57 "blink-gc-plugin", 53 "blink-gc-plugin",
58 "Check Blink GC invariants"); 54 "Check Blink GC invariants");
OLDNEW
« no previous file with comments | « no previous file | tools/clang/blink_gc_plugin/tests/legacy_naming/stack_allocated.flags » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698