Home
last modified time | relevance | path

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

1234567

/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DFeatures.def14 // const LangOptions &LangOpts;
82 FEATURE(blocks, LangOpts.Blocks)
85 FEATURE(cxx_rtti, LangOpts.RTTI &&LangOpts.RTTIData)
107 FEATURE(objc_kindof, LangOpts.ObjC)
108 FEATURE(objc_modules, LangOpts.ObjC && LangOpts.Modules)
132 FEATURE(c_alignas, LangOpts.C11)
133 FEATURE(c_alignof, LangOpts.C11)
134 FEATURE(c_atomic, LangOpts.C11)
219 FEATURE(is_sealed, LangOpts.CPlusPlus &&LangOpts.MicrosoftExt)
225 FEATURE(modules, LangOpts.Modules)
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DInitPreprocessor.cpp380 else if (!LangOpts.GNUMode && LangOpts.Digraphs) in InitializeStandardPredefinedMacros()
493 if (LangOpts.CUDA && !LangOpts.HIP) in InitializeStandardPredefinedMacros()
705 if (!LangOpts.GNUMode && !LangOpts.MSVCCompat) in InitializePredefinedMacros()
708 if (LangOpts.GNUCVersion && LangOpts.CPlusPlus11) in InitializePredefinedMacros()
786 if (!LangOpts.MSVCCompat && LangOpts.Exceptions) in InitializePredefinedMacros()
788 if (LangOpts.GNUCVersion && LangOpts.RTTI) in InitializePredefinedMacros()
802 if (!LangOpts.MSVCCompat && LangOpts.CPlusPlus) in InitializePredefinedMacros()
1028 if (LangOpts.GNUInline || LangOpts.CPlusPlus) in InitializePredefinedMacros()
1152 if (LangOpts.CUDAIsDevice && !LangOpts.HIP) { in InitializePredefinedMacros()
1213 if ((LangOpts.CUDA || LangOpts.OpenMPIsDevice || LangOpts.SYCLIsDevice) && in InitializePreprocessor()
[all …]
H A DASTUnit.cpp311 if (LangOpts.CPlusPlus) in getDeclShowContexts()
332 if (LangOpts.CPlusPlus11) in getDeclShowContexts()
340 if (LangOpts.CPlusPlus) in getDeclShowContexts()
543 LangOpt = LangOpts; in ReadLanguageOptions()
633 this->LangOpts = &LangOpts; in BeginSourceFile()
1167 LangOpts = Clang->getInvocation().LangOpts; in Parse()
1440 LangOpts = CI.getInvocation().LangOpts; in transferASTDataFromCompilerInstance()
2159 LangOpts.SpellChecking = false; in CodeComplete()
2646 if (LangOpts.OpenCL) in getInputKind()
2648 else if (LangOpts.CUDA) in getInputKind()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Basic/
H A DIdentifierTable.cpp75 AddKeywords(LangOpts); in IdentifierTable()
145 if (LangOpts.OpenCL && !LangOpts.OpenCLCPlusPlus && (Flags & KEYOPENCLC)) in getKeywordStatus()
157 if (LangOpts.CPlusPlus && !LangOpts.CPlusPlus20 && (Flags & CHAR8SUPPORT)) in getKeywordStatus()
213 FLAGS, LangOpts, *this); in AddKeywords()
216 FLAGS, LangOpts, *this); in AddKeywords()
221 if (LangOpts.ObjC) \ in AddKeywords()
226 if (LangOpts.ParseUnknownAnytype) in AddKeywords()
228 LangOpts, *this); in AddKeywords()
230 if (LangOpts.DeclSpecKeyword) in AddKeywords()
233 if (LangOpts.IEEE128) in AddKeywords()
[all …]
H A DBuiltins.cpp59 const LangOptions &LangOpts) { in builtinIsSupported() argument
61 (LangOpts.NoBuiltin || LangOpts.isNoBuiltinFunc(BuiltinInfo.Name)) && in builtinIsSupported()
64 !LangOpts.Coroutines && (BuiltinInfo.Langs & COR_LANG); in builtinIsSupported()
66 LangOpts.NoMathBuiltin && BuiltinInfo.HeaderName && in builtinIsSupported()
70 !LangOpts.MicrosoftExt && (BuiltinInfo.Langs & MS_LANG); in builtinIsSupported()
72 bool OclC1Unsupported = (LangOpts.OpenCLVersion / 100) != 1 && in builtinIsSupported()
75 (LangOpts.OpenCLVersion != 200 && !LangOpts.OpenCLCPlusPlus) && in builtinIsSupported()
77 bool OclCUnsupported = !LangOpts.OpenCL && in builtinIsSupported()
82 !LangOpts.CPlusPlus && BuiltinInfo.Langs == CXX_LANG; in builtinIsSupported()
97 if (builtinIsSupported(BuiltinInfo[i], LangOpts)) { in initializeBuiltins()
[all …]
H A DModule.cpp104 .Case("altivec", LangOpts.AltiVec) in hasFeature()
105 .Case("blocks", LangOpts.Blocks) in hasFeature()
111 .Case("c99", LangOpts.C99) in hasFeature()
112 .Case("c11", LangOpts.C11) in hasFeature()
113 .Case("c17", LangOpts.C17) in hasFeature()
116 .Case("objc", LangOpts.ObjC) in hasFeature()
118 .Case("opencl", LangOpts.OpenCL) in hasFeature()
120 .Case("zvector", LangOpts.ZVector) in hasFeature()
125 LangOpts.ModuleFeatures.end(), in hasFeature()
130 bool Module::isUnimportable(const LangOptions &LangOpts, in isUnimportable() argument
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Lex/
H A DLexer.h94 LangOptions LangOpts; variable
150 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts,
157 const SourceManager &SM, const LangOptions &LangOpts);
172 const LangOptions &getLangOpts() const { return LangOpts; } in getLangOpts()
217 assert((!Val || LexingRawMode || LangOpts.TraditionalCPP) && in SetKeepWhitespaceMode()
308 const LangOptions &LangOpts,
318 const LangOptions &LangOpts,
347 const LangOptions &LangOpts,
410 ? getAsCharRange(Range.getAsRange(), SM, LangOpts) in getAsCharRange()
467 const LangOptions &LangOpts,
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp1454 } else if (LangOpts.CPlusPlus11 || LangOpts.C11) { in isAllowedIDChar()
1473 } else if (LangOpts.CPlusPlus11 || LangOpts.C11) { in isAllowedInitiallyIDChar()
1784 if (!LangOpts.MicrosoftExt || !isHexaLiteral(BufferPtr, LangOpts)) in LexNumericConstant()
1794 if (!LangOpts.C99) { in LexNumericConstant()
3039 if (!LangOpts.CPlusPlus && !LangOpts.C99) { in tryReadUCN()
3126 if (LangOpts.CPlusPlus && !LangOpts.CPlusPlus11) in tryReadUCN()
3153 if (isAllowedIDChar(C, LangOpts) && isAllowedInitiallyIDChar(C, LangOpts)) { in LexUnicode()
3357 (LangOpts.CPlusPlus || !LangOpts.TraditionalCPP)) { in LexTokenInternal()
3384 if (LangOpts.CPlusPlus11 || LangOpts.C11) { in LexTokenInternal()
3442 if (LangOpts.CPlusPlus11 || LangOpts.C11) { in LexTokenInternal()
[all …]
H A DLiteralSupport.cpp532 : SM(SM), LangOpts(LangOpts), Diags(Diags), in NumericLiteralParser()
580 if (LangOpts.FixedPoint) { in NumericLiteralParser()
601 if (!LangOpts.FixedPoint) in NumericLiteralParser()
609 if (!LangOpts.FixedPoint) in NumericLiteralParser()
618 if (!(LangOpts.Half || LangOpts.FixedPoint)) in NumericLiteralParser()
842 if (!LangOpts.CPlusPlus14) in isValidUDSuffix()
852 .Cases("d", "y", LangOpts.CPlusPlus20) in isValidUDSuffix()
911 << LangOpts.CPlusPlus << 1; in ParseNumberStartingWithZero()
937 if (!LangOpts.HexFloats) in ParseNumberStartingWithZero()
941 else if (LangOpts.CPlusPlus17) in ParseNumberStartingWithZero()
[all …]
/freebsd-13.1/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()
138 const LangOptions &LangOpts; variable
146 return visit(ND, Loc, Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts)); in visit()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp84 const LangOptions &LangOpts) { in getRangeForEdit() argument
96 CharSourceRange Range = Lexer::makeFileCharRange(EditRange, SM, LangOpts); in getRangeForEdit()
124 const LangOptions &LangOpts) { in getEntityEndLoc() argument
141 SM.getLocForStartOfFile(FileOffset.first), LangOpts, File.begin(), in getEntityEndLoc()
269 const LangOptions &LangOpts) { in skipWhitespaceAndNewline() argument
284 const LangOptions &LangOpts) { in atOrBeforeSeparation() argument
302 bool Failed = Lexer::getRawToken(Loc, Tok, SM, LangOpts, in atOrBeforeSeparation()
322 const LangOptions &LangOpts = Context.getLangOpts(); in getAssociatedRange() local
357 LangOpts) && in getAssociatedRange()
358 atOrBeforeSeparation(SM, Range.getEnd(), LangOpts)) { in getAssociatedRange()
[all …]
H A DRangeSelector.cpp66 const LangOptions &LangOpts) { in findPreviousTokenStart() argument
74 return Lexer::GetBeginningOfToken(BeforeStart, SM, LangOpts); in findPreviousTokenStart()
81 const LangOptions &LangOpts, in findPreviousTokenKind() argument
84 SourceLocation L = findPreviousTokenStart(Start, SM, LangOpts); in findPreviousTokenKind()
89 if (Lexer::getRawToken(L, T, SM, LangOpts, /*IgnoreWhiteSpace=*/true)) in findPreviousTokenKind()
100 const LangOptions &LangOpts) { in findOpenParen() argument
103 return findPreviousTokenKind(EndLoc, SM, LangOpts, tok::TokenKind::l_paren); in findOpenParen()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.h138 const LangOptions &LangOpts; variable
143 const LangOptions &LangOpts) in CoverageMappingGen() argument
144 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(nullptr) {} in CoverageMappingGen()
147 const LangOptions &LangOpts, in CoverageMappingGen() argument
149 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(CounterMap) {} in CoverageMappingGen()
H A DBackendUtil.cpp107 const LangOptions &LangOpts; member in __anon701d26f80111::EmitAssemblyHelper
182 LangOpts(LangOpts) {} in PassManagerBuilderWrapper()
190 const LangOptions &LangOpts; member in __anon701d26f80111::PassManagerBuilderWrapper
483 switch (LangOpts.getThreadModel()) { in initTargetOptions()
529 if (LangOpts.hasSjLjExceptions()) in initTargetOptions()
531 if (LangOpts.hasSEHExceptions()) in initTargetOptions()
533 if (LangOpts.hasDWARFExceptions()) in initTargetOptions()
535 if (LangOpts.hasWasmExceptions()) in initTargetOptions()
712 if (LangOpts.ObjCAutoRefCount) { in CreatePasses()
721 if (LangOpts.Coroutines) in CreatePasses()
[all …]
H A DObjectFilePCHContainerOperations.cpp52 LangOptions LangOpts; member in __anon026200ab0111::PCHContainerGenerator
145 TargetOpts(CI.getTargetOpts()), LangOpts(CI.getLangOpts()), in PCHContainerGenerator()
150 LangOpts.setThreadModel(LangOptions::ThreadModelKind::Single); in PCHContainerGenerator()
154 LangOpts.CurrentModule.empty() ? MainFileName : LangOpts.CurrentModule; in PCHContainerGenerator()
297 Diags, HeaderSearchOpts, CodeGenOpts, TargetOpts, LangOpts, in HandleTranslationUnit()
306 LangOpts, in HandleTranslationUnit()
/freebsd-13.1/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-13.1/contrib/llvm-project/clang/lib/Edit/
H A DEditedSource.cpp48 Buf, SourceMgr, LangOpts); in deconstructMacroArgLoc()
317 return !(Lexer::isIdentifierBodyChar(left, LangOpts) && in canBeJoined()
318 Lexer::isIdentifierBodyChar(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-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp22 const LangOptions &LangOpts) { in isSemicolonAtLocation() argument
25 LangOpts) == ";"; in isSemicolonAtLocation()
74 const LangOptions &LangOpts) { in compute() argument
98 if (isSemicolonAtLocation(End, SM, LangOpts)) in compute()
103 Optional<Token> NextToken = Lexer::findNextToken(End, SM, LangOpts); in compute()
/freebsd-13.1/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-13.1/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()
31 LangOpts.DeclSpecKeyword = 1; // To get __declspec. in createLangOpts()
32 LangOpts.WChar = 1; // To get wchar_t in createLangOpts()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DIssueHash.cpp137 const LangOptions &LangOpts) { in NormalizeLine() argument
157 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(StartOfLine)), LangOpts, in NormalizeLine()
188 const LangOptions &LangOpts) { in getIssueString() argument
194 NormalizeLine(IssueLoc.getManager(), IssueLoc, LangOpts) + in getIssueString()
203 const LangOptions &LangOpts) { in getIssueHash() argument
206 IssueLoc, CheckerName, WarningMessage, IssueDecl, LangOpts)); in getIssueHash()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypeChecker.cpp110 const LangOptions &LangOpts = BRC.getASTContext().getLangOpts(); in VisitNode() local
116 LangOpts, llvm::Twine()); in VisitNode()
122 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode()
125 LangOpts, llvm::Twine()); in VisitNode()
130 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode()
133 LangOpts, llvm::Twine()); in VisitNode()
/freebsd-13.1/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-13.1/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()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/Core/
H A DReplacement.h105 const LangOptions &LangOpts = LangOptions());
111 const LangOptions &LangOpts = LangOptions());
138 const LangOptions &LangOpts);
361 const LangOptions &LangOpts) { in Replacement() argument
364 setFromSourceRange(Sources, Range, ReplacementText, LangOpts); in Replacement()

1234567