Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / tools / clang / plugins / FindBadConstructsAction.cpp
index 838590d..ccf7f63 100644 (file)
@@ -15,10 +15,10 @@ namespace chrome_checker {
 FindBadConstructsAction::FindBadConstructsAction() {
 }
 
-ASTConsumer* FindBadConstructsAction::CreateASTConsumer(
+std::unique_ptr<ASTConsumer> FindBadConstructsAction::CreateASTConsumer(
     CompilerInstance& instance,
     llvm::StringRef ref) {
-  return new FindBadConstructsConsumer(instance, options_);
+  return llvm::make_unique<FindBadConstructsConsumer>(instance, options_);
 }
 
 bool FindBadConstructsAction::ParseArgs(const CompilerInstance& instance,
@@ -26,10 +26,7 @@ bool FindBadConstructsAction::ParseArgs(const CompilerInstance& instance,
   bool parsed = true;
 
   for (size_t i = 0; i < args.size() && parsed; ++i) {
-    if (args[i] == "skip-virtuals-in-implementations") {
-      // TODO(rsleevi): Remove this once http://crbug.com/115047 is fixed.
-      options_.check_virtuals_in_implementations = false;
-    } else if (args[i] == "check-base-classes") {
+    if (args[i] == "check-base-classes") {
       // TODO(rsleevi): Remove this once http://crbug.com/123295 is fixed.
       options_.check_base_classes = true;
     } else if (args[i] == "check-weak-ptr-factory-order") {