//===--- clang.cpp - C-Language Front-end ---------------------------------===////// The LLVM Compiler Infrastructure//// This file is distributed under the University of Illinois Open Source// License. See LICENSE.TXT for details.////===----------------------------------------------------------------------===////// This utility may be invoked in the following manner:// clang --help - Output help info.// clang [options] - Read from stdin.// clang [options] file - Read from "file".// clang [options] file1 file2 - Read these files.////===----------------------------------------------------------------------===//#include"Options.h"#include"clang/Frontend/AnalysisConsumer.h"#include"clang/Frontend/ASTConsumers.h"#include"clang/Frontend/ASTUnit.h"#include"clang/Frontend/ChainedDiagnosticClient.h"#include"clang/Frontend/CompilerInvocation.h"#include"clang/Frontend/FixItRewriter.h"#include"clang/Frontend/FrontendDiagnostic.h"#include"clang/Frontend/PCHReader.h"#include"clang/Frontend/PathDiagnosticClients.h"#include"clang/Frontend/PreprocessorOptions.h"#include"clang/Frontend/TextDiagnosticBuffer.h"#include"clang/Frontend/TextDiagnosticPrinter.h"#include"clang/Frontend/CommandLineSourceLoc.h"#include"clang/Frontend/Utils.h"#include"clang/Analysis/PathDiagnostic.h"#include"clang/CodeGen/ModuleBuilder.h"#include"clang/Sema/CodeCompleteConsumer.h"#include"clang/Sema/ParseAST.h"#include"clang/Sema/SemaDiagnostic.h"#include"clang/AST/ASTConsumer.h"#include"clang/AST/ASTContext.h"#include"clang/AST/Decl.h"#include"clang/AST/DeclGroup.h"#include"clang/Parse/Parser.h"#include"clang/Lex/HeaderSearch.h"#include"clang/Lex/LexDiagnostic.h"#include"clang/Basic/FileManager.h"#include"clang/Basic/SourceManager.h"#include"clang/Basic/TargetInfo.h"#include"clang/Basic/Version.h"#include"llvm/LLVMContext.h"#include"llvm/ADT/OwningPtr.h"#include"llvm/ADT/SmallPtrSet.h"#include"llvm/ADT/StringExtras.h"#include"llvm/ADT/StringMap.h"#include"llvm/ADT/StringSwitch.h"#include"llvm/Config/config.h"#include"llvm/Support/CommandLine.h"#include"llvm/Support/ErrorHandling.h"#include"llvm/Support/ManagedStatic.h"#include"llvm/Support/MemoryBuffer.h"#include"llvm/Support/PluginLoader.h"#include"llvm/Support/PrettyStackTrace.h"#include"llvm/Support/Timer.h"#include"llvm/Support/raw_ostream.h"#include"llvm/System/Host.h"#include"llvm/System/Path.h"#include"llvm/System/Program.h"#include"llvm/System/Signals.h"#include"llvm/Target/TargetSelect.h"#include