1 //===--- ArgumentsAdjusters.cpp - Command line arguments adjuster ---------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains definitions of classes which implement ArgumentsAdjuster
13 //===----------------------------------------------------------------------===//
15 #include "clang/Tooling/ArgumentsAdjusters.h"
20 void ArgumentsAdjuster::anchor() {
23 /// Add -fsyntax-only option to the commnand line arguments.
25 ClangSyntaxOnlyAdjuster::Adjust(const CommandLineArguments &Args) {
26 CommandLineArguments AdjustedArgs = Args;
27 // FIXME: Remove options that generate output.
28 AdjustedArgs.push_back("-fsyntax-only");
32 } // end namespace tooling
33 } // end namespace clang