Home
last modified time | relevance | path

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

12345678

/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DFeatures.def14 // const LangOptions &LangOpts;
88 FEATURE(blocks, LangOpts.Blocks)
91 FEATURE(cxx_rtti, LangOpts.RTTI &&LangOpts.RTTIData)
116 FEATURE(objc_kindof, LangOpts.ObjC)
117 FEATURE(objc_modules, LangOpts.ObjC && LangOpts.Modules)
141 FEATURE(c_alignas, LangOpts.C11)
142 FEATURE(c_alignof, LangOpts.C11)
143 FEATURE(c_atomic, LangOpts.C11)
228 FEATURE(is_sealed, LangOpts.CPlusPlus &&LangOpts.MicrosoftExt)
235 FEATURE(modules, LangOpts.Modules)
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/
H A DInitPreprocessor.cpp449 else if (!LangOpts.GNUMode && LangOpts.Digraphs) in InitializeStandardPredefinedMacros()
560 if (LangOpts.SYCLIsDevice || LangOpts.SYCLIsHost) { in InitializeStandardPredefinedMacros()
857 if (!LangOpts.GNUMode && !LangOpts.MSVCCompat) in InitializePredefinedMacros()
860 if (LangOpts.GNUCVersion && LangOpts.CPlusPlus11) in InitializePredefinedMacros()
932 if (!LangOpts.MSVCCompat && LangOpts.Exceptions) in InitializePredefinedMacros()
934 if (LangOpts.GNUCVersion && LangOpts.RTTI) in InitializePredefinedMacros()
948 if (!LangOpts.MSVCCompat && LangOpts.CPlusPlus) in InitializePredefinedMacros()
1187 if (LangOpts.FastMath || LangOpts.FiniteMathOnly) in InitializePredefinedMacros()
1193 if (LangOpts.GNUInline || LangOpts.CPlusPlus) in InitializePredefinedMacros()
1318 if (LangOpts.CUDAIsDevice && !LangOpts.HIP) { in InitializePredefinedMacros()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Basic/
H A DIdentifierTable.cpp74 AddKeywords(LangOpts); in IdentifierTable()
144 if (LangOpts.C99) in getKeywordStatusHelper()
148 if (LangOpts.C23) in getKeywordStatusHelper()
154 if (LangOpts.CPlusPlus11) in getKeywordStatusHelper()
158 if (LangOpts.CPlusPlus20) in getKeywordStatusHelper()
173 return LangOpts.OpenCL && !LangOpts.OpenCLCPlusPlus ? KS_Enabled in getKeywordStatusHelper()
307 if (LangOpts.ObjC) \ in AddKeywords()
319 if (LangOpts.DeclSpecKeyword) in AddKeywords()
322 if (LangOpts.IEEE128) in AddKeywords()
357 if (!LangOpts.CPlusPlus || !isKeyword(LangOpts)) in isCPlusPlusKeyword()
[all …]
H A DBuiltins.cpp77 const LangOptions &LangOpts) { in builtinIsSupported() argument
82 if (!LangOpts.Coroutines && (BuiltinInfo.Langs & COR_LANG)) in builtinIsSupported()
88 if (!LangOpts.GNUMode && (BuiltinInfo.Langs & GNU_LANG)) in builtinIsSupported()
94 if (!LangOpts.ObjC && BuiltinInfo.Langs == OBJC_LANG) in builtinIsSupported()
110 if ((LangOpts.getOpenCLCompatibleVersion() < 200 || !LangOpts.Blocks) && in builtinIsSupported()
114 if (!LangOpts.OpenMP && BuiltinInfo.Langs == OMP_LANG) in builtinIsSupported()
117 if (!LangOpts.CUDA && BuiltinInfo.Langs == CUDA_LANG) in builtinIsSupported()
120 if (!LangOpts.CPlusPlus && BuiltinInfo.Langs == CXX_LANG) in builtinIsSupported()
132 if (builtinIsSupported(BuiltinInfo[i], LangOpts)) { in initializeBuiltins()
138 if (builtinIsSupported(TSRecords[i], LangOpts)) in initializeBuiltins()
[all …]
H A DModule.cpp103 .Case("altivec", LangOpts.AltiVec) in hasFeature()
104 .Case("blocks", LangOpts.Blocks) in hasFeature()
113 .Case("c99", LangOpts.C99) in hasFeature()
114 .Case("c11", LangOpts.C11) in hasFeature()
115 .Case("c17", LangOpts.C17) in hasFeature()
116 .Case("c23", LangOpts.C23) in hasFeature()
119 .Case("objc", LangOpts.ObjC) in hasFeature()
121 .Case("opencl", LangOpts.OpenCL) in hasFeature()
131 bool Module::isUnimportable(const LangOptions &LangOpts, in isUnimportable() argument
162 StringRef CurrentModule = LangOpts.CurrentModule; in isForBuilding()
[all …]
H A DAttributes.cpp24 const LangOptions &LangOpts) { in hasAttributeImpl() argument
33 const TargetInfo &Target, const LangOptions &LangOpts) { in hasAttribute() argument
50 if (LangOpts.OpenMP && ScopeName == "omp") in hasAttribute()
53 int res = hasAttributeImpl(Syntax, Name, ScopeName, Target, LangOpts); in hasAttribute()
/freebsd-14.2/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,
442 ? getAsCharRange(Range.getAsRange(), SM, LangOpts) in getAsCharRange()
499 const LangOptions &LangOpts,
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp143 LangOpts(PP.getLangOpts()), LineComment(LangOpts.LineComment), in Lexer()
157 : FileLoc(fileloc), LangOpts(langOpts), LineComment(LangOpts.LineComment), in Lexer()
1520 } else if (LangOpts.CPlusPlus || LangOpts.C23) { in isAllowedIDChar()
1549 if (LangOpts.CPlusPlus || LangOpts.C23) { in isAllowedInitiallyIDChar()
2004 if (!LangOpts.MicrosoftExt || !isHexaLiteral(BufferPtr, LangOpts)) in LexNumericConstant()
2026 if (C == '\'' && (LangOpts.CPlusPlus14 || LangOpts.C23)) { in LexNumericConstant()
3347 if (!LangOpts.CPlusPlus && !LangOpts.C99) { in tryReadNumericUCN()
3591 if (LangOpts.CPlusPlus && !LangOpts.CPlusPlus11) in tryReadUCN()
3809 if (LangOpts.CPlusPlus11 || LangOpts.C11) { in LexTokenInternal()
3839 if (Char2 == '\'' && (LangOpts.CPlusPlus17 || LangOpts.C23)) in LexTokenInternal()
[all …]
H A DLiteralSupport.cpp906 : SM(SM), LangOpts(LangOpts), Diags(Diags), in NumericLiteralParser()
963 if (LangOpts.FixedPoint) { in NumericLiteralParser()
984 if (!LangOpts.FixedPoint) in NumericLiteralParser()
992 if (!LangOpts.FixedPoint) in NumericLiteralParser()
1001 if (!(LangOpts.Half || LangOpts.FixedPoint)) in NumericLiteralParser()
1248 if (!LangOpts.CPlusPlus14) in isValidUDSuffix()
1258 .Cases("d", "y", LangOpts.CPlusPlus20) in isValidUDSuffix()
1317 << LangOpts.CPlusPlus << 1; in ParseNumberStartingWithZero()
1343 if (!LangOpts.HexFloats) in ParseNumberStartingWithZero()
1347 else if (LangOpts.CPlusPlus17) in ParseNumberStartingWithZero()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp106 const LangOptions &LangOpts, in getRange() argument
110 Range = Lexer::makeFileCharRange(EditRange, SM, LangOpts); in getRange()
119 E = Lexer::getLocForEndOfToken(E, 0, SM, LangOpts); in getRange()
127 const LangOptions &LangOpts, bool IncludeMacroExpansion) { in getFileRangeForEdit() argument
129 getRange(EditRange, SM, LangOpts, IncludeMacroExpansion); in getFileRangeForEdit()
138 const LangOptions &LangOpts, bool IncludeMacroExpansion) { in getFileRange() argument
168 const LangOptions &LangOpts) { in getEntityEndLoc() argument
346 bool Failed = Lexer::getRawToken(Loc, Tok, SM, LangOpts, in atOrBeforeSeparation()
366 const LangOptions &LangOpts = Context.getLangOpts(); in getAssociatedRange() local
401 LangOpts) && in getAssociatedRange()
[all …]
/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DBackendUtil.cpp128 const LangOptions &LangOpts; member in __anone6c0d8fa0111::EmitAssemblyHelper
319 switch (LangOpts.getThreadModel()) { in initTargetOptions()
365 if (LangOpts.hasSjLjExceptions()) in initTargetOptions()
367 if (LangOpts.hasSEHExceptions()) in initTargetOptions()
369 if (LangOpts.hasDWARFExceptions()) in initTargetOptions()
371 if (LangOpts.hasWasmExceptions()) in initTargetOptions()
377 Options.UnsafeFPMath = LangOpts.AllowFPReassoc && LangOpts.AllowRecip && in initTargetOptions()
378 LangOpts.NoSignedZero && LangOpts.ApproxFunc && in initTargetOptions()
925 if (LangOpts.ObjCAutoRefCount) { in RunOptimizationPipeline()
1093 if (LangOpts.HIPStdPar && !LangOpts.CUDAIsDevice && in RunOptimizationPipeline()
[all …]
H A DCoverageMappingGen.h151 const LangOptions &LangOpts; variable
158 const LangOptions &LangOpts) in CoverageMappingGen() argument
159 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(nullptr), in CoverageMappingGen()
163 const LangOptions &LangOpts, in CoverageMappingGen() argument
167 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(CounterMap), in CoverageMappingGen()
/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/Edit/
H A DEditedSource.cpp48 Buf, SourceMgr, LangOpts); in deconstructMacroArgLoc()
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()
373 LangOpts)) in adjustRemoval()
378 if (!canBeJoined(buffer[begin-1], buffer[end], LangOpts)) in adjustRemoval()
392 adjustRemoval(SM, LangOpts, Loc, offs, len, text); in applyRewrite()
445 applyRewrite(receiver, StrVec, CurOffs, CurLen, SourceMgr, LangOpts, in applyRewrites()
[all …]
/freebsd-14.2/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()
33 return LangOpts; in createLangOpts()
46 LangOptions LangOpts = createLangOpts(); in getOffsetAfterTokenSequence() local
[all …]
/freebsd-14.2/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-14.2/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-14.2/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-14.2/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()
H A DUnsafeBufferUsage.cpp1468 const LangOptions &LangOpts) { in getEndCharLoc() argument
1499 LangOpts); in getExprText()
1583 const LangOptions &LangOpts, in getPointeeTypeText() argument
1730 getPastLoc(AddOp, SM, LangOpts); in getFixits()
1732 getPastLoc(DerefOp, SM, LangOpts); in getFixits()
1945 getEndCharLoc(Init, SM, LangOpts); in FixVarInitializerWithSpan()
2187 [&SM, &LangOpts, &NewTysTexts, in createOverloadsForFixedParams()
2196 SM, LangOpts)) in createOverloadsForFixedParams()
2217 SM, LangOpts)) { in createOverloadsForFixedParams()
2232 [&Handler, &SM, &LangOpts, &NewTysTexts, in createOverloadsForFixedParams()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypeChecker.cpp104 const LangOptions &LangOpts = BRC.getASTContext().getLangOpts(); in VisitNode() local
110 LangOpts, llvm::Twine()); in VisitNode()
116 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode()
119 LangOpts, llvm::Twine()); in VisitNode()
124 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode()
127 LangOpts, llvm::Twine()); in VisitNode()
/freebsd-14.2/contrib/llvm-project/clang/lib/Testing/
H A DTestAST.cpp28 LangOptions LangOpts; member in clang::__anone8e15ac50111::StoreDiagnostics
34 void BeginSourceFile(const LangOptions &LangOpts, in BeginSourceFile() argument
36 this->LangOpts = LangOpts; in BeginSourceFile()
45 TextDiagnostic Renderer(OS, LangOpts, in HandleDiagnostic()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Frontend/
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-14.2/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

12345678