]> granicus.if.org Git - clang/commitdiff
Reverted custom init hook from r160369.
authorAlexander Kornienko <alexfh@google.com>
Wed, 18 Jul 2012 12:24:51 +0000 (12:24 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 18 Jul 2012 12:24:51 +0000 (12:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160432 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Tooling/CommandLineClangTool.cpp
lib/Tooling/CustomToolInit.h [deleted file]

index 32b2ac2857bf02370ae7de8a8f363c78955208e5..8da2a335a5576339183e0fe96279f1f6f0e720d4 100644 (file)
 #include "clang/Tooling/CommandLineClangTool.h"
 #include "clang/Tooling/Tooling.h"
 
-#ifdef USE_CUSTOM_TOOL_INIT
-#include "CustomToolInit.h"
-#endif
-
 using namespace clang::tooling;
 using namespace llvm;
 
@@ -62,9 +58,6 @@ CommandLineClangTool::CommandLineClangTool() :
 }
 
 void CommandLineClangTool::initialize(int argc, const char **argv) {
-#ifdef USE_CUSTOM_TOOL_INIT
-  customToolInit(argc, argv);
-#endif
   Compilations.reset(FixedCompilationDatabase::loadFromCommandLine(argc, argv));
   cl::ParseCommandLineOptions(argc, argv);
   if (!Compilations) {
diff --git a/lib/Tooling/CustomToolInit.h b/lib/Tooling/CustomToolInit.h
deleted file mode 100644 (file)
index 745edbe..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-//===--- CustomToolInit.h -------------------------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-//  This file contains a hook to supply a custom tool initialization routine.
-//
-//  The mechanism can be used by IDEs or non-public code bases to integrate with
-//  their build system. Currently we support statically linking in an
-//  implementation of \c customToolInit and enabling it with
-//  -DUSE_CUSTOM_TOOL_INIT when compiling the Tooling library.
-//
-//===----------------------------------------------------------------------===//
-#ifndef LLVM_CLANG_TOOLING_CUSTOM_TOOL_INIT_H
-#define LLVM_CLANG_TOOLING_CUSTOM_TOOL_INIT_H
-
-namespace clang {
-namespace tooling {
-
-/// \brief Performs a custom initialization of a tool.
-///
-/// This function provides a hook for custom initialization of a clang tool. It
-/// receives command-line arguments and can change them if needed.
-/// If the initialization fails (say, custom command-line arguments are invalid)
-/// this function should terminate the process.
-void customToolInit(int argc, const char **argv);
-
-} // namespace tooling
-} // namespace clang
-
-#endif  // LLVM_CLANG_TOOLING_CUSTOM_TOOL_INIT_H