]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/llvm/tools/clang/lib/Tooling/ArgumentsAdjusters.cpp
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / llvm / tools / clang / lib / Tooling / ArgumentsAdjusters.cpp
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 void ArgumentsAdjuster::anchor() {
21 }
22
23 /// Add -fsyntax-only option to the commnand line arguments.
24 CommandLineArguments
25 ClangSyntaxOnlyAdjuster::Adjust(const CommandLineArguments &Args) {
26   CommandLineArguments AdjustedArgs = Args;
27   // FIXME: Remove options that generate output.
28   AdjustedArgs.push_back("-fsyntax-only");
29   return AdjustedArgs;
30 }
31
32 } // end namespace tooling
33 } // end namespace clang
34