]> granicus.if.org Git - clang/commitdiff
Fix -Wdelete-non-virtual-dtor in Tooling code.
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 9 May 2012 18:31:50 +0000 (18:31 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 9 May 2012 18:31:50 +0000 (18:31 +0000)
Also, add an anchor as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156495 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Tooling/ArgumentsAdjusters.h
lib/Tooling/ArgumentsAdjusters.cpp

index 28d2a38a4c1ab95282d63f082d8c6ad171faa4c8..492ddd2b0078bff9b8404de4f913606e1398d504 100644 (file)
@@ -32,6 +32,7 @@ typedef std::vector<std::string> CommandLineArguments;
 /// which is responsible for command line arguments modification before
 /// the arguments are used to run a frontend action.
 class ArgumentsAdjuster {
+  virtual void anchor();
 public:
   /// \brief Returns adjusted command line arguments.
   ///
@@ -39,6 +40,8 @@ public:
   ///
   /// \returns Modified sequence of command line arguments.
   virtual CommandLineArguments Adjust(const CommandLineArguments &Args) = 0;
+  virtual ~ArgumentsAdjuster() {
+  }
 };
 
 /// \brief Syntax check only command line adjuster.
index 73ad39816bf885eb862252d1cc54008faaaa1198..31dd46599587531f99665ce51c20f4829dab20ef 100644 (file)
@@ -17,6 +17,9 @@
 namespace clang {
 namespace tooling {
 
+void ArgumentsAdjuster::anchor() {
+}
+
 /// Add -fsyntax-only option to the commnand line arguments.
 CommandLineArguments
 ClangSyntaxOnlyAdjuster::Adjust(const CommandLineArguments &Args) {