Simon Atanasyan | 32df72d | 2012-05-09 16:18:30 +0000 | [diff] [blame^] | 1 | //===--- ArgumentsAdjusters.cpp - Command line arguments adjuster ---------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file contains definitions of classes which implement ArgumentsAdjuster |
| 11 | // interface. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #include "clang/Tooling/ArgumentsAdjusters.h" |
| 16 | |
| 17 | namespace clang { |
| 18 | namespace tooling { |
| 19 | |
| 20 | /// Add -fsyntax-only option to the commnand line arguments. |
| 21 | CommandLineArguments |
| 22 | ClangSyntaxOnlyAdjuster::Adjust(const CommandLineArguments &Args) { |
| 23 | CommandLineArguments AdjustedArgs = Args; |
| 24 | // FIXME: Remove options that generate output. |
| 25 | AdjustedArgs.push_back("-fsyntax-only"); |
| 26 | return AdjustedArgs; |
| 27 | } |
| 28 | |
| 29 | } // end namespace tooling |
| 30 | } // end namespace clang |
| 31 | |