/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/ |
H A D | Features.def | 14 // 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 | 48 FEATURE(memtag_sanitizer, LangOpts.Sanitize.has(SanitizerKind::MemTag)) 49 FEATURE(xray_instrument, LangOpts.XRayInstrument) 51 LangOpts.Sanitize.hasOneOf(SanitizerKind::Undefined)) 81 FEATURE(blocks, LangOpts.Blocks) 83 FEATURE(cxx_exceptions, LangOpts.CXXExceptions) [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/ |
H A D | InitPreprocessor.cpp | 293 static void AddObjCXXARCLibstdcxxDefines(const LangOptions &LangOpts, in AddObjCXXARCLibstdcxxDefines() argument 315 if (LangOpts.ObjCAutoRefCount) { in AddObjCXXARCLibstdcxxDefines() 324 if (LangOpts.ObjCWeak) { in AddObjCXXARCLibstdcxxDefines() 333 if (LangOpts.ObjCAutoRefCount) { in AddObjCXXARCLibstdcxxDefines() 349 const LangOptions &LangOpts, in InitializeStandardPredefinedMacros() argument 359 if (!LangOpts.MSVCCompat && !LangOpts.TraditionalCPP) in InitializeStandardPredefinedMacros() 364 if (LangOpts.Freestanding) in InitializeStandardPredefinedMacros() 373 if (!LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros() 374 if (LangOpts.C17) in InitializeStandardPredefinedMacros() 376 else if (LangOpts.C11) in InitializeStandardPredefinedMacros() [all …]
|
H A D | ASTUnit.cpp | 288 const LangOptions &LangOpts, in getDeclShowContexts() argument 302 if (LangOpts.CPlusPlus || !isa<TagDecl>(ND)) in getDeclShowContexts() 311 if (LangOpts.CPlusPlus) in getDeclShowContexts() 316 if (LangOpts.CPlusPlus || isa<ObjCInterfaceDecl>(ND)) in getDeclShowContexts() 332 if (LangOpts.CPlusPlus11) in getDeclShowContexts() 340 if (LangOpts.CPlusPlus) in getDeclShowContexts() 538 bool ReadLanguageOptions(const LangOptions &LangOpts, bool Complain, in ReadLanguageOptions() argument 543 LangOpt = LangOpts; in ReadLanguageOptions() 617 const LangOptions *LangOpts = nullptr; member in __anonc715c21c0211::FilterAndStoreDiagnosticConsumer 631 void BeginSourceFile(const LangOptions &LangOpts, in BeginSourceFile() argument [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Basic/ |
H A D | IdentifierTable.cpp | 70 IdentifierTable::IdentifierTable(const LangOptions &LangOpts, in IdentifierTable() argument 75 AddKeywords(LangOpts); in IdentifierTable() 127 static KeywordStatus getKeywordStatus(const LangOptions &LangOpts, in getKeywordStatus() argument 130 if (LangOpts.CPlusPlus && (Flags & KEYCXX)) return KS_Enabled; in getKeywordStatus() 131 if (LangOpts.CPlusPlus11 && (Flags & KEYCXX11)) return KS_Enabled; in getKeywordStatus() 132 if (LangOpts.CPlusPlus20 && (Flags & KEYCXX20)) return KS_Enabled; in getKeywordStatus() 133 if (LangOpts.C99 && (Flags & KEYC99)) return KS_Enabled; in getKeywordStatus() 134 if (LangOpts.GNUKeywords && (Flags & KEYGNU)) return KS_Extension; in getKeywordStatus() 135 if (LangOpts.MicrosoftExt && (Flags & KEYMS)) return KS_Extension; in getKeywordStatus() 136 if (LangOpts.MSVCCompat && (Flags & KEYMSCOMPAT)) return KS_Enabled; in getKeywordStatus() [all …]
|
H A D | Builtins.cpp | 59 const LangOptions &LangOpts) { in builtinIsSupported() argument 61 (LangOpts.NoBuiltin || LangOpts.isNoBuiltinFunc(BuiltinInfo.Name)) && in builtinIsSupported() 64 LangOpts.NoMathBuiltin && BuiltinInfo.HeaderName && in builtinIsSupported() 66 bool GnuModeUnsupported = !LangOpts.GNUMode && (BuiltinInfo.Langs & GNU_LANG); in builtinIsSupported() 68 !LangOpts.MicrosoftExt && (BuiltinInfo.Langs & MS_LANG); in builtinIsSupported() 69 bool ObjCUnsupported = !LangOpts.ObjC && BuiltinInfo.Langs == OBJC_LANG; in builtinIsSupported() 70 bool OclC1Unsupported = (LangOpts.OpenCLVersion / 100) != 1 && in builtinIsSupported() 73 (LangOpts.OpenCLVersion != 200 && !LangOpts.OpenCLCPlusPlus) && in builtinIsSupported() 75 bool OclCUnsupported = !LangOpts.OpenCL && in builtinIsSupported() 77 bool OpenMPUnsupported = !LangOpts.OpenMP && BuiltinInfo.Langs == OMP_LANG; in builtinIsSupported() [all …]
|
H A D | Module.cpp | 101 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument 104 .Case("altivec", LangOpts.AltiVec) in hasFeature() 105 .Case("blocks", LangOpts.Blocks) in hasFeature() 106 .Case("coroutines", LangOpts.Coroutines) in hasFeature() 107 .Case("cplusplus", LangOpts.CPlusPlus) in hasFeature() 108 .Case("cplusplus11", LangOpts.CPlusPlus11) in hasFeature() 109 .Case("cplusplus14", LangOpts.CPlusPlus14) in hasFeature() 110 .Case("cplusplus17", LangOpts.CPlusPlus17) in hasFeature() 111 .Case("c99", LangOpts.C99) in hasFeature() 112 .Case("c11", LangOpts.C11) in hasFeature() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Lex/ |
H A D | Lexer.h | 94 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, 341 const LangOptions &LangOpts); 347 const LangOptions &LangOpts, 355 const LangOptions &LangOpts); [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/ |
H A D | Lexer.cpp | 139 LangOpts(PP.getLangOpts()) { in Lexer() 151 : FileLoc(fileloc), LangOpts(langOpts) { in Lexer() 168 if (LangOpts.TraditionalCPP) in resetExtendedTokenMode() 274 const LangOptions &LangOpts, char *Spelling) { in getSpellingSlow() argument 284 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow() 313 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow() 369 const LangOptions &LangOpts, bool *Invalid) { in getSpelling() argument 386 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin())); in getSpelling() 402 const LangOptions &LangOpts, bool *Invalid) { in getSpelling() argument 440 return getSpellingSlow(Tok, TokStart, LangOpts, const_cast<char*>(Buffer)); in getSpelling() [all …]
|
H A D | LiteralSupport.cpp | 529 const LangOptions &LangOpts, in NumericLiteralParser() argument 532 : 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() 636 if ((Target.hasFloat16Type() || LangOpts.CUDA) && s + 2 < ThisTokEnd && in NumericLiteralParser() 686 if (LangOpts.MicrosoftExt && !isFPConstant) { in NumericLiteralParser() 742 if (isValidUDSuffix(LangOpts, UDSuffixBuf)) { in NumericLiteralParser() 767 TokLoc, SuffixBegin - ThisTokBegin, SM, LangOpts), in NumericLiteralParser() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
H A D | BackendUtil.cpp | 106 const LangOptions &LangOpts; member in __anoncdf3490f0111::EmitAssemblyHelper 156 TargetOpts(TOpts), LangOpts(LOpts), TheModule(M), in EmitAssemblyHelper() 179 const LangOptions &LangOpts) in PassManagerBuilderWrapper() argument 181 LangOpts(LangOpts) {} in PassManagerBuilderWrapper() 184 const LangOptions &getLangOpts() const { return LangOpts; } in getLangOpts() 189 const LangOptions &LangOpts; member in __anoncdf3490f0111::PassManagerBuilderWrapper 366 const LangOptions &LangOpts = BuilderWrapper.getLangOpts(); in addDataFlowSanitizerPass() local 367 PM.add(createDataFlowSanitizerLegacyPassPass(LangOpts.NoSanitizeFiles)); in addDataFlowSanitizerPass() 472 const LangOptions &LangOpts, in initTargetOptions() argument 474 switch (LangOpts.getThreadModel()) { in initTargetOptions() [all …]
|
H A D | CoverageMappingGen.h | 138 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 D | ObjectFilePCHContainerOperations.cpp | 52 LangOptions LangOpts; member in __anon115c17220111::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()
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/Refactoring/ |
H A D | RecursiveSymbolVisitor.h | 33 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()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/ |
H A D | SourceCode.cpp | 84 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 339 getEntityEndLoc(SM, Decl.getEndLoc(), getTerminators(Decl), LangOpts)); in getAssociatedRange() 356 SM, skipWhitespaceAndNewline(SM, Comment->getEndLoc(), LangOpts), in getAssociatedRange() [all …]
|
H A D | RangeSelector.cpp | 66 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()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Edit/ |
H A D | EditedSource.cpp | 48 Buf, SourceMgr, LangOpts); in deconstructMacroArgLoc() 314 static bool canBeJoined(char left, char right, const LangOptions &LangOpts) { in canBeJoined() argument 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() 337 static void adjustRemoval(const SourceManager &SM, const LangOptions &LangOpts, in adjustRemoval() argument 341 SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts); in adjustRemoval() 373 LangOpts)) in adjustRemoval() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Edit/ |
H A D | EditedSource.h | 37 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()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Inclusions/ |
H A D | HeaderIncludes.cpp | 22 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() 30 LangOpts.MicrosoftExt = 1; // To get kw___try, kw___finally. in createLangOpts() 31 LangOpts.DeclSpecKeyword = 1; // To get __declspec. in createLangOpts() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Extract/ |
H A D | SourceExtraction.cpp | 22 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()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Frontend/ |
H A D | CreateCheckerManager.cpp | 24 : 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()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/ |
H A D | IssueHash.cpp | 137 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()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
H A D | DynamicTypeChecker.cpp | 110 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()
|
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/ |
H A D | CIndexDiagnostic.h | 113 const LangOptions &LangOpts; member 116 const LangOptions &LangOpts) in CXStoredDiagnostic() 118 Diag(Diag), LangOpts(LangOpts) { } in CXStoredDiagnostic()
|
H A D | CXSourceLocation.h | 29 translateSourceLocation(const SourceManager &SM, const LangOptions &LangOpts, in translateSourceLocation() argument 34 CXSourceLocation Result = { { &SM, &LangOpts, }, in translateSourceLocation() 54 const LangOptions &LangOpts,
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Frontend/ |
H A D | DiagnosticRenderer.h | 49 const LangOptions &LangOpts; 71 DiagnosticRenderer(const LangOptions &LangOpts, 144 DiagnosticNoteRenderer(const LangOptions &LangOpts, in DiagnosticNoteRenderer() argument 146 : DiagnosticRenderer(LangOpts, DiagOpts) {} in DiagnosticNoteRenderer()
|