Home
last modified time | relevance | path

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

123456789

/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 …]
H A DAttributes.h24 const LangOptions &LangOpts, bool CheckPlugins);
28 const TargetInfo &Target, const LangOptions &LangOpts);
32 const TargetInfo &Target, const LangOptions &LangOpts,
/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()
277 static void DefineLeastWidthIntType(const LangOptions &LangOpts, in DefineLeastWidthIntType() argument
293 DefineFmt(LangOpts, Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineLeastWidthIntType()
296 static void DefineFastIntType(const LangOptions &LangOpts, unsigned TypeWidth, in DefineFastIntType() argument
313 DefineFmt(LangOpts, Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineFastIntType()
333 static void AddObjCXXARCLibstdcxxDefines(const LangOptions &LangOpts, in AddObjCXXARCLibstdcxxDefines() argument
355 if (LangOpts.ObjCAutoRefCount) { in AddObjCXXARCLibstdcxxDefines()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DIdentifierTable.cpp68 IdentifierTable::IdentifierTable(const LangOptions &LangOpts, in IdentifierTable() argument
73 AddKeywords(LangOpts); in IdentifierTable()
137 static KeywordStatus getKeywordStatusHelper(const LangOptions &LangOpts, in getKeywordStatusHelper() argument
145 if (LangOpts.C99) in getKeywordStatusHelper()
147 return !LangOpts.CPlusPlus ? KS_Future : KS_Unknown; in getKeywordStatusHelper()
149 if (LangOpts.C23) in getKeywordStatusHelper()
151 return !LangOpts.CPlusPlus ? KS_Future : KS_Unknown; in getKeywordStatusHelper()
153 return LangOpts.CPlusPlus ? KS_Enabled : KS_Unknown; in getKeywordStatusHelper()
155 if (LangOpts.CPlusPlus11) in getKeywordStatusHelper()
157 return LangOpts.CPlusPlus ? KS_Future : KS_Unknown; in getKeywordStatusHelper()
[all …]
H A DBuiltins.cpp141 const LangOptions &LangOpts) { in builtinIsSupported() argument
145 if (LangOpts.NoBuiltin && strchr(AttributesStr.data(), 'f') != nullptr) in builtinIsSupported()
148 if (!LangOpts.Coroutines && (BuiltinInfo.Langs & COR_LANG)) in builtinIsSupported()
151 if (LangOpts.NoMathBuiltin && BuiltinInfo.Header.ID == HeaderDesc::MATH_H) in builtinIsSupported()
154 if (!LangOpts.GNUMode && (BuiltinInfo.Langs & GNU_LANG)) in builtinIsSupported()
157 if (!LangOpts.MicrosoftExt && (BuiltinInfo.Langs & MS_LANG)) in builtinIsSupported()
160 if (!LangOpts.HLSL && (BuiltinInfo.Langs & HLSL_LANG)) in builtinIsSupported()
163 if (!LangOpts.ObjC && BuiltinInfo.Langs == OBJC_LANG) in builtinIsSupported()
166 if (!LangOpts.OpenCL && (BuiltinInfo.Langs & ALL_OCL_LANGUAGES)) in builtinIsSupported()
169 if (!LangOpts.OpenCLGenericAddressSpace && (BuiltinInfo.Langs & OCL_GAS)) in builtinIsSupported()
[all …]
H A DModule.cpp95 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument
98 .Case("altivec", LangOpts.AltiVec) in hasFeature()
99 .Case("blocks", LangOpts.Blocks) in hasFeature()
100 .Case("coroutines", LangOpts.Coroutines) in hasFeature()
101 .Case("cplusplus", LangOpts.CPlusPlus) in hasFeature()
102 .Case("cplusplus11", LangOpts.CPlusPlus11) in hasFeature()
103 .Case("cplusplus14", LangOpts.CPlusPlus14) in hasFeature()
104 .Case("cplusplus17", LangOpts.CPlusPlus17) in hasFeature()
105 .Case("cplusplus20", LangOpts.CPlusPlus20) in hasFeature()
106 .Case("cplusplus23", LangOpts.CPlusPlus23) in hasFeature()
[all …]
H A DAttributes.cpp46 const LangOptions &LangOpts) { in hasAttributeImpl() argument
53 const LangOptions &LangOpts, bool CheckPlugins) { in hasAttribute() argument
64 if (LangOpts.OpenMP && ScopeName == "omp" && in hasAttribute()
68 int res = hasAttributeImpl(Syntax, Name, ScopeName, Target, LangOpts); in hasAttribute()
84 const TargetInfo &Target, const LangOptions &LangOpts, in hasAttribute() argument
87 Target, LangOpts, CheckPlugins); in hasAttribute()
92 const TargetInfo &Target, const LangOptions &LangOpts) { in hasAttribute() argument
93 return hasAttribute(Syntax, Scope, Attr, Target, LangOpts, in hasAttribute()
276 const LangOptions &LangOpts) const { in tryGetCorrectedAttrName()
284 LangOpts, in tryGetCorrectedAttrName()
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DLexer.h103 const LangOptions &LangOpts; variable
173 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts,
181 const SourceManager &SM, const LangOptions &LangOpts,
255 assert((!Val || LexingRawMode || LangOpts.TraditionalCPP) && in SetKeepWhitespaceMode()
340 const LangOptions &LangOpts,
350 const LangOptions &LangOpts,
373 const LangOptions &LangOpts);
379 const LangOptions &LangOpts,
387 const LangOptions &LangOpts);
394 const LangOptions &LangOpts);
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DFixitUtil.cpp23 const LangOptions &LangOpts, in getPointeeTypeText() argument
70 Lexer::getLocForEndOfToken(PteTyLoc.getEndLoc(), 0, SM, LangOpts); in getPointeeTypeText()
92 return getRangeText({PteTyLoc.getBeginLoc(), PteEndOfTokenLoc}, SM, LangOpts) in getPointeeTypeText()
99 const LangOptions &LangOpts, in getPointee2TypeText() argument
152 Lexer::getLocForEndOfToken(PteTyLoc.getEndLoc(), 0, SM, LangOpts); in getPointee2TypeText()
173 return getRangeText({PteTyLoc.getBeginLoc(), PteEndOfTokenLoc}, SM, LangOpts) in getPointee2TypeText()
187 const LangOptions &LangOpts) { in getRangeText() argument
190 StringRef Text = Lexer::getSourceText(CSR, SM, LangOpts, &Invalid); in getRangeText()
201 const LangOptions &LangOpts) { in getVarDeclIdentifierText() argument
204 Lexer::getLocForEndOfToken(getVarDeclIdentifierLoc(VD), 0, SM, LangOpts); in getVarDeclIdentifierText()
[all …]
H A DIssueHash.cpp134 const LangOptions &LangOpts) { in NormalizeLine() argument
154 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(StartOfLine)), LangOpts, in NormalizeLine()
185 const LangOptions &LangOpts) { in getIssueString() argument
191 NormalizeLine(IssueLoc.getManager(), IssueLoc, LangOpts) + in getIssueString()
200 const LangOptions &LangOpts) { in getIssueHash() argument
203 IssueLoc, CheckerName, WarningMessage, IssueDecl, LangOpts)); in getIssueHash()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp77 bool Token::isSimpleTypeSpecifier(const LangOptions &LangOpts) const { in isSimpleTypeSpecifier()
114 return getIdentifierInfo()->isKeyword(LangOpts); in isSimpleTypeSpecifier()
187 LangOpts(PP.getLangOpts()), LineComment(LangOpts.LineComment), in Lexer()
201 : FileLoc(fileloc), LangOpts(langOpts), LineComment(LangOpts.LineComment), in Lexer()
221 if (LangOpts.TraditionalCPP) in resetExtendedTokenMode()
325 const LangOptions &LangOpts, char *Spelling) { in getSpellingSlow() argument
334 auto CharAndSize = Lexer::getCharAndSizeNoWarn(BufPtr, LangOpts); in getSpellingSlow()
363 auto CharAndSize = Lexer::getCharAndSizeNoWarn(BufPtr, LangOpts); in getSpellingSlow()
420 const LangOptions &LangOpts, bool *Invalid) { in getSpelling() argument
437 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin())); in getSpelling()
[all …]
H A DLiteralSupport.cpp901 const LangOptions &LangOpts, in NumericLiteralParser() argument
904 : SM(SM), LangOpts(LangOpts), Diags(Diags), in NumericLiteralParser()
935 !(LangOpts.HLSL && *ThisTokEnd == '.')) { in NumericLiteralParser()
961 if (LangOpts.FixedPoint) { in NumericLiteralParser()
983 if (!LangOpts.FixedPoint) in NumericLiteralParser()
991 if (!LangOpts.FixedPoint) in NumericLiteralParser()
1000 if (!(LangOpts.Half || LangOpts.FixedPoint)) in NumericLiteralParser()
1021 if ((Target.hasFloat16Type() || LangOpts.CUDA || in NumericLiteralParser()
1022 (LangOpts.OpenMPIsTargetDevice && Target.getTriple().isNVPTX())) && in NumericLiteralParser()
1072 if (LangOpts.MicrosoftExt && s + 1 < ThisTokEnd && !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/Analysis/Support/
H A DFixitUtil.h28 const LangOptions &LangOpts,
34 const LangOptions &LangOpts,
41 const LangOptions &LangOpts);
46 const LangOptions &LangOpts);
50 const LangOptions &LangOpts);
56 const LangOptions &LangOpts) { in getPastLoc() argument
58 Lexer::getLocForEndOfToken(Node->getEndLoc(), 0, SM, LangOpts); in getPastLoc()
/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.cpp145 const LangOptions &LangOpts; member in __anon3496e3440111::EmitAssemblyHelper
217 TargetOpts(CI.getTargetOpts()), LangOpts(CI.getLangOpts()), in EmitAssemblyHelper()
364 const auto &LangOpts = CI.getLangOpts(); in initTargetOptions() local
366 switch (LangOpts.getThreadModel()) { in initTargetOptions()
387 switch (LangOpts.getDefaultFPContractMode()) { in initTargetOptions()
410 if (LangOpts.hasSjLjExceptions()) in initTargetOptions()
412 if (LangOpts.hasSEHExceptions()) in initTargetOptions()
414 if (LangOpts.hasDWARFExceptions()) in initTargetOptions()
416 if (LangOpts.hasWasmExceptions()) in initTargetOptions()
419 Options.NoInfsFPMath = LangOpts.NoHonorInfs; in initTargetOptions()
[all …]
H A DCoverageMappingGen.h161 const LangOptions &LangOpts; variable
167 const LangOptions &LangOpts) in CoverageMappingGen() argument
168 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(nullptr), in CoverageMappingGen()
172 const LangOptions &LangOpts, in CoverageMappingGen() argument
175 : 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.cpp46 Buf, SourceMgr, LangOpts); in deconstructMacroArgLoc()
312 static bool canBeJoined(char left, char right, const LangOptions &LangOpts) { in canBeJoined() argument
315 return !(Lexer::isAsciiIdentifierContinueChar(left, LangOpts) && in canBeJoined()
316 Lexer::isAsciiIdentifierContinueChar(right, LangOpts)); in canBeJoined()
322 const LangOptions &LangOpts) { in canRemoveWhitespace() argument
323 if (!canBeJoined(left, right, LangOpts)) in canRemoveWhitespace()
327 if (canBeJoined(beforeWSpace, right, LangOpts)) in canRemoveWhitespace()
335 static void adjustRemoval(const SourceManager &SM, const LangOptions &LangOpts, in adjustRemoval() argument
339 SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts); in adjustRemoval()
371 LangOpts)) in adjustRemoval()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp21 LangOptions LangOpts; in createLangOpts() local
22 LangOpts.CPlusPlus = 1; in createLangOpts()
23 LangOpts.CPlusPlus11 = 1; in createLangOpts()
24 LangOpts.CPlusPlus14 = 1; in createLangOpts()
25 LangOpts.LineComment = 1; in createLangOpts()
26 LangOpts.CXXOperatorNames = 1; in createLangOpts()
27 LangOpts.Bool = 1; in createLangOpts()
28 LangOpts.ObjC = 1; in createLangOpts()
29 LangOpts.MicrosoftExt = 1; // To get kw___try, kw___finally. in createLangOpts()
30 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.cpp27 : Context(&Context), LangOpts(Context.getLangOpts()), AOptions(AOptions), in CheckerManager()
37 const LangOptions &LangOpts, in CheckerManager() argument
40 : 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/include/clang/AST/
H A DASTStructuralEquivalence.h47 const LangOptions &LangOpts; member
82 StructuralEquivalenceContext(const LangOptions &LangOpts, ASTContext &FromCtx,
90 : LangOpts(LangOpts), FromCtx(FromCtx), ToCtx(ToCtx), in LangOpts() function
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypeChecker.cpp102 const LangOptions &LangOpts = BRC.getASTContext().getLangOpts(); in VisitNode() local
108 LangOpts, llvm::Twine()); in VisitNode()
114 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode()
117 LangOpts, llvm::Twine()); in VisitNode()
122 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode()
125 LangOpts, llvm::Twine()); in VisitNode()

123456789