clang API Documentation

CC1Options.cpp
Go to the documentation of this file.
00001 //===--- CC1Options.cpp - Clang CC1 Options Table -------------------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #include "clang/Driver/CC1Options.h"
00011 #include "clang/Driver/Option.h"
00012 #include "clang/Driver/OptTable.h"
00013 using namespace clang;
00014 using namespace clang::driver;
00015 using namespace clang::driver::options;
00016 using namespace clang::driver::cc1options;
00017 
00018 static const OptTable::Info CC1InfoTable[] = {
00019 #define OPTION(NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \
00020                HELPTEXT, METAVAR)   \
00021   { NAME, HELPTEXT, METAVAR, Option::KIND##Class, PARAM, FLAGS, \
00022     OPT_##GROUP, OPT_##ALIAS },
00023 #include "clang/Driver/CC1Options.inc"
00024 };
00025 
00026 namespace {
00027 
00028 class CC1OptTable : public OptTable {
00029 public:
00030   CC1OptTable()
00031     : OptTable(CC1InfoTable, sizeof(CC1InfoTable) / sizeof(CC1InfoTable[0])) {}
00032 };
00033 
00034 }
00035 
00036 OptTable *clang::driver::createCC1OptTable() {
00037   return new CC1OptTable();
00038 }