/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/ |
H A D | InitPreprocessor.cpp | 288 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 478 InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, MacroBuilder &Builder) argument 581 InitializePredefinedMacros(const TargetInfo &TI, const LangOptions &LangOpts, const FrontendOptions &FEOpts, const PreprocessorOptions &PPOpts, MacroBuilder &Builder) argument 1131 const LangOptions &LangOpts = PP.getLangOpts(); local [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | Lexer.h | 93 // 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-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CoverageMappingGen.h | 87 const LangOptions &LangOpts; member in class:clang::CodeGen::CoverageMappingGen 92 const LangOptions &LangOpts) 93 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(nullptr) {} 96 const LangOptions &LangOpts, 98 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(CounterMap) {} 91 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, const LangOptions &LangOpts) argument 95 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, const LangOptions &LangOpts, llvm::DenseMap<const Stmt *, unsigned> *CounterMap) argument
|
H A D | BackendUtil.cpp | 92 const LangOptions &LangOpts; member in class:__anon321::EmitAssemblyHelper 142 TargetOpts(TOpts), LangOpts(LOpts), TheModule(M), 159 // We need this wrapper to access LangOpts and CGOpts from extension functions 165 const LangOptions &LangOpts) 167 LangOpts(LangOpts) {} 170 const LangOptions &getLangOpts() const { return LangOpts; } 175 const LangOptions &LangOpts; member in class:__anon321::PassManagerBuilderWrapper 339 const LangOptions &LangOpts = BuilderWrapper.getLangOpts(); local 340 PM.add(createDataFlowSanitizerPass(LangOpts 163 PassManagerBuilderWrapper(const Triple &TargetTriple, const CodeGenOptions &CGOpts, const LangOptions &LangOpts) argument 416 initTargetOptions(llvm::TargetOptions &Options, const CodeGenOptions &CodeGenOpts, const clang::TargetOptions &TargetOpts, const LangOptions &LangOpts, const HeaderSearchOptions &HSOpts) argument 527 getInstrProfOptions(const CodeGenOptions &CodeGenOpts, const LangOptions &LangOpts) argument 949 addSanitizersAtO0(ModulePassManager &MPM, const Triple &TargetTriple, const LangOptions &LangOpts, const CodeGenOptions &CodeGenOpts) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Basic/ |
H A D | IdentifierTable.cpp | 63 IdentifierTable::IdentifierTable(const LangOptions &LangOpts, argument 68 AddKeywords(LangOpts); 120 static KeywordStatus getKeywordStatus(const LangOptions &LangOpts, argument 123 if (LangOpts.CPlusPlus && (Flags & KEYCXX)) return KS_Enabled; 124 if (LangOpts.CPlusPlus11 && (Flags & KEYCXX11)) return KS_Enabled; 125 if (LangOpts.CPlusPlus2a && (Flags & KEYCXX2A)) return KS_Enabled; 126 if (LangOpts.C99 && (Flags & KEYC99)) return KS_Enabled; 127 if (LangOpts.GNUKeywords && (Flags & KEYGNU)) return KS_Extension; 128 if (LangOpts.MicrosoftExt && (Flags & KEYMS)) return KS_Extension; 129 if (LangOpts 155 AddKeyword(StringRef Keyword, tok::TokenKind TokenCode, unsigned Flags, const LangOptions &LangOpts, IdentifierTable &Table) argument 197 AddKeywords(const LangOptions &LangOpts) argument 228 getTokenKwStatus(const LangOptions &LangOpts, tok::TokenKind K) argument [all...] |
H A D | Builtins.cpp | 59 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 D | Module.cpp | 106 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, argument 109 .Case("altivec", LangOpts.AltiVec) 110 .Case("blocks", LangOpts.Blocks) 111 .Case("coroutines", LangOpts.Coroutines) 112 .Case("cplusplus", LangOpts.CPlusPlus) 113 .Case("cplusplus11", LangOpts.CPlusPlus11) 114 .Case("cplusplus14", LangOpts.CPlusPlus14) 115 .Case("cplusplus17", LangOpts.CPlusPlus17) 116 .Case("c99", LangOpts.C99) 117 .Case("c11", LangOpts 135 isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, Requirement &Req, UnresolvedHeaderDirective &MissingHeader, Module *&ShadowingModule) const argument 276 addRequirement(StringRef Feature, bool RequiredState, const LangOptions &LangOpts, const TargetInfo &Target) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/ |
H A D | IssueHash.h | 41 const LangOptions &LangOpts); 47 const Decl *D, const LangOptions &LangOpts);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteTest.cpp | 20 const LangOptions &LangOpts = PP.getLangOpts(); local 22 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts);
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/ |
H A D | RecursiveSymbolVisitor.h | 33 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-11-stable/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | Attributes.h | 38 const LangOptions &LangOpts);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/ |
H A D | SourceExtraction.cpp | 22 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-11-stable/contrib/llvm-project/clang/include/clang/Edit/ |
H A D | EditedSource.h | 37 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 D | Commit.h | 53 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-11-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/Extract/ |
H A D | SourceExtraction.h | 37 const LangOptions &LangOpts);
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Frontend/ |
H A D | FrontendActions.h | 58 const LangOptions &LangOpts); 62 const LangOptions &LangOpts); 67 const LangOptions &LangOpts);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Lex/ |
H A D | Lexer.cpp | 136 LangOpts(PP.getLangOpts()) { 148 : FileLoc(fileloc), LangOpts(langOpts) { 165 if (LangOpts.TraditionalCPP) 271 const LangOptions &LangOpts, char *Spelling) { 281 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); 310 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); 366 const LangOptions &LangOpts, bool *Invalid) { 383 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin())); 399 const LangOptions &LangOpts, bool *Invalid) { 437 return getSpellingSlow(Tok, TokStart, LangOpts, const_cas 270 getSpellingSlow(const Token &Tok, const char *BufPtr, const LangOptions &LangOpts, char *Spelling) argument 397 getSpelling(const Token &Tok, const char *&Buffer, const SourceManager &SourceMgr, const LangOptions &LangOpts, bool *Invalid) argument 444 MeasureTokenLength(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument 455 getRawToken(SourceLocation Loc, Token &Result, const SourceManager &SM, const LangOptions &LangOpts, bool IgnoreWhiteSpace) argument 506 getBeginningOfFileToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument 554 GetBeginningOfToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument 582 ComputePreamble(StringRef Buffer, const LangOptions &LangOpts, unsigned MaxLines) argument 718 getTokenPrefixLength(SourceLocation TokStart, unsigned CharNo, const SourceManager &SM, const LangOptions &LangOpts) argument 778 getLocForEndOfToken(SourceLocation Loc, unsigned Offset, const SourceManager &SM, const LangOptions &LangOpts) argument 800 isAtStartOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation *MacroBegin) argument 822 isAtEndOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation *MacroEnd) argument 848 makeRangeFromFileLocs(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument 875 makeFileCharRange(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument 939 getSourceText(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts, bool *Invalid) argument 975 getImmediateMacroName(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument 1022 getImmediateMacroNameForDiagnostics( SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument 1047 isIdentifierBodyChar(char c, const LangOptions &LangOpts) argument 1237 findNextToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument 1270 findLocationAfterToken( SourceLocation Loc, tok::TokenKind TKind, const SourceManager &SM, const LangOptions &LangOpts, bool SkipTrailingWhitespaceAndNewLine) argument 1374 getCharAndSizeSlowNoWarn(const char *Ptr, unsigned &Size, const LangOptions &LangOpts) argument 1431 isAllowedIDChar(uint32_t C, const LangOptions &LangOpts) argument 1451 isAllowedInitiallyIDChar(uint32_t C, const LangOptions &LangOpts) argument 1740 isHexaLiteral(const char *Start, const LangOptions &LangOpts) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Frontend/ |
H A D | LogDiagnosticPrinter.h | 53 const LangOptions *LangOpts; member in class:clang::LogDiagnosticPrinter 73 LangOpts = &LO;
|
H A D | CompilerInvocation.h | 68 std::shared_ptr<LangOptions> LangOpts; member in class:clang::CompilerInvocationBase 87 LangOptions *getLangOpts() { return LangOpts.get(); } 88 const LangOptions *getLangOpts() const { return LangOpts.get(); }
|
H A D | DiagnosticRenderer.h | 49 const LangOptions &LangOpts; member in class:clang::DiagnosticRenderer 71 DiagnosticRenderer(const LangOptions &LangOpts, 144 DiagnosticNoteRenderer(const LangOptions &LangOpts, argument 146 : DiagnosticRenderer(LangOpts, DiagOpts) {}
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
H A D | SourceCode.cpp | 36 const LangOptions &LangOpts) { 48 CharSourceRange Range = Lexer::makeFileCharRange(EditRange, SM, LangOpts); 34 getRangeForEdit(const CharSourceRange &EditRange, const SourceManager &SM, const LangOptions &LangOpts) argument
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Tooling/Syntax/ |
H A D | Tree.h | 41 Arena(SourceManager &SourceMgr, const LangOptions &LangOpts, 45 const LangOptions &langOptions() const { return LangOpts; } 58 const LangOptions &LangOpts; member in class:clang::syntax::Arena
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Inclusions/ |
H A D | HeaderIncludes.cpp | 20 LangOptions LangOpts; local 21 LangOpts.CPlusPlus = 1; 22 LangOpts.CPlusPlus11 = 1; 23 LangOpts.CPlusPlus14 = 1; 24 LangOpts.LineComment = 1; 25 LangOpts.CXXOperatorNames = 1; 26 LangOpts.Bool = 1; 27 LangOpts.ObjC = 1; 28 LangOpts.MicrosoftExt = 1; // To get kw___try, kw___finally. 29 LangOpts [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Edit/ |
H A D | EditedSource.cpp | 48 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-11-stable/contrib/llvm-project/clang/include/clang/Rewrite/Core/ |
H A D | Rewriter.h | 34 const LangOptions *LangOpts = nullptr; member in class:clang::Rewriter 70 : SourceMgr(&SM), LangOpts(&LO) {} 74 LangOpts = &LO; 78 const LangOptions &getLangOpts() const { return *LangOpts; }
|