clang API Documentation

Classes | Namespaces | Defines | Enumerations
LangOptions.h File Reference

Defines the clang::LangOptions interface. More...

#include "clang/Basic/CommentOptions.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/ObjCRuntime.h"
#include "clang/Basic/Sanitizers.h"
#include "clang/Basic/Visibility.h"
#include <string>
#include "clang/Basic/LangOptions.def"
#include "clang/Basic/OpenCLExtensions.def"
Include dependency graph for LangOptions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  clang::LangOptionsBase
class  clang::LangOptions
 Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that is accepted. More...
class  clang::FPOptions
 Floating point control options. More...
class  clang::OpenCLOptions
 OpenCL volatile options. More...

Namespaces

namespace  clang

Defines

#define LANGOPT(Name, Bits, Default, Description)   unsigned Name : Bits;
#define ENUM_LANGOPT(Name, Type, Bits, Default, Description)
#define LANGOPT(Name, Bits, Default, Description)
#define ENUM_LANGOPT(Name, Type, Bits, Default, Description)   unsigned Name : Bits;
#define LANGOPT(Name, Bits, Default, Description)
#define ENUM_LANGOPT(Name, Type, Bits, Default, Description)
#define OPENCLEXT(nm)   unsigned nm : 1;
#define OPENCLEXT(nm)   nm = 0;

Enumerations

enum  clang::TranslationUnitKind { clang::TU_Complete, clang::TU_Prefix, clang::TU_Module }
 Describes the kind of translation unit being processed. More...

Detailed Description

Defines the clang::LangOptions interface.

Definition in file LangOptions.h.


Define Documentation

#define ENUM_LANGOPT (   Name,
  Type,
  Bits,
  Default,
  Description 
)

Definition at line 102 of file LangOptions.h.

#define ENUM_LANGOPT (   Name,
  Type,
  Bits,
  Default,
  Description 
)    unsigned Name : Bits;

Definition at line 102 of file LangOptions.h.

#define ENUM_LANGOPT (   Name,
  Type,
  Bits,
  Default,
  Description 
)
Value:
Type get##Name() const { return static_cast<Type>(Name); } \
  void set##Name(Type Value) { Name = static_cast<unsigned>(Value); }

Definition at line 102 of file LangOptions.h.

#define LANGOPT (   Name,
  Bits,
  Default,
  Description 
)    unsigned Name : Bits;

Definition at line 101 of file LangOptions.h.

#define LANGOPT (   Name,
  Bits,
  Default,
  Description 
)

Definition at line 101 of file LangOptions.h.

#define LANGOPT (   Name,
  Bits,
  Default,
  Description 
)

Definition at line 101 of file LangOptions.h.

#define OPENCLEXT (   nm)    unsigned nm : 1;

Definition at line 135 of file LangOptions.h.

#define OPENCLEXT (   nm)    nm = 0;

Definition at line 135 of file LangOptions.h.