Home
last modified time | relevance | path

Searched refs:LangOpts (Results 1 – 25 of 177) sorted by relevance

12345678

/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DFeatures.def14 // const LangOptions &LangOpts;
39 FEATURE(speculative_load_hardening, LangOpts.SpeculativeLoadHardening)
41 LangOpts.Sanitize.hasOneOf(SanitizerKind::Address |
44 LangOpts.Sanitize.has(SanitizerKind::Leak))
46 LangOpts.Sanitize.hasOneOf(SanitizerKind::HWAddress |
49 LangOpts.Sanitize.has(SanitizerKind::MemtagStack))
51 LangOpts.Sanitize.has(SanitizerKind::MemtagHeap))
53 LangOpts.Sanitize.has(SanitizerKind::MemtagGlobals))
54 FEATURE(xray_instrument, LangOpts.XRayInstrument)
56 LangOpts.Sanitize.hasOneOf(SanitizerKind::Undefined))
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DInitPreprocessor.cpp189 static void DefineFmt(const LangOptions &LangOpts, const Twine &Prefix, in DefineFmt() argument
202 if (LangOpts.C23 && !IsSigned) in DefineFmt()
232 static void DefineExactWidthIntType(const LangOptions &LangOpts, in DefineExactWidthIntType() argument
252 DefineFmt(LangOpts, Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineExactWidthIntType()
275 static void DefineLeastWidthIntType(const LangOptions &LangOpts, in DefineLeastWidthIntType() argument
291 DefineFmt(LangOpts, Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineLeastWidthIntType()
294 static void DefineFastIntType(const LangOptions &LangOpts, unsigned TypeWidth, in DefineFastIntType() argument
311 DefineFmt(LangOpts, Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineFastIntType()
331 static void AddObjCXXARCLibstdcxxDefines(const LangOptions &LangOpts, in AddObjCXXARCLibstdcxxDefines() argument
353 if (LangOpts.ObjCAutoRefCount) { in AddObjCXXARCLibstdcxxDefines()
[all …]
H A DASTUnit.cpp287 const LangOptions &LangOpts, in getDeclShowContexts() argument
301 if (LangOpts.CPlusPlus || !isa<TagDecl>(ND)) in getDeclShowContexts()
310 if (LangOpts.CPlusPlus) in getDeclShowContexts()
315 if (LangOpts.CPlusPlus || isa<ObjCInterfaceDecl>(ND)) in getDeclShowContexts()
332 if (LangOpts.CPlusPlus11) in getDeclShowContexts()
340 if (LangOpts.CPlusPlus) in getDeclShowContexts()
539 bool ReadLanguageOptions(const LangOptions &LangOpts, bool Complain, in ReadLanguageOptions() argument
550 LangOpt = LangOpts; in ReadLanguageOptions()
660 const LangOptions *LangOpts = nullptr; member in __anone37b80710211::FilterAndStoreDiagnosticConsumer
674 void BeginSourceFile(const LangOptions &LangOpts, in BeginSourceFile() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DIdentifierTable.cpp69 IdentifierTable::IdentifierTable(const LangOptions &LangOpts, in IdentifierTable() argument
74 AddKeywords(LangOpts); in IdentifierTable()
136 static KeywordStatus getKeywordStatusHelper(const LangOptions &LangOpts, in getKeywordStatusHelper() argument
144 if (LangOpts.C99) in getKeywordStatusHelper()
146 return !LangOpts.CPlusPlus ? KS_Future : KS_Unknown; in getKeywordStatusHelper()
148 if (LangOpts.C23) in getKeywordStatusHelper()
150 return !LangOpts.CPlusPlus ? KS_Future : KS_Unknown; in getKeywordStatusHelper()
152 return LangOpts.CPlusPlus ? KS_Enabled : KS_Unknown; in getKeywordStatusHelper()
154 if (LangOpts.CPlusPlus11) in getKeywordStatusHelper()
156 return LangOpts.CPlusPlus ? KS_Future : KS_Unknown; in getKeywordStatusHelper()
[all …]
H A DBuiltins.cpp77 const LangOptions &LangOpts) { in builtinIsSupported() argument
79 if (LangOpts.NoBuiltin && strchr(BuiltinInfo.Attributes, 'f') != nullptr) in builtinIsSupported()
82 if (!LangOpts.Coroutines && (BuiltinInfo.Langs & COR_LANG)) in builtinIsSupported()
85 if (LangOpts.NoMathBuiltin && BuiltinInfo.Header.ID == HeaderDesc::MATH_H) in builtinIsSupported()
88 if (!LangOpts.GNUMode && (BuiltinInfo.Langs & GNU_LANG)) in builtinIsSupported()
91 if (!LangOpts.MicrosoftExt && (BuiltinInfo.Langs & MS_LANG)) in builtinIsSupported()
94 if (!LangOpts.ObjC && BuiltinInfo.Langs == OBJC_LANG) in builtinIsSupported()
97 if (!LangOpts.OpenCL && (BuiltinInfo.Langs & ALL_OCL_LANGUAGES)) in builtinIsSupported()
100 if (!LangOpts.OpenCLGenericAddressSpace && (BuiltinInfo.Langs & OCL_GAS)) in builtinIsSupported()
103 if (!LangOpts.OpenCLPipes && (BuiltinInfo.Langs & OCL_PIPE)) in builtinIsSupported()
[all …]
H A DModule.cpp100 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument
103 .Case("altivec", LangOpts.AltiVec) in hasFeature()
104 .Case("blocks", LangOpts.Blocks) in hasFeature()
105 .Case("coroutines", LangOpts.Coroutines) in hasFeature()
106 .Case("cplusplus", LangOpts.CPlusPlus) in hasFeature()
107 .Case("cplusplus11", LangOpts.CPlusPlus11) in hasFeature()
108 .Case("cplusplus14", LangOpts.CPlusPlus14) in hasFeature()
109 .Case("cplusplus17", LangOpts.CPlusPlus17) in hasFeature()
110 .Case("cplusplus20", LangOpts.CPlusPlus20) in hasFeature()
111 .Case("cplusplus23", LangOpts.CPlusPlus23) in hasFeature()
[all …]
H A DAttributes.cpp24 const LangOptions &LangOpts) { in hasAttributeImpl() argument
33 const TargetInfo &Target, const LangOptions &LangOpts) { in hasAttribute() argument
53 if (LangOpts.OpenMP && ScopeName == "omp" && in hasAttribute()
57 int res = hasAttributeImpl(Syntax, Name, ScopeName, Target, LangOpts); in hasAttribute()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp78 bool Token::isSimpleTypeSpecifier(const LangOptions &LangOpts) const { in isSimpleTypeSpecifier()
115 return getIdentifierInfo()->isKeyword(LangOpts); in isSimpleTypeSpecifier()
188 LangOpts(PP.getLangOpts()), LineComment(LangOpts.LineComment), in Lexer()
202 : FileLoc(fileloc), LangOpts(langOpts), LineComment(LangOpts.LineComment), in Lexer()
222 if (LangOpts.TraditionalCPP) in resetExtendedTokenMode()
326 const LangOptions &LangOpts, char *Spelling) { in getSpellingSlow() argument
335 auto CharAndSize = Lexer::getCharAndSizeNoWarn(BufPtr, LangOpts); in getSpellingSlow()
364 auto CharAndSize = Lexer::getCharAndSizeNoWarn(BufPtr, LangOpts); in getSpellingSlow()
421 const LangOptions &LangOpts, bool *Invalid) { in getSpelling() argument
438 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin())); in getSpelling()
[all …]
H A DLiteralSupport.cpp903 const LangOptions &LangOpts, in NumericLiteralParser() argument
906 : SM(SM), LangOpts(LangOpts), Diags(Diags), in NumericLiteralParser()
937 !(LangOpts.HLSL && *ThisTokEnd == '.')) { in NumericLiteralParser()
963 if (LangOpts.FixedPoint) { in NumericLiteralParser()
985 if (!LangOpts.FixedPoint) in NumericLiteralParser()
993 if (!LangOpts.FixedPoint) in NumericLiteralParser()
1002 if (!(LangOpts.Half || LangOpts.FixedPoint)) in NumericLiteralParser()
1023 if ((Target.hasFloat16Type() || LangOpts.CUDA || in NumericLiteralParser()
1024 (LangOpts.OpenMPIsTargetDevice && Target.getTriple().isNVPTX())) && in NumericLiteralParser()
1074 if (LangOpts.MicrosoftExt && !isFPConstant) { in NumericLiteralParser()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp109 const LangOptions &LangOpts) { in getExpansionForSplitToken() argument
130 const LangOptions &LangOpts) { in getRangeForSplitTokens() argument
132 auto BeginToken = getExpansionForSplitToken(Range.getBegin(), SM, LangOpts); in getRangeForSplitTokens()
133 auto EndToken = getExpansionForSplitToken(Range.getEnd(), SM, LangOpts); in getRangeForSplitTokens()
154 const LangOptions &LangOpts, in getRange() argument
158 Range = Lexer::makeFileCharRange(EditRange, SM, LangOpts); in getRange()
160 auto AdjustedRange = getRangeForSplitTokens(EditRange, SM, LangOpts); in getRange()
168 E = Lexer::getLocForEndOfToken(E, 0, SM, LangOpts); in getRange()
176 const LangOptions &LangOpts, bool IncludeMacroExpansion) { in getFileRangeForEdit() argument
178 getRange(EditRange, SM, LangOpts, IncludeMacroExpansion); in getFileRangeForEdit()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h33 RecursiveSymbolVisitor(const SourceManager &SM, const LangOptions &LangOpts) in RecursiveSymbolVisitor() argument
34 : SM(SM), LangOpts(LangOpts) {} in RecursiveSymbolVisitor()
55 0, SM, LangOpts))) in VisitCXXConstructorDecl()
89 Lexer::getLocForEndOfToken(TypeBeginLoc, 0, SM, LangOpts); in VisitTypeLoc()
110 Lexer::getLocForEndOfToken(TL.getBeginLoc(), 0, SM, LangOpts); in VisitTypedefTypeLoc()
139 const LangOptions &LangOpts; variable
147 return visit(ND, Loc, Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts)); in visit()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DBackendUtil.cpp139 const LangOptions &LangOpts; member in __anon3496e3440111::EmitAssemblyHelper
216 TargetOpts(TOpts), LangOpts(LOpts), TheModule(M), VFS(std::move(VFS)), in EmitAssemblyHelper()
328 const LangOptions &LangOpts, in initTargetOptions() argument
330 switch (LangOpts.getThreadModel()) { in initTargetOptions()
351 switch (LangOpts.getDefaultFPContractMode()) { in initTargetOptions()
374 if (LangOpts.hasSjLjExceptions()) in initTargetOptions()
376 if (LangOpts.hasSEHExceptions()) in initTargetOptions()
378 if (LangOpts.hasDWARFExceptions()) in initTargetOptions()
380 if (LangOpts.hasWasmExceptions()) in initTargetOptions()
383 Options.NoInfsFPMath = LangOpts.NoHonorInfs; in initTargetOptions()
[all …]
H A DCoverageMappingGen.h160 const LangOptions &LangOpts; variable
166 const LangOptions &LangOpts) in CoverageMappingGen() argument
167 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(nullptr), in CoverageMappingGen()
171 const LangOptions &LangOpts, in CoverageMappingGen() argument
174 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(CounterMap), in CoverageMappingGen()
/freebsd/contrib/llvm-project/clang/include/clang/Edit/
H A DEditedSource.h37 const LangOptions &LangOpts; variable
73 EditedSource(const SourceManager &SM, const LangOptions &LangOpts,
75 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), IdentTable(LangOpts) {} in SourceMgr()
78 const LangOptions &getLangOpts() const { return LangOpts; } in getLangOpts()
/freebsd/contrib/llvm-project/clang/lib/Edit/
H A DEditedSource.cpp48 Buf, SourceMgr, LangOpts); in deconstructMacroArgLoc()
314 static bool canBeJoined(char left, char right, const LangOptions &LangOpts) { in canBeJoined() argument
317 return !(Lexer::isAsciiIdentifierContinueChar(left, LangOpts) && in canBeJoined()
318 Lexer::isAsciiIdentifierContinueChar(right, LangOpts)); in canBeJoined()
324 const LangOptions &LangOpts) { in canRemoveWhitespace() argument
325 if (!canBeJoined(left, right, LangOpts)) in canRemoveWhitespace()
329 if (canBeJoined(beforeWSpace, right, LangOpts)) in canRemoveWhitespace()
337 static void adjustRemoval(const SourceManager &SM, const LangOptions &LangOpts, in adjustRemoval() argument
341 SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts); in adjustRemoval()
373 LangOpts)) in adjustRemoval()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp22 LangOptions LangOpts; in createLangOpts() local
23 LangOpts.CPlusPlus = 1; in createLangOpts()
24 LangOpts.CPlusPlus11 = 1; in createLangOpts()
25 LangOpts.CPlusPlus14 = 1; in createLangOpts()
26 LangOpts.LineComment = 1; in createLangOpts()
27 LangOpts.CXXOperatorNames = 1; in createLangOpts()
28 LangOpts.Bool = 1; in createLangOpts()
29 LangOpts.ObjC = 1; in createLangOpts()
30 LangOpts.MicrosoftExt = 1; // To get kw___try, kw___finally. in createLangOpts()
31 LangOpts.DeclSpecKeyword = 1; // To get __declspec. in createLangOpts()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp23 const LangOptions &LangOpts) { in isSemicolonAtLocation() argument
26 LangOpts) == ";"; in isSemicolonAtLocation()
75 const LangOptions &LangOpts) { in compute() argument
99 if (isSemicolonAtLocation(End, SM, LangOpts)) in compute()
104 std::optional<Token> NextToken = Lexer::findNextToken(End, SM, LangOpts); in compute()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DCreateCheckerManager.cpp24 : Context(&Context), LangOpts(Context.getLangOpts()), AOptions(AOptions), in CheckerManager()
35 const LangOptions &LangOpts, in CheckerManager() argument
38 : LangOpts(LangOpts), AOptions(AOptions), Diags(Diags), in CheckerManager()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Syntax/
H A DTokenBufferTokenManager.h23 const LangOptions &LangOpts, SourceManager &SourceMgr) in TokenBufferTokenManager() argument
24 : Tokens(Tokens), LangOpts(LangOpts), SM(SourceMgr) {} in TokenBufferTokenManager()
59 const LangOptions &LangOpts; variable
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DIssueHash.cpp138 const LangOptions &LangOpts) { in NormalizeLine() argument
158 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(StartOfLine)), LangOpts, in NormalizeLine()
189 const LangOptions &LangOpts) { in getIssueString() argument
195 NormalizeLine(IssueLoc.getManager(), IssueLoc, LangOpts) + in getIssueString()
204 const LangOptions &LangOpts) { in getIssueHash() argument
207 IssueLoc, CheckerName, WarningMessage, IssueDecl, LangOpts)); in getIssueHash()
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DCompilerInvocation.h77 std::shared_ptr<LangOptions> LangOpts;
131 const LangOptions &getLangOpts() const { return *LangOpts; } in getLangOpts()
200 const LangOptions *LangOpts);
249 LangOptions &getLangOpts() { return *LangOpts; } in getLangOpts()
270 using CompilerInvocationBase::LangOpts;
279 std::shared_ptr<LangOptions> getLangOptsPtr() { return LangOpts; } in getLangOptsPtr()
314 const LangOptions &LangOpts,
H A DDiagnosticRenderer.h49 const LangOptions &LangOpts;
71 DiagnosticRenderer(const LangOptions &LangOpts,
144 DiagnosticNoteRenderer(const LangOptions &LangOpts, in DiagnosticNoteRenderer() argument
146 : DiagnosticRenderer(LangOpts, DiagOpts) {} in DiagnosticNoteRenderer()
/freebsd/contrib/llvm-project/clang/lib/Testing/
H A DTestAST.cpp29 LangOptions LangOpts; member in clang::__anon7849d00f0111::StoreDiagnostics
35 void BeginSourceFile(const LangOptions &LangOpts, in BeginSourceFile() argument
37 this->LangOpts = LangOpts; in BeginSourceFile()
46 TextDiagnostic Renderer(OS, LangOpts, in HandleDiagnostic()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DODRDiagsEmitter.h23 const LangOptions &LangOpts) in ODRDiagsEmitter() argument
24 : Diags(Diags), Context(Context), LangOpts(LangOpts) {} in ODRDiagsEmitter()
198 const LangOptions &LangOpts; variable
/freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Core/
H A DRewriter.h34 const LangOptions *LangOpts = nullptr; variable
70 : SourceMgr(&SM), LangOpts(&LO) {} in Rewriter()
74 LangOpts = &LO; in setSourceMgr()
78 const LangOptions &getLangOpts() const { return *LangOpts; } in getLangOpts()

12345678