Searched refs:LangOpts (Results 1 - 25 of 146) sorted by relevance

123456

/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/
H A DInitPreprocessor.cpp288 static void AddObjCXXARCLibstdcxxDefines(const LangOptions &LangOpts, argument
310 if (LangOpts.ObjCAutoRefCount) {
319 if (LangOpts.ObjCWeak) {
328 if (LangOpts.ObjCAutoRefCount) {
344 const LangOptions &LangOpts,
354 if (!LangOpts.MSVCCompat && !LangOpts.TraditionalCPP)
359 if (LangOpts.Freestanding)
368 if (!LangOpts.CPlusPlus) {
369 if (LangOpts
343 InitializeStandardPredefinedMacros(const TargetInfo &TI, const LangOptions &LangOpts, const FrontendOptions &FEOpts, MacroBuilder &Builder) argument
485 InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, MacroBuilder &Builder) argument
588 InitializePredefinedMacros(const TargetInfo &TI, const LangOptions &LangOpts, const FrontendOptions &FEOpts, const PreprocessorOptions &PPOpts, MacroBuilder &Builder) argument
1138 const LangOptions &LangOpts = PP.getLangOpts(); local
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Lex/
H A DLexer.h93 // LangOpts enabled by this language (cache).
94 LangOptions LangOpts; member in class:clang::Lexer
146 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts,
153 const SourceManager &SM, const LangOptions &LangOpts);
168 const LangOptions &getLangOpts() const { return LangOpts; }
213 assert((!Val || LexingRawMode || LangOpts.TraditionalCPP) &&
304 const LangOptions &LangOpts,
314 const LangOptions &LangOpts,
337 const LangOptions &LangOpts);
343 const LangOptions &LangOpts,
363 AdvanceToTokenCharacter(SourceLocation TokStart, unsigned Characters, const SourceManager &SM, const LangOptions &LangOpts) argument
394 getAsCharRange(SourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument
402 getAsCharRange(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument
543 getCharAndSizeNoWarn(const char *Ptr, unsigned &Size, const LangOptions &LangOpts) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.h97 const LangOptions &LangOpts; member in class:clang::CodeGen::CoverageMappingGen
102 const LangOptions &LangOpts)
103 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(nullptr) {}
106 const LangOptions &LangOpts,
108 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(CounterMap) {}
101 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, const LangOptions &LangOpts) argument
105 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, const LangOptions &LangOpts, llvm::DenseMap<const Stmt *, unsigned> *CounterMap) argument
H A DBackendUtil.cpp101 const LangOptions &LangOpts; member in class:__anon1670::EmitAssemblyHelper
151 TargetOpts(TOpts), LangOpts(LOpts), TheModule(M),
168 // We need this wrapper to access LangOpts and CGOpts from extension functions
174 const LangOptions &LangOpts)
176 LangOpts(LangOpts) {}
179 const LangOptions &getLangOpts() const { return LangOpts; }
184 const LangOptions &LangOpts; member in class:__anon1670::PassManagerBuilderWrapper
351 const LangOptions &LangOpts = BuilderWrapper.getLangOpts(); local
352 PM.add(createDataFlowSanitizerPass(LangOpts
172 PassManagerBuilderWrapper(const Triple &TargetTriple, const CodeGenOptions &CGOpts, const LangOptions &LangOpts) argument
428 initTargetOptions(DiagnosticsEngine &Diags, llvm::TargetOptions &Options, const CodeGenOptions &CodeGenOpts, const clang::TargetOptions &TargetOpts, const LangOptions &LangOpts, const HeaderSearchOptions &HSOpts) argument
561 getInstrProfOptions(const CodeGenOptions &CodeGenOpts, const LangOptions &LangOpts) argument
1003 addCoroutinePassesAtO0(ModulePassManager &MPM, const LangOptions &LangOpts, const CodeGenOptions &CodeGenOpts) argument
1019 addSanitizersAtO0(ModulePassManager &MPM, const Triple &TargetTriple, const LangOptions &LangOpts, const CodeGenOptions &CodeGenOpts) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/
H A DIdentifierTable.cpp70 IdentifierTable::IdentifierTable(const LangOptions &LangOpts, argument
75 AddKeywords(LangOpts);
127 static KeywordStatus getKeywordStatus(const LangOptions &LangOpts, argument
130 if (LangOpts.CPlusPlus && (Flags & KEYCXX)) return KS_Enabled;
131 if (LangOpts.CPlusPlus11 && (Flags & KEYCXX11)) return KS_Enabled;
132 if (LangOpts.CPlusPlus20 && (Flags & KEYCXX20)) return KS_Enabled;
133 if (LangOpts.C99 && (Flags & KEYC99)) return KS_Enabled;
134 if (LangOpts.GNUKeywords && (Flags & KEYGNU)) return KS_Extension;
135 if (LangOpts.MicrosoftExt && (Flags & KEYMS)) return KS_Extension;
136 if (LangOpts
164 AddKeyword(StringRef Keyword, tok::TokenKind TokenCode, unsigned Flags, const LangOptions &LangOpts, IdentifierTable &Table) argument
206 AddKeywords(const LangOptions &LangOpts) argument
237 getTokenKwStatus(const LangOptions &LangOpts, tok::TokenKind K) argument
[all...]
H A DBuiltins.cpp59 const LangOptions &LangOpts) {
61 (LangOpts.NoBuiltin || LangOpts.isNoBuiltinFunc(BuiltinInfo.Name)) &&
64 LangOpts.NoMathBuiltin && BuiltinInfo.HeaderName &&
66 bool GnuModeUnsupported = !LangOpts.GNUMode && (BuiltinInfo.Langs & GNU_LANG);
68 !LangOpts.MicrosoftExt && (BuiltinInfo.Langs & MS_LANG);
69 bool ObjCUnsupported = !LangOpts.ObjC && BuiltinInfo.Langs == OBJC_LANG;
70 bool OclC1Unsupported = (LangOpts.OpenCLVersion / 100) != 1 &&
73 (LangOpts.OpenCLVersion != 200 && !LangOpts
58 builtinIsSupported(const Builtin::Info &BuiltinInfo, const LangOptions &LangOpts) argument
89 initializeBuiltins(IdentifierTable &Table, const LangOptions& LangOpts) argument
[all...]
H A DModule.cpp101 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, argument
104 .Case("altivec", LangOpts.AltiVec)
105 .Case("blocks", LangOpts.Blocks)
106 .Case("coroutines", LangOpts.Coroutines)
107 .Case("cplusplus", LangOpts.CPlusPlus)
108 .Case("cplusplus11", LangOpts.CPlusPlus11)
109 .Case("cplusplus14", LangOpts.CPlusPlus14)
110 .Case("cplusplus17", LangOpts.CPlusPlus17)
111 .Case("c99", LangOpts.C99)
112 .Case("c11", LangOpts
130 isUnimportable(const LangOptions &LangOpts, const TargetInfo &Target, Requirement &Req, Module *&ShadowingModule) const argument
153 isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, Requirement &Req, UnresolvedHeaderDirective &MissingHeader, Module *&ShadowingModule) const argument
293 addRequirement(StringRef Feature, bool RequiredState, const LangOptions &LangOpts, const TargetInfo &Target) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteTest.cpp20 const LangOptions &LangOpts = PP.getLangOpts(); local
22 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts);
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/
H A DIssueHash.h41 const LangOptions &LangOpts);
47 const Decl *D, const LangOptions &LangOpts);
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h33 RecursiveSymbolVisitor(const SourceManager &SM, const LangOptions &LangOpts) argument
34 : SM(SM), LangOpts(LangOpts) {}
55 0, SM, LangOpts)))
89 Lexer::getLocForEndOfToken(TypeBeginLoc, 0, SM, LangOpts);
110 Lexer::getLocForEndOfToken(TL.getBeginLoc(), 0, SM, LangOpts);
127 const LangOptions &LangOpts; member in class:clang::tooling::RecursiveSymbolVisitor
135 return visit(ND, Loc, Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts));
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DCreateCheckerManager.cpp24 : Context(&Context), LangOpts(Context.getLangOpts()), AOptions(AOptions),
35 const LangOptions &LangOpts,
38 : LangOpts(LangOpts), AOptions(AOptions), Diags(Diags),
34 CheckerManager(AnalyzerOptions &AOptions, const LangOptions &LangOpts, DiagnosticsEngine &Diags, ArrayRef<std::string> plugins) argument
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Basic/
H A DAttributes.h38 const LangOptions &LangOpts);
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp22 const LangOptions &LangOpts) {
25 LangOpts) == ";";
74 const LangOptions &LangOpts) {
98 if (isSemicolonAtLocation(End, SM, LangOpts))
103 Optional<Token> NextToken = Lexer::findNextToken(End, SM, LangOpts);
21 isSemicolonAtLocation(SourceLocation TokenLoc, const SourceManager &SM, const LangOptions &LangOpts) argument
72 compute(const Stmt *S, SourceRange &ExtractedRange, const SourceManager &SM, const LangOptions &LangOpts) argument
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Edit/
H A DEditedSource.h37 const LangOptions &LangOpts; member in class:clang::edit::EditedSource
73 EditedSource(const SourceManager &SM, const LangOptions &LangOpts, argument
75 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), IdentTable(LangOpts) {}
78 const LangOptions &getLangOpts() const { return LangOpts; }
H A DCommit.h53 const LangOptions &LangOpts; member in class:clang::edit::Commit
64 Commit(const SourceManager &SM, const LangOptions &LangOpts, argument
66 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec) {}
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/Extract/
H A DSourceExtraction.h37 const LangOptions &LangOpts);
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp84 const LangOptions &LangOpts) {
96 CharSourceRange Range = Lexer::makeFileCharRange(EditRange, SM, LangOpts);
124 const LangOptions &LangOpts) {
141 SM.getLocForStartOfFile(FileOffset.first), LangOpts, File.begin(),
269 const LangOptions &LangOpts) {
284 const LangOptions &LangOpts) {
302 bool Failed = Lexer::getRawToken(Loc, Tok, SM, LangOpts,
322 const LangOptions &LangOpts = Context.getLangOpts(); local
339 getEntityEndLoc(SM, Decl.getEndLoc(), getTerminators(Decl), LangOpts));
356 SM, skipWhitespaceAndNewline(SM, Comment->getEndLoc(), LangOpts),
82 getRangeForEdit(const CharSourceRange &EditRange, const SourceManager &SM, const LangOptions &LangOpts) argument
122 getEntityEndLoc(const SourceManager &SM, SourceLocation EntityLast, const std::set<tok::TokenKind> &Terminators, const LangOptions &LangOpts) argument
267 skipWhitespaceAndNewline(const SourceManager &SM, SourceLocation Loc, const LangOptions &LangOpts) argument
283 atOrBeforeSeparation(const SourceManager &SM, SourceLocation Loc, const LangOptions &LangOpts) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp137 LangOpts(PP.getLangOpts()) {
149 : FileLoc(fileloc), LangOpts(langOpts) {
166 if (LangOpts.TraditionalCPP)
272 const LangOptions &LangOpts, char *Spelling) {
282 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts);
311 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts);
367 const LangOptions &LangOpts, bool *Invalid) {
384 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin()));
400 const LangOptions &LangOpts, bool *Invalid) {
438 return getSpellingSlow(Tok, TokStart, LangOpts, const_cas
271 getSpellingSlow(const Token &Tok, const char *BufPtr, const LangOptions &LangOpts, char *Spelling) argument
398 getSpelling(const Token &Tok, const char *&Buffer, const SourceManager &SourceMgr, const LangOptions &LangOpts, bool *Invalid) argument
445 MeasureTokenLength(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
456 getRawToken(SourceLocation Loc, Token &Result, const SourceManager &SM, const LangOptions &LangOpts, bool IgnoreWhiteSpace) argument
507 getBeginningOfFileToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
555 GetBeginningOfToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
583 ComputePreamble(StringRef Buffer, const LangOptions &LangOpts, unsigned MaxLines) argument
719 getTokenPrefixLength(SourceLocation TokStart, unsigned CharNo, const SourceManager &SM, const LangOptions &LangOpts) argument
779 getLocForEndOfToken(SourceLocation Loc, unsigned Offset, const SourceManager &SM, const LangOptions &LangOpts) argument
801 isAtStartOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation *MacroBegin) argument
823 isAtEndOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation *MacroEnd) argument
849 makeRangeFromFileLocs(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument
876 makeFileCharRange(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument
940 getSourceText(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts, bool *Invalid) argument
976 getImmediateMacroName(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
1023 getImmediateMacroNameForDiagnostics( SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
1048 isIdentifierBodyChar(char c, const LangOptions &LangOpts) argument
1238 findNextToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
1271 findLocationAfterToken( SourceLocation Loc, tok::TokenKind TKind, const SourceManager &SM, const LangOptions &LangOpts, bool SkipTrailingWhitespaceAndNewLine) argument
1375 getCharAndSizeSlowNoWarn(const char *Ptr, unsigned &Size, const LangOptions &LangOpts) argument
1432 isAllowedIDChar(uint32_t C, const LangOptions &LangOpts) argument
1452 isAllowedInitiallyIDChar(uint32_t C, const LangOptions &LangOpts) argument
1741 isHexaLiteral(const char *Start, const LangOptions &LangOpts) argument
[all...]
H A DLiteralSupport.cpp529 const LangOptions &LangOpts,
532 : SM(SM), LangOpts(LangOpts), Diags(Diags),
579 if (LangOpts.FixedPoint) {
599 if (!LangOpts.FixedPoint)
607 if (!LangOpts.FixedPoint)
616 if (!(LangOpts.Half || LangOpts.FixedPoint))
631 if ((Target.hasFloat16Type() || LangOpts.CUDA) && s + 2 < ThisTokEnd &&
670 if (LangOpts
526 NumericLiteralParser(StringRef TokSpelling, SourceLocation TokLoc, const SourceManager &SM, const LangOptions &LangOpts, const TargetInfo &Target, DiagnosticsEngine &Diags) argument
812 isValidUDSuffix(const LangOptions &LangOpts, StringRef Suffix) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Frontend/
H A DLogDiagnosticPrinter.h53 const LangOptions *LangOpts; member in class:clang::LogDiagnosticPrinter
73 LangOpts = &LO;
H A DDiagnosticRenderer.h49 const LangOptions &LangOpts; member in class:clang::DiagnosticRenderer
71 DiagnosticRenderer(const LangOptions &LangOpts,
144 DiagnosticNoteRenderer(const LangOptions &LangOpts, argument
146 : DiagnosticRenderer(LangOpts, DiagOpts) {}
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp21 LangOptions LangOpts; local
22 LangOpts.CPlusPlus = 1;
23 LangOpts.CPlusPlus11 = 1;
24 LangOpts.CPlusPlus14 = 1;
25 LangOpts.LineComment = 1;
26 LangOpts.CXXOperatorNames = 1;
27 LangOpts.Bool = 1;
28 LangOpts.ObjC = 1;
29 LangOpts.MicrosoftExt = 1; // To get kw___try, kw___finally.
30 LangOpts
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Edit/
H A DEditedSource.cpp48 Buf, SourceMgr, LangOpts);
314 static bool canBeJoined(char left, char right, const LangOptions &LangOpts) { argument
317 return !(Lexer::isIdentifierBodyChar(left, LangOpts) &&
318 Lexer::isIdentifierBodyChar(right, LangOpts));
324 const LangOptions &LangOpts) {
325 if (!canBeJoined(left, right, LangOpts))
329 if (canBeJoined(beforeWSpace, right, LangOpts))
337 static void adjustRemoval(const SourceManager &SM, const LangOptions &LangOpts, argument
341 SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts);
373 LangOpts))
323 canRemoveWhitespace(char left, char beforeWSpace, char right, const LangOptions &LangOpts) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Rewrite/Core/
H A DRewriter.h34 const LangOptions *LangOpts = nullptr; member in class:clang::Rewriter
70 : SourceMgr(&SM), LangOpts(&LO) {}
74 LangOpts = &LO;
78 const LangOptions &getLangOpts() const { return *LangOpts; }
/freebsd-13-stable/contrib/llvm-project/clang/lib/Rewrite/
H A DTokenRewriter.cpp27 const LangOptions &LangOpts) {
32 Lexer RawLex(FID, FromFile, SM, LangOpts);
26 TokenRewriter(FileID FID, SourceManager &SM, const LangOptions &LangOpts) argument

Completed in 305 milliseconds

123456