[cfe-commits] r160432 - in /cfe/trunk/lib/Tooling: CommandLineClangTool.cpp CustomToolInit.h

Alexander Kornienko alexfh at google.com
Wed Jul 18 05:24:51 PDT 2012


Author: alexfh
Date: Wed Jul 18 07:24:51 2012
New Revision: 160432

URL: http://llvm.org/viewvc/llvm-project?rev=160432&view=rev
Log:
Reverted custom init hook from r160369.

Removed:
    cfe/trunk/lib/Tooling/CustomToolInit.h
Modified:
    cfe/trunk/lib/Tooling/CommandLineClangTool.cpp

Modified: cfe/trunk/lib/Tooling/CommandLineClangTool.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/CommandLineClangTool.cpp?rev=160432&r1=160431&r2=160432&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/CommandLineClangTool.cpp (original)
+++ cfe/trunk/lib/Tooling/CommandLineClangTool.cpp Wed Jul 18 07:24:51 2012
@@ -25,10 +25,6 @@
 #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 @@
 }
 
 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) {

Removed: cfe/trunk/lib/Tooling/CustomToolInit.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/CustomToolInit.h?rev=160431&view=auto
==============================================================================
--- cfe/trunk/lib/Tooling/CustomToolInit.h (original)
+++ cfe/trunk/lib/Tooling/CustomToolInit.h (removed)
@@ -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





More information about the cfe-commits mailing list