/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 …]
|
D | FrontendActions.cpp | 160 const LangOptions &LangOpts, in addHeaderInclude() argument 162 if (IsExternC && LangOpts.CPlusPlus) in addHeaderInclude() 164 if (LangOpts.ObjC1) in addHeaderInclude() 172 if (IsExternC && LangOpts.CPlusPlus) in addHeaderInclude() 184 collectModuleHeaderIncludes(const LangOptions &LangOpts, FileManager &FileMgr, in collectModuleHeaderIncludes() argument 199 addHeaderInclude(H.NameAsWritten, Includes, LangOpts, Module->IsExternC); in collectModuleHeaderIncludes() 208 addHeaderInclude(UmbrellaHeader.NameAsWritten, Includes, LangOpts, in collectModuleHeaderIncludes() 249 addHeaderInclude(RelativeHeader, Includes, LangOpts, Module->IsExternC); in collectModuleHeaderIncludes() 261 LangOpts, FileMgr, ModMap, *Sub, Includes)) in collectModuleHeaderIncludes() 475 bool ReadLanguageOptions(const LangOptions &LangOpts, bool Complain, in ReadLanguageOptions() argument [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/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/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()
|
D | Module.cpp | 60 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument 63 .Case("altivec", LangOpts.AltiVec) in hasFeature() 64 .Case("blocks", LangOpts.Blocks) in hasFeature() 65 .Case("cplusplus", LangOpts.CPlusPlus) in hasFeature() 66 .Case("cplusplus11", LangOpts.CPlusPlus11) in hasFeature() 67 .Case("objc", LangOpts.ObjC1) in hasFeature() 68 .Case("objc_arc", LangOpts.ObjCAutoRefCount) in hasFeature() 69 .Case("opencl", LangOpts.OpenCL) in hasFeature() 71 .Case("zvector", LangOpts.ZVector) in hasFeature() 74 HasFeature = std::find(LangOpts.ModuleFeatures.begin(), in hasFeature() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | PlistDiagnostics.cpp | 32 const LangOptions &LangOpts; member in __anon1268c05e0111::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 …]
|
D | IssueHash.cpp | 130 const LangOptions &LangOpts) { in NormalizeLine() argument 150 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(StartOfLine)), LangOpts, in NormalizeLine() 181 const LangOptions &LangOpts) { in GetIssueString() argument 187 NormalizeLine(SM, IssueLoc, LangOpts) + Delimiter + BugType) in GetIssueString() 195 const LangOptions &LangOpts) { in GetIssueHash() argument 198 GetIssueString(SM, IssueLoc, CheckerName, BugType, D, LangOpts)); in GetIssueHash()
|
/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 __anon5fadadf90111::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()
|
D | BackendUtil.cpp | 59 const LangOptions &LangOpts; member in __anon1dda7daf0111::EmitAssemblyHelper 127 : Diags(_Diags), CodeGenOpts(CGOpts), TargetOpts(TOpts), LangOpts(LOpts), in EmitAssemblyHelper() 150 const LangOptions &LangOpts) in PassManagerBuilderWrapper() argument 151 : PassManagerBuilder(), CGOpts(CGOpts), LangOpts(LangOpts) {} in PassManagerBuilderWrapper() 153 const LangOptions &getLangOpts() const { return LangOpts; } in getLangOpts() 156 const LangOptions &LangOpts; member in __anon1dda7daf0111::PassManagerBuilderWrapper 263 const LangOptions &LangOpts = BuilderWrapper.getLangOpts(); in addDataFlowSanitizerPass() local 264 PM.add(createDataFlowSanitizerPass(LangOpts.SanitizerBlacklistFiles)); in addDataFlowSanitizerPass() 271 const LangOptions &LangOpts = BuilderWrapper.getLangOpts(); in addEfficiencySanitizerPass() local 273 if (LangOpts.Sanitize.has(SanitizerKind::EfficiencyCacheFrag)) in addEfficiencySanitizerPass() [all …]
|
/external/clang/lib/Edit/ |
D | EditedSource.cpp | 34 Buf, SourceMgr, LangOpts); in deconstructMacroArgLoc() 296 static bool canBeJoined(char left, char right, const LangOptions &LangOpts) { in canBeJoined() argument 299 return !(Lexer::isIdentifierBodyChar(left, LangOpts) && in canBeJoined() 300 Lexer::isIdentifierBodyChar(right, LangOpts)); in canBeJoined() 306 const LangOptions &LangOpts) { in canRemoveWhitespace() argument 307 if (!canBeJoined(left, right, LangOpts)) in canRemoveWhitespace() 311 if (canBeJoined(beforeWSpace, right, LangOpts)) in canRemoveWhitespace() 319 static void adjustRemoval(const SourceManager &SM, const LangOptions &LangOpts, in adjustRemoval() argument 323 SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts); in adjustRemoval() 355 LangOpts)) in adjustRemoval() [all …]
|
/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()
|
D | Commit.h | 49 const LangOptions &LangOpts; variable 60 Commit(const SourceManager &SM, const LangOptions &LangOpts, 62 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), Editor(nullptr), in SourceMgr()
|
/external/clang/include/clang/Rewrite/Core/ |
D | Rewriter.h | 33 const LangOptions *LangOpts; variable 57 : SourceMgr(&SM), LangOpts(&LO) {} in Rewriter() 58 explicit Rewriter() : SourceMgr(nullptr), LangOpts(nullptr) {} in Rewriter() 62 LangOpts = &LO; in setSourceMgr() 65 const LangOptions &getLangOpts() const { return *LangOpts; } in getLangOpts()
|
/external/clang/include/clang/Tooling/Core/ |
D | Replacement.h | 99 const LangOptions &LangOpts = LangOptions()); 105 const LangOptions &LangOpts = LangOptions()); 133 const LangOptions &LangOpts); 245 const LangOptions &LangOpts) { in Replacement() argument 248 setFromSourceRange(Sources, Range, ReplacementText, LangOpts); in Replacement()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | DynamicTypeChecker.cpp | 119 const LangOptions &LangOpts = BRC.getASTContext().getLangOpts(); in VisitNode() local 125 LangOpts, llvm::Twine()); in VisitNode() 131 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode() 134 LangOpts, llvm::Twine()); in VisitNode() 139 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode() 142 LangOpts, llvm::Twine()); in VisitNode()
|
/external/clang/tools/libclang/ |
D | CIndexDiagnostic.h | 113 const LangOptions &LangOpts; member 116 const LangOptions &LangOpts) in CXStoredDiagnostic() 118 Diag(Diag), LangOpts(LangOpts) { } in CXStoredDiagnostic()
|
D | CXSourceLocation.h | 30 translateSourceLocation(const SourceManager &SM, const LangOptions &LangOpts, in translateSourceLocation() argument 35 CXSourceLocation Result = { { &SM, &LangOpts, }, in translateSourceLocation() 55 const LangOptions &LangOpts,
|
D | CXStoredDiagnostic.cpp | 49 LangOpts, Diag.getLocation()); in getLocation() 93 LangOpts, in getRange() 111 LangOpts, Hint.RemoveRange); in getFixIt()
|
/external/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 48 LangOptions LangOpts; member in __anon6f5b52de0111::SourceManagerTest 81 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F() 83 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F() 201 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F() 203 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F() 301 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F() 303 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F()
|
/external/clang/include/clang/Frontend/ |
D | DiagnosticRenderer.h | 48 const LangOptions &LangOpts; 70 DiagnosticRenderer(const LangOptions &LangOpts, 157 DiagnosticNoteRenderer(const LangOptions &LangOpts, in DiagnosticNoteRenderer() argument 159 : DiagnosticRenderer(LangOpts, DiagOpts) {} in DiagnosticNoteRenderer()
|
/external/clang/unittests/AST/ |
D | ASTVectorTest.cpp | 31 SourceMgr(Diags, FileMgr), Idents(LangOpts, nullptr), in ASTVectorTest() 32 Ctxt(LangOpts, SourceMgr, Idents, Sels, Builtins) {} in ASTVectorTest() 39 LangOptions LangOpts; member in clang::ast::__anoncc3ebd330111::ASTVectorTest
|