zcov: / lib/Driver/DriverOptions.cpp


Files: 1 Branches Taken: 0.0% 0 / 0
Generated: 2010-02-10 01:31 Branches Executed: 0.0% 0 / 0
Line Coverage: 100.0% 4 / 4


Programs: 2 Runs 3018


       1                 : //===--- DriverOptions.cpp - Driver Options Table -----------------------*-===//
       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                 : #include "clang/Driver/Options.h"
      11                 : #include "clang/Driver/OptTable.h"
      12                 : #include "clang/Driver/Option.h"
      13                 : 
      14                 : using namespace clang::driver;
      15                 : using namespace clang::driver::options;
      16                 : 
      17                 : static const OptTable::Info InfoTable[] = {
      18                 : #define OPTION(NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \
      19                 :                HELPTEXT, METAVAR)   \
      20                 :   { NAME, HELPTEXT, METAVAR, Option::KIND##Class, FLAGS, PARAM, \
      21                 :     OPT_##GROUP, OPT_##ALIAS },
      22                 : #include "clang/Driver/Options.inc"
      23                 : };
      24                 : 
      25                 : namespace {
      26                 : 
      27                 : class DriverOptTable : public OptTable {
      28                 : public:
      29              248:   DriverOptTable()
      30              248:     : OptTable(InfoTable, sizeof(InfoTable) / sizeof(InfoTable[0])) {}
      31                 : };
      32                 : 
      33                 : }
      34                 : 
      35              248: OptTable *clang::driver::createDriverOptTable() {
      36              248:   return new DriverOptTable();
      37                 : }

Generated: 2010-02-10 01:31 by zcov