clang  6.0.0svn
Classes | Namespaces | Macros | 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 <vector>
#include "clang/Basic/LangOptions.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
 Bitfields of LangOptions, split out from LangOptions in order to ensure that this large collection of bitfields is a trivial class type. More...
 
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...
 

Namespaces

 clang
 Dataflow Directional Tag Classes.
 

Macros

#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)
 

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.

Macro Definition Documentation

◆ ENUM_LANGOPT [1/3]

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

Definition at line 160 of file LangOptions.h.

◆ ENUM_LANGOPT [2/3]

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

Definition at line 160 of file LangOptions.h.

◆ ENUM_LANGOPT [3/3]

#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); }
The l-value was considered opaque, so the alignment was determined from a type.

Definition at line 160 of file LangOptions.h.

◆ LANGOPT [1/3]

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

Definition at line 159 of file LangOptions.h.

◆ LANGOPT [2/3]

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

Definition at line 159 of file LangOptions.h.

◆ LANGOPT [3/3]

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

Definition at line 159 of file LangOptions.h.