Fix -Wdelete-non-virtual-dtor in Tooling code.

Also, add an anchor as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch

llvm-svn: 156495
This commit is contained in:
David Blaikie 2012-05-09 18:31:50 +00:00
parent e07cc042f6
commit c9bd941f1f
2 changed files with 6 additions and 0 deletions

View 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.

View 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) {