Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that is accepted. More...
#include "clang/Basic/LangOptions.h"
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that is accepted.
Definition at line 502 of file LangOptions.h.
◆ LangOptions() ◆ allowsNonTrivialObjCLifetimeQualifiers() bool clang::LangOptions::allowsNonTrivialObjCLifetimeQualifiers ( ) const inline ◆ assumeFunctionsAreConvergent() bool clang::LangOptions::assumeFunctionsAreConvergent ( ) const inline ◆ getDefaultExceptionMode() ◆ getDefaultRoundingMode() RoundingMode clang::LangOptions::getDefaultRoundingMode ( ) const inline ◆ getOpenCLCompatibleVersion() unsigned LangOptions::getOpenCLCompatibleVersion ( ) constReturn the OpenCL version that kernel language is compatible with.
Definition at line 63 of file LangOptions.cpp.
Referenced by clang::Sema::ActOnNumericConstant(), clang::TargetInfo::adjust(), clang::OpenCLOptions::areProgramScopeVariablesSupported(), builtinIsSupported(), CheckExtVectorComponent(), ConvertDeclSpecToType(), clang::Sema::CreateBuiltinUnaryOp(), FixupInvocation(), GetFullTypeForDeclarator(), getOpenCLKernelParameterType(), clang::SemaOpenCL::handleAccessAttr(), clang::Sema::Initialize(), clang::OpenCLOptions::OpenCLOptionInfo::isAvailableIn(), clang::CodeGen::CodeGenModule::Release(), setLangDefaults(), clang::DeclSpec::SetStorageClassSpec(), and clang::TargetInfo::validateOpenCLTarget().
◆ getOpenCLVersionString() std::string LangOptions::getOpenCLVersionString ( ) const ◆ getOpenCLVersionTuple() VersionTuple LangOptions::getOpenCLVersionTuple ( ) const ◆ hasAtExit() bool clang::LangOptions::hasAtExit ( ) const inlineReturns true if the language supports calling the 'atexit' function.
Definition at line 735 of file LangOptions.h.
◆ hasDefaultGlobalAllocationFunctionVisibility() bool clang::LangOptions::hasDefaultGlobalAllocationFunctionVisibility ( ) const inline ◆ hasDefaultVisibilityExportMapping() bool clang::LangOptions::hasDefaultVisibilityExportMapping ( ) const inline ◆ hasDWARFExceptions() bool clang::LangOptions::hasDWARFExceptions ( ) const inline ◆ hasGlobalAllocationFunctionVisibility() bool clang::LangOptions::hasGlobalAllocationFunctionVisibility ( ) const inline ◆ hasHiddenGlobalAllocationFunctionVisibility() bool clang::LangOptions::hasHiddenGlobalAllocationFunctionVisibility ( ) const inline ◆ hasProtectedGlobalAllocationFunctionVisibility() bool clang::LangOptions::hasProtectedGlobalAllocationFunctionVisibility ( ) const inline ◆ hasSEHExceptions() bool clang::LangOptions::hasSEHExceptions ( ) const inline ◆ hasSignReturnAddress() bool clang::LangOptions::hasSignReturnAddress ( ) const inline ◆ hasSjLjExceptions() bool clang::LangOptions::hasSjLjExceptions ( ) const inline ◆ hasWasmExceptions() bool clang::LangOptions::hasWasmExceptions ( ) const inline ◆ implicitFunctionsAllowed() bool clang::LangOptions::implicitFunctionsAllowed ( ) const inline ◆ isAllDefaultVisibilityExportMapping() bool clang::LangOptions::isAllDefaultVisibilityExportMapping ( ) const inline ◆ isCompatibleWithMSVC() ◆ isCompilingModule() bool clang::LangOptions::isCompilingModule ( ) const inline ◆ isCompilingModuleImplementation() bool clang::LangOptions::isCompilingModuleImplementation ( ) const inline ◆ isExplicitDefaultVisibilityExportMapping() bool clang::LangOptions::isExplicitDefaultVisibilityExportMapping ( ) const inline ◆ isImplicitIntAllowed() bool clang::LangOptions::isImplicitIntAllowed ( ) const inline ◆ isImplicitIntRequired() bool clang::LangOptions::isImplicitIntRequired ( ) const inline ◆ isNoBuiltinFunc() bool LangOptions::isNoBuiltinFunc ( StringRef Name ) const ◆ isOverflowPatternExcluded() ◆ isSignedOverflowDefined() bool clang::LangOptions::isSignedOverflowDefined ( ) const inline ◆ isSignReturnAddressScopeAll() bool clang::LangOptions::isSignReturnAddressScopeAll ( ) const inline ◆ isSignReturnAddressWithAKey() bool clang::LangOptions::isSignReturnAddressWithAKey ( ) const inline ◆ isSubscriptPointerArithmetic() bool clang::LangOptions::isSubscriptPointerArithmetic ( ) const inline ◆ isSYCL() bool clang::LangOptions::isSYCL ( ) const inline ◆ remapPathPrefix() ◆ requiresStrictPrototypes() bool clang::LangOptions::requiresStrictPrototypes ( ) const inline ◆ resetNonModularOptions() void LangOptions::resetNonModularOptions ( ) ◆ setLangDefaults()Set language defaults for the given input language and language standard in the given LangOptions object.
Definition at line 89 of file LangOptions.cpp.
References clang::Asm, clang::CUDA, clang::LangOptionsBase::FPM_Fast, clang::LangOptionsBase::FPM_FastHonorPragmas, clang::LangOptionsBase::FPM_On, clang::getDefaultLanguageStandard(), clang::LangStandard::getLangStandardForKind(), getOpenCLCompatibleVersion(), clang::HIP, clang::HLSL, clang::LangOptionsBase::HLSL_2015, clang::LangOptionsBase::HLSL_2016, clang::LangOptionsBase::HLSL_2017, clang::LangOptionsBase::HLSL_2018, clang::LangOptionsBase::HLSL_2021, clang::LangOptionsBase::HLSL_202x, clang::LangOptionsBase::HLSL_202y, clang::LangStandard::lang_unspecified, LangStd, clang::ObjC, clang::ObjCXX, Std, and clang::T.
◆ threadPrivateMemoryAtomicsAreUndefined() bool clang::LangOptions::threadPrivateMemoryAtomicsAreUndefined ( ) const inline ◆ trackLocalOwningModule() bool clang::LangOptions::trackLocalOwningModule ( ) const inline ◆ CFRuntime ◆ CheckNew ◆ CommentOpts ◆ CUID std::string clang::LangOptions::CUID ◆ CurrentModule std::string clang::LangOptions::CurrentModuleThe name of the current module, of which the main source file is a part.
If CompilingModule is set, we are compiling the interface of this module, otherwise we are compiling an implementation file of it. This starts as ModuleName in case -fmodule-name is provided and changes during compilation to reflect the current module.
Definition at line 557 of file LangOptions.h.
Referenced by clang::Sema::ActOnModuleDecl(), clang::Sema::ActOnModuleImport(), clang::FrontendAction::BeginSourceFile(), clang::ModuleMap::createHeaderUnit(), clang::ModuleMap::createModule(), clang::ModuleMap::createModuleForImplementationUnit(), clang::ModuleMap::createModuleForInterfaceUnit(), clang::DumpModuleInfoAction::ExecuteAction(), FixupInvocation(), clang::FrontendAction::getCurrentModule(), clang::PCHGenerator::getEmittingModule(), clang::Preprocessor::getModuleForLocation(), clang::Module::isForBuilding(), prepareToBuildModule(), and resetNonModularOptions().
◆ CXXABI ◆ GPUDefaultStream ◆ IsHeaderFile bool clang::LangOptions::IsHeaderFile = false ◆ LangStd ◆ MacroPrefixMap std::map<std::string, std::string, std::greater<std::string> > clang::LangOptions::MacroPrefixMap ◆ ModuleFeatures std::vector<std::string> clang::LangOptions::ModuleFeatures ◆ ModuleName std::string clang::LangOptions::ModuleName ◆ NoBuiltinFuncs std::vector<std::string> clang::LangOptions::NoBuiltinFuncs ◆ NoSanitizeFiles std::vector<std::string> clang::LangOptions::NoSanitizeFiles ◆ NoWasmOpt ◆ ObjCConstantStringClass std::string clang::LangOptions::ObjCConstantStringClassDefinition at line 541 of file LangOptions.h.
◆ ObjCRuntimeDefinition at line 537 of file LangOptions.h.
Referenced by clang::Sema::ActOnLastBitfield(), checkArithmeticOnObjCPointer(), checkLanguageOptions(), CheckObjCTraitOperandConstraints(), CheckProtocolMethodDefs(), clang::CodeGen::CreateGNUObjCRuntime(), DiagnoseUnimplementedAccessor(), EncodeBitField(), clang::CodeGen::CodeGenModule::GetAddrOfRTTIDescriptor(), clang::ASTNameGenerator::Implementation::getClassSymbolPrefix(), getObjCPersonality(), getObjCXXPersonality(), hasUnwindExceptions(), clang::SemaObjC::ImplMethodsVsClassMethods(), InitializePredefinedMacros(), clang::Sema::MaybeBindToTemporary(), setARCRuntimeFunctionLinkage(), tryEmitSpecializedAllocInit(), and UseOptimizedSetter().
◆ OMPHostIRFile std::string clang::LangOptions::OMPHostIRFile ◆ OMPTargetTriples std::vector<llvm::Triple> clang::LangOptions::OMPTargetTriples ◆ OpenACCMacroOverride std::string clang::LangOptions::OpenACCMacroOverride ◆ OverflowHandler std::string clang::LangOptions::OverflowHandlerThe name of the handler function to be called when -ftrapv is specified.
If none is specified, abort (GCC-compatible behaviour).
Definition at line 547 of file LangOptions.h.
◆ OverflowPatternExclusionMask unsigned clang::LangOptions::OverflowPatternExclusionMask = 0 ◆ OverflowPatternExclusionValues std::vector<std::string> clang::LangOptions::OverflowPatternExclusionValuesDefinition at line 602 of file LangOptions.h.
◆ ProfileListFiles std::vector<std::string> clang::LangOptions::ProfileListFilesPaths to special case list files specifying which entities (files, functions) should or should not be instrumented.
Definition at line 535 of file LangOptions.h.
◆ RandstructSeed std::string clang::LangOptions::RandstructSeed ◆ SanitizeSet of enabled sanitizers.
Definition at line 508 of file LangOptions.h.
Referenced by addKCFIPass(), addSanitizers(), checkLanguageOptions(), clang::CodeGen::CodeGenModule::CodeGenModule(), clang::CodeGen::CodeGenModule::CreateFunctionTypeMetadataForIcall(), clang::targets::getAppleMachODefines(), clang::CompilerInvocation::getModuleHash(), clang::CodeGen::CodeGenTBAA::getTypeInfo(), clang::RecordDecl::mayInsertExtraPadding(), clang::CodeGen::CodeGenModule::NeedAllVtablesTypeId(), clang::CodeGen::CodeGenModule::Release(), clang::CodeGen::CodeGenVTables::RemoveHwasanMetadata(), clang::CodeGen::SanitizerMetadata::reportGlobal(), and shouldEmitLifetimeMarkers().
◆ SanitizeCoverage bool clang::LangOptions::SanitizeCoverage = false ◆ UseTargetPathSeparator bool clang::LangOptions::UseTargetPathSeparator = falseIndicates whether to use target's platform-specific file separator when FILE macro is used and when concatenating filename with directory or to use build environment environment's platform-specific file separator.
The plaform-specific path separator is the backslash() for Windows and forward slash (/) elsewhere.
Definition at line 613 of file LangOptions.h.
Referenced by clang::Preprocessor::processPathForFileMacro().
◆ XRayAlwaysInstrumentFiles std::vector<std::string> clang::LangOptions::XRayAlwaysInstrumentFilesPaths to the XRay "always instrument" files specifying which objects (files, functions, variables) should be imbued with the XRay "always instrument" attribute.
WARNING: This is a deprecated field and will go away in the future.
Definition at line 520 of file LangOptions.h.
Referenced by resetNonModularOptions().
◆ XRayAttrListFiles std::vector<std::string> clang::LangOptions::XRayAttrListFilesPaths to the XRay attribute list files, specifying which objects (files, functions, variables) should be imbued with the appropriate XRay attribute(s).
Definition at line 531 of file LangOptions.h.
◆ XRayNeverInstrumentFiles std::vector<std::string> clang::LangOptions::XRayNeverInstrumentFilesPaths to the XRay "never instrument" files specifying which objects (files, functions, variables) should be imbued with the XRay "never instrument" attribute.
WARNING: This is a deprecated field and will go away in the future.
Definition at line 526 of file LangOptions.h.
Referenced by resetNonModularOptions().
The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4