/external/llvm-project/clang/include/clang/Basic/ |
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 …]
|
/external/llvm-project/clang/lib/Frontend/ |
D | InitPreprocessor.cpp | 288 static void AddObjCXXARCLibstdcxxDefines(const LangOptions &LangOpts, in AddObjCXXARCLibstdcxxDefines() argument 310 if (LangOpts.ObjCAutoRefCount) { in AddObjCXXARCLibstdcxxDefines() 319 if (LangOpts.ObjCWeak) { in AddObjCXXARCLibstdcxxDefines() 328 if (LangOpts.ObjCAutoRefCount) { in AddObjCXXARCLibstdcxxDefines() 344 const LangOptions &LangOpts, in InitializeStandardPredefinedMacros() argument 354 if (!LangOpts.MSVCCompat && !LangOpts.TraditionalCPP) in InitializeStandardPredefinedMacros() 359 if (LangOpts.Freestanding) in InitializeStandardPredefinedMacros() 368 if (!LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros() 369 if (LangOpts.C17) in InitializeStandardPredefinedMacros() 371 else if (LangOpts.C11) in InitializeStandardPredefinedMacros() [all …]
|
/external/clang/lib/Frontend/ |
D | InitPreprocessor.cpp | 306 static void AddObjCXXARCLibstdcxxDefines(const LangOptions &LangOpts, in AddObjCXXARCLibstdcxxDefines() argument 328 if (LangOpts.ObjCAutoRefCount) { in AddObjCXXARCLibstdcxxDefines() 337 if (LangOpts.ObjCWeak) { in AddObjCXXARCLibstdcxxDefines() 346 if (LangOpts.ObjCAutoRefCount) { in AddObjCXXARCLibstdcxxDefines() 362 const LangOptions &LangOpts, in InitializeStandardPredefinedMacros() argument 365 if (!LangOpts.MSVCCompat && !LangOpts.TraditionalCPP) in InitializeStandardPredefinedMacros() 367 if (LangOpts.Freestanding) in InitializeStandardPredefinedMacros() 372 if (!LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros() 373 if (LangOpts.C11) in InitializeStandardPredefinedMacros() 375 else if (LangOpts.C99) in InitializeStandardPredefinedMacros() [all …]
|
/external/clang/lib/Lex/ |
D | PPMacroExpansion.cpp | 301 if (LangOpts.CPlusPlus) in RegisterBuiltinMacros() 313 if (LangOpts.MicrosoftExt) { in RegisterBuiltinMacros() 334 if (!LangOpts.CurrentModule.empty()) in RegisterBuiltinMacros() 831 if (ArgTokens.size() == ArgTokenStart && !LangOpts.C99) in ReadFunctionLikeMacroArgs() 832 Diag(Tok, LangOpts.CPlusPlus11 ? in ReadFunctionLikeMacroArgs() 1050 const LangOptions &LangOpts = PP.getLangOpts(); in HasFeature() local 1058 LangOpts.Sanitize.hasOneOf(SanitizerKind::Address | in HasFeature() 1087 .Case("blocks", LangOpts.Blocks) in HasFeature() 1089 .Case("cxx_exceptions", LangOpts.CXXExceptions) in HasFeature() 1090 .Case("cxx_rtti", LangOpts.RTTI && LangOpts.RTTIData) in HasFeature() [all …]
|
D | Lexer.cpp | 112 LangOpts(PP.getLangOpts()) { in Lexer() 122 if (LangOpts.TraditionalCPP) in resetExtendedTokenMode() 133 : FileLoc(fileloc), LangOpts(langOpts) { in Lexer() 232 const LangOptions &LangOpts, char *Spelling) { in getSpellingSlow() argument 242 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow() 271 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow() 327 const LangOptions &LangOpts, bool *Invalid) { in getSpelling() argument 344 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin())); in getSpelling() 360 const LangOptions &LangOpts, bool *Invalid) { in getSpelling() argument 398 return getSpellingSlow(Tok, TokStart, LangOpts, const_cast<char*>(Buffer)); in getSpelling() [all …]
|
/external/llvm-project/clang/lib/Basic/ |
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 …]
|
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 …]
|
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 …]
|
/external/clang/include/clang/Lex/ |
D | Lexer.h | 54 LangOptions LangOpts; // LangOpts enabled by this language (cache). variable 108 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts, 115 const SourceManager &SM, const LangOptions &LangOpts); 128 const LangOptions &getLangOpts() const { return LangOpts; } in getLangOpts() 173 assert((!Val || LexingRawMode || LangOpts.TraditionalCPP) && in SetKeepWhitespaceMode() 250 const LangOptions &LangOpts, 260 const LangOptions &LangOpts, 274 const LangOptions &LangOpts, 283 const LangOptions &LangOpts); 289 const LangOptions &LangOpts, [all …]
|
/external/llvm-project/clang/include/clang/Lex/ |
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 …]
|
/external/clang/lib/Basic/ |
D | IdentifierTable.cpp | 75 IdentifierTable::IdentifierTable(const LangOptions &LangOpts, in IdentifierTable() argument 82 AddKeywords(LangOpts); in IdentifierTable() 131 static KeywordStatus getKeywordStatus(const LangOptions &LangOpts, in getKeywordStatus() argument 134 if (LangOpts.CPlusPlus && (Flags & KEYCXX)) return KS_Enabled; in getKeywordStatus() 135 if (LangOpts.CPlusPlus11 && (Flags & KEYCXX11)) return KS_Enabled; in getKeywordStatus() 136 if (LangOpts.C99 && (Flags & KEYC99)) return KS_Enabled; in getKeywordStatus() 137 if (LangOpts.GNUKeywords && (Flags & KEYGNU)) return KS_Extension; in getKeywordStatus() 138 if (LangOpts.MicrosoftExt && (Flags & KEYMS)) return KS_Extension; in getKeywordStatus() 139 if (LangOpts.Borland && (Flags & KEYBORLAND)) return KS_Extension; in getKeywordStatus() 140 if (LangOpts.Bool && (Flags & BOOLSUPPORT)) return KS_Enabled; in getKeywordStatus() [all …]
|
D | Builtins.cpp | 61 const LangOptions &LangOpts) { in builtinIsSupported() argument 63 (LangOpts.NoBuiltin || LangOpts.isNoBuiltinFunc(BuiltinInfo.Name)) && in builtinIsSupported() 66 LangOpts.NoMathBuiltin && BuiltinInfo.HeaderName && in builtinIsSupported() 68 bool GnuModeUnsupported = !LangOpts.GNUMode && (BuiltinInfo.Langs & GNU_LANG); in builtinIsSupported() 70 !LangOpts.MicrosoftExt && (BuiltinInfo.Langs & MS_LANG); in builtinIsSupported() 71 bool ObjCUnsupported = !LangOpts.ObjC1 && BuiltinInfo.Langs == OBJC_LANG; in builtinIsSupported() 72 bool OclCUnsupported = LangOpts.OpenCLVersion != 200 && in builtinIsSupported() 82 const LangOptions& LangOpts) { in initializeBuiltins() argument 85 if (builtinIsSupported(BuiltinInfo[i], LangOpts)) { in initializeBuiltins() 91 if (builtinIsSupported(TSRecords[i], LangOpts)) in initializeBuiltins()
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | LexerUtils.cpp | 18 const LangOptions &LangOpts, bool SkipComments) { in getPreviousToken() argument 28 Location = Lexer::GetBeginningOfToken(Location, SM, LangOpts); in getPreviousToken() 29 if (!Lexer::getRawToken(Location, Token, SM, LangOpts) && in getPreviousToken() 40 const LangOptions &LangOpts) { in findPreviousTokenStart() argument 48 return Lexer::GetBeginningOfToken(BeforeStart, SM, LangOpts); in findPreviousTokenStart() 53 const LangOptions &LangOpts, in findPreviousTokenKind() argument 59 SourceLocation L = findPreviousTokenStart(Start, SM, LangOpts); in findPreviousTokenKind() 64 if (Lexer::getRawToken(L, T, SM, LangOpts, /*IgnoreWhiteSpace=*/true)) in findPreviousTokenKind() 75 const LangOptions &LangOpts) { in findNextTerminator() argument 76 return findNextAnyTokenKind(Start, SM, LangOpts, tok::comma, tok::semi); in findNextTerminator() [all …]
|
D | LexerUtils.h | 23 const LangOptions &LangOpts, bool SkipComments = true); 27 const LangOptions &LangOpts); 31 const LangOptions &LangOpts, 35 const LangOptions &LangOpts); 40 const LangOptions &LangOpts, in findPreviousAnyTokenKind() argument 45 SourceLocation L = findPreviousTokenStart(Start, SM, LangOpts); in findPreviousAnyTokenKind() 51 if (Lexer::getRawToken(L, T, SM, LangOpts, /*IgnoreWhiteSpace=*/true)) in findPreviousAnyTokenKind() 64 const LangOptions &LangOpts, TokenKind TK, in findNextAnyTokenKind() argument 67 Optional<Token> CurrentToken = Lexer::findNextToken(Start, SM, LangOpts); in findNextAnyTokenKind() 88 const LangOptions &LangOpts); [all …]
|
/external/llvm-project/clang/lib/Lex/ |
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 …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | PlistDiagnostics.cpp | 32 const LangOptions &LangOpts; member in __anonf7d7533c0111::PlistDiagnostics 37 const LangOptions &LangOpts, 64 LangOpts(LO), in PlistDiagnostics() 87 const LangOptions &LangOpts, in ReportControlFlow() argument 111 EmitRange(o, SM, Lexer::getAsCharRange(StartEdge, SM, LangOpts), FM, in ReportControlFlow() 116 EmitRange(o, SM, Lexer::getAsCharRange(EndEdge, SM, LangOpts), FM, in ReportControlFlow() 140 const LangOptions &LangOpts, in ReportEvent() argument 169 Lexer::getAsCharRange(SM.getExpansionRange(R), SM, LangOpts), in ReportEvent() 199 const LangOptions &LangOpts, 208 const LangOptions &LangOpts, in ReportCall() argument [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | IsolateDeclarationCheck.cpp | 37 const LangOptions &LangOpts) { in findStartOfIndirection() argument 45 Start = findPreviousAnyTokenKind(Start, SM, LangOpts, tok::star, tok::amp); in findStartOfIndirection() 110 const LangOptions &LangOpts) { in declRanges() argument 115 if (rangeContainsExpansionsOrDirectives(DS->getSourceRange(), SM, LangOpts)) in declRanges() 144 LangOpts); in declRanges() 151 Start = findPreviousTokenKind(Start, SM, LangOpts, tok::l_paren); in declRanges() 161 Token T = getPreviousToken(Start, SM, LangOpts); in declRanges() 163 Start = findPreviousTokenStart(Start, SM, LangOpts); in declRanges() 190 LangOpts) in declRanges() 191 : findNextTerminator(CurrentDecl->getEndLoc(), SM, LangOpts); in declRanges() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | SourceCode.cpp | 281 const LangOptions &LangOpts) { in getTokenLengthAtLoc() argument 283 if (Lexer::getRawToken(Loc, TheTok, SM, LangOpts)) in getTokenLengthAtLoc() 298 const LangOptions &LangOpts) { in getLocForTokenEnd() argument 299 unsigned Len = getTokenLengthAtLoc(BeginLoc, SM, LangOpts); in getLocForTokenEnd() 306 const LangOptions &LangOpts) { in getLocForTokenBegin() argument 308 -(signed)getTokenLengthAtLoc(EndLoc, SM, LangOpts)); in getLocForTokenBegin() 313 const LangOptions &LangOpts) { in toTokenRange() argument 315 Range.setEnd(getLocForTokenBegin(Range.getEnd(), SM, LangOpts)); in toTokenRange() 323 const LangOptions &LangOpts) { in unionTokenRange() argument 329 SM.isBeforeInTranslationUnit(getLocForTokenEnd(R1.getEnd(), SM, LangOpts), in unionTokenRange() [all …]
|
/external/llvm-project/clang/unittests/Lex/ |
D | LexerTest.cpp | 55 Diags, LangOpts, Target.get()); in CreatePP() 57 std::make_shared<PreprocessorOptions>(), Diags, LangOpts, SourceMgr, in CreatePP() 98 SourceMgr, LangOpts, &Invalid); in getSourceText() 109 LangOptions LangOpts; member in __anond9f62b850111::LexerTest 293 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc)); in TEST_F() 295 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts)); in TEST_F() 296 EXPECT_FALSE(Lexer::isAtEndOfMacroExpansion(idLoc, SourceMgr, LangOpts)); in TEST_F() 297 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc)); in TEST_F() 302 CharSourceRange::getTokenRange(lsqrLoc, idLoc), SourceMgr, LangOpts); in TEST_F() 305 SourceMgr, LangOpts); in TEST_F() [all …]
|
/external/clang/unittests/Lex/ |
D | LexerTest.cpp | 67 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in Lex() 69 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in Lex() 103 SourceMgr, LangOpts, &Invalid); in getSourceText() 114 LangOptions LangOpts; member in __anon0877e1170111::LexerTest 300 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc)); in TEST_F() 302 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts)); in TEST_F() 303 EXPECT_FALSE(Lexer::isAtEndOfMacroExpansion(idLoc, SourceMgr, LangOpts)); in TEST_F() 304 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc)); in TEST_F() 308 CharSourceRange::getTokenRange(lsqrLoc, idLoc), SourceMgr, LangOpts); in TEST_F() 311 SourceMgr, LangOpts); in TEST_F() [all …]
|
/external/clang/lib/CodeGen/ |
D | CoverageMappingGen.h | 90 const LangOptions &LangOpts; variable 95 const LangOptions &LangOpts) in CoverageMappingGen() argument 96 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(nullptr) {} in CoverageMappingGen() 99 const LangOptions &LangOpts, in CoverageMappingGen() argument 101 : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(CounterMap) {} in CoverageMappingGen()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | UseTrailingReturnTypeCheck.h | 34 bool isLanguageVersionSupported(const LangOptions &LangOpts) const override { in isLanguageVersionSupported() argument 35 return LangOpts.CPlusPlus11; in isLanguageVersionSupported() 47 const SourceManager &SM, const LangOptions &LangOpts); 51 const LangOptions &LangOpts); 56 const LangOptions &LangOpts); 60 const SourceManager &SM, const LangOptions &LangOpts);
|
D | DeprecatedHeadersCheck.cpp | 26 LangOptions LangOpts); 37 LangOptions LangOpts; member in clang::tidy::modernize::__anon7cbeda5c0111::IncludeModernizePPCallbacks 50 LangOptions LangOpts) in IncludeModernizePPCallbacks() argument 51 : Check(Check), LangOpts(LangOpts) { in IncludeModernizePPCallbacks() 75 if (LangOpts.CPlusPlus11) { in IncludeModernizePPCallbacks()
|
/external/llvm-project/clang/include/clang/Tooling/Refactoring/ |
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() 127 const LangOptions &LangOpts; variable 135 return visit(ND, Loc, Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts)); in visit()
|
/external/clang/include/clang/Edit/ |
D | EditedSource.h | 31 const LangOptions &LangOpts; variable 53 EditedSource(const SourceManager &SM, const LangOptions &LangOpts, 55 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), IdentTable(LangOpts), in SourceMgr() 59 const LangOptions &getLangOpts() const { return LangOpts; } in getLangOpts()
|