/external/clang/lib/Lex/ |
D | PPMacroExpansion.cpp | 110 if (LangOpts.Modules) { in RegisterBuiltinMacros() 114 if (!LangOpts.CurrentModule.empty()) in RegisterBuiltinMacros() 124 if (LangOpts.MicrosoftExt) in RegisterBuiltinMacros() 648 if (ArgTokens.size() == ArgTokenStart && !LangOpts.C99) in ReadFunctionLikeMacroArgs() 649 Diag(Tok, LangOpts.CPlusPlus11 ? in ReadFunctionLikeMacroArgs() 878 const LangOptions &LangOpts = PP.getLangOpts(); in HasFeature() local 886 .Case("address_sanitizer", LangOpts.Sanitize.Address) in HasFeature() 904 .Case("blocks", LangOpts.Blocks) in HasFeature() 906 .Case("cxx_exceptions", LangOpts.Exceptions) in HasFeature() 907 .Case("cxx_rtti", LangOpts.RTTI) in HasFeature() [all …]
|
D | Lexer.cpp | 120 LangOpts(PP.getLangOpts()) { in Lexer() 130 if (LangOpts.TraditionalCPP) in resetExtendedTokenMode() 141 : FileLoc(fileloc), LangOpts(langOpts) { in Lexer() 154 : FileLoc(SM.getLocForStartOfFile(FID)), LangOpts(langOpts) { in Lexer() 246 const LangOptions &LangOpts, char *Spelling) { in getSpellingSlow() argument 256 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow() 285 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow() 341 const LangOptions &LangOpts, bool *Invalid) { in getSpelling() argument 358 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin())); in getSpelling() 374 const LangOptions &LangOpts, bool *Invalid) { in getSpelling() argument [all …]
|
/external/clang/lib/Frontend/ |
D | InitPreprocessor.cpp | 235 static void AddObjCXXARCLibstdcxxDefines(const LangOptions &LangOpts, in AddObjCXXARCLibstdcxxDefines() argument 264 if (LangOpts.ObjCARCWeak) { in AddObjCXXARCLibstdcxxDefines() 287 const LangOptions &LangOpts, in InitializeStandardPredefinedMacros() argument 290 if (!LangOpts.MicrosoftMode && !LangOpts.TraditionalCPP) in InitializeStandardPredefinedMacros() 292 if (LangOpts.Freestanding) in InitializeStandardPredefinedMacros() 297 if (!LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros() 298 if (LangOpts.C11) in InitializeStandardPredefinedMacros() 300 else if (LangOpts.C99) in InitializeStandardPredefinedMacros() 302 else if (!LangOpts.GNUMode && LangOpts.Digraphs) in InitializeStandardPredefinedMacros() 306 if (LangOpts.CPlusPlus1y) in InitializeStandardPredefinedMacros() [all …]
|
D | FrontendActions.cpp | 144 const LangOptions &LangOpts) { in addHeaderInclude() argument 145 if (LangOpts.ObjC1) in addHeaderInclude() 155 const LangOptions &LangOpts) { in addHeaderInclude() argument 156 addHeaderInclude(Header->getName(), Includes, LangOpts); in addHeaderInclude() 166 static void collectModuleHeaderIncludes(const LangOptions &LangOpts, in collectModuleHeaderIncludes() argument 179 addHeaderInclude(Header, Includes, LangOpts); in collectModuleHeaderIncludes() 187 addHeaderInclude(UmbrellaHeader, Includes, LangOpts); in collectModuleHeaderIncludes() 213 addHeaderInclude(Dir->path(), Includes, LangOpts); in collectModuleHeaderIncludes() 221 collectModuleHeaderIncludes(LangOpts, FileMgr, ModMap, *Sub, Includes); in collectModuleHeaderIncludes() 348 virtual bool ReadLanguageOptions(const LangOptions &LangOpts, in ReadLanguageOptions() argument [all …]
|
D | DiagnosticRenderer.cpp | 44 const LangOptions &LangOpts) { in getImmediateMacroName() argument 63 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getImmediateMacroName() 68 DiagnosticRenderer::DiagnosticRenderer(const LangOptions &LangOpts, in DiagnosticRenderer() argument 70 : LangOpts(LangOpts), DiagOpts(DiagOpts), LastLevel() {} in DiagnosticRenderer() 93 const SourceManager &SM, const LangOptions &LangOpts, in mergeFixits() argument 95 edit::Commit commit(SM, LangOpts); in mergeFixits() 116 edit::EditedSource Editor(SM, LangOpts); in mergeFixits() 144 mergeFixits(FixItHints, *SM, LangOpts, MergedFixits); in emitDiagnostic() 460 StringRef MacroName = getImmediateMacroName(Loc, SM, LangOpts); in emitMacroExpansions()
|
/external/clang/include/clang/Lex/ |
D | Lexer.h | 54 LangOptions LangOpts; // LangOpts enabled by this language (cache). variable 102 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts, 109 const SourceManager &SM, const LangOptions &LangOpts); 122 const LangOptions &getLangOpts() const { return LangOpts; } in getLangOpts() 177 assert((!Val || LexingRawMode || LangOpts.TraditionalCPP) && in SetKeepWhitespaceMode() 252 const LangOptions &LangOpts, 262 const LangOptions &LangOpts, 276 const LangOptions &LangOpts, 285 const LangOptions &LangOpts); 291 const LangOptions &LangOpts); [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | PlistDiagnostics.cpp | 34 const LangOptions &LangOpts; member in __anon683929bf0111::PlistDiagnostics 39 const LangOptions &LangOpts, 65 LangOpts(LO), in PlistDiagnostics() 108 const LangOptions &LangOpts, in EmitLocation() argument 116 extend ? Lexer::MeasureTokenLength(Loc, SM, LangOpts) - 1 : 0; in EmitLocation() 129 const LangOptions &LangOpts, in EmitLocation() argument 132 EmitLocation(o, SM, LangOpts, L.asLocation(), FM, indent, extend); in EmitLocation() 136 const LangOptions &LangOpts, in EmitRange() argument 140 EmitLocation(o, SM, LangOpts, R.getBegin(), FM, indent+1); in EmitRange() 141 EmitLocation(o, SM, LangOpts, R.getEnd(), FM, indent+1, !R.isPoint); in EmitRange() [all …]
|
/external/clang/lib/Basic/ |
D | IdentifierTable.cpp | 73 IdentifierTable::IdentifierTable(const LangOptions &LangOpts, in IdentifierTable() argument 80 AddKeywords(LangOpts); in IdentifierTable() 122 const LangOptions &LangOpts, IdentifierTable &Table) { in AddKeyword() argument 125 else if (LangOpts.CPlusPlus && (Flags & KEYCXX)) AddResult = 2; in AddKeyword() 126 else if (LangOpts.CPlusPlus11 && (Flags & KEYCXX11)) AddResult = 2; in AddKeyword() 127 else if (LangOpts.C99 && (Flags & KEYC99)) AddResult = 2; in AddKeyword() 128 else if (LangOpts.GNUKeywords && (Flags & KEYGNU)) AddResult = 1; in AddKeyword() 129 else if (LangOpts.MicrosoftExt && (Flags & KEYMS)) AddResult = 1; in AddKeyword() 130 else if (LangOpts.Borland && (Flags & KEYBORLAND)) AddResult = 1; in AddKeyword() 131 else if (LangOpts.Bool && (Flags & BOOLSUPPORT)) AddResult = 2; in AddKeyword() [all …]
|
D | Builtins.cpp | 49 const LangOptions &LangOpts) { in BuiltinIsSupported() argument 50 bool BuiltinsUnsupported = LangOpts.NoBuiltin && in BuiltinIsSupported() 53 LangOpts.NoMathBuiltin && BuiltinInfo.HeaderName && in BuiltinIsSupported() 55 bool GnuModeUnsupported = !LangOpts.GNUMode && in BuiltinIsSupported() 57 bool ObjCUnsupported = !LangOpts.ObjC1 && in BuiltinIsSupported() 67 const LangOptions& LangOpts) { in InitializeBuiltins() argument 70 if (BuiltinIsSupported(BuiltinInfo[i], LangOpts)) { in InitializeBuiltins() 76 if (!LangOpts.NoBuiltin || !strchr(TSRecords[i].Attributes, 'f')) in InitializeBuiltins()
|
D | Module.cpp | 54 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument 57 .Case("altivec", LangOpts.AltiVec) in hasFeature() 58 .Case("blocks", LangOpts.Blocks) in hasFeature() 59 .Case("cplusplus", LangOpts.CPlusPlus) in hasFeature() 60 .Case("cplusplus11", LangOpts.CPlusPlus11) in hasFeature() 61 .Case("objc", LangOpts.ObjC1) in hasFeature() 62 .Case("objc_arc", LangOpts.ObjCAutoRefCount) in hasFeature() 63 .Case("opencl", LangOpts.OpenCL) in hasFeature() 69 Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, in isAvailable() argument 76 if (!hasFeature(Current->Requires[I], LangOpts, Target)) { in isAvailable() [all …]
|
/external/clang/unittests/Lex/ |
D | LexerTest.cpp | 65 HeaderSearch HeaderInfo(new HeaderSearchOptions, FileMgr, Diags, LangOpts, in CheckLex() 67 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, Target.getPtr(), in CheckLex() 95 SourceMgr, LangOpts, &Invalid); in getSourceText() 106 LangOptions LangOpts; member in __anonb9458d3a0111::LexerTest 292 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc)); in TEST_F() 294 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts)); in TEST_F() 295 EXPECT_FALSE(Lexer::isAtEndOfMacroExpansion(idLoc, SourceMgr, LangOpts)); in TEST_F() 296 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc)); in TEST_F() 300 CharSourceRange::getTokenRange(lsqrLoc, idLoc), SourceMgr, LangOpts); in TEST_F() 303 SourceMgr, LangOpts); in TEST_F() [all …]
|
/external/clang/lib/CodeGen/ |
D | BackendUtil.cpp | 48 const LangOptions &LangOpts; member in __anon77725cf00111::EmitAssemblyHelper 113 : Diags(_Diags), CodeGenOpts(CGOpts), TargetOpts(TOpts), LangOpts(LOpts), in EmitAssemblyHelper() 131 const LangOptions &LangOpts) in PassManagerBuilderWrapper() argument 132 : PassManagerBuilder(), CGOpts(CGOpts), LangOpts(LangOpts) {} in PassManagerBuilderWrapper() 134 const LangOptions &getLangOpts() const { return LangOpts; } in getLangOpts() 137 const LangOptions &LangOpts; member in __anon77725cf00111::PassManagerBuilderWrapper 167 const LangOptions &LangOpts = BuilderWrapper.getLangOpts(); in addAddressSanitizerPasses() local 169 LangOpts.Sanitize.InitOrder, in addAddressSanitizerPasses() 170 LangOpts.Sanitize.UseAfterReturn, in addAddressSanitizerPasses() 171 LangOpts.Sanitize.UseAfterScope, in addAddressSanitizerPasses() [all …]
|
/external/clang/lib/Edit/ |
D | EditedSource.cpp | 246 static bool canBeJoined(char left, char right, const LangOptions &LangOpts) { in canBeJoined() argument 249 return !(Lexer::isIdentifierBodyChar(left, LangOpts) && in canBeJoined() 250 Lexer::isIdentifierBodyChar(right, LangOpts)); in canBeJoined() 256 const LangOptions &LangOpts) { in canRemoveWhitespace() argument 257 if (!canBeJoined(left, right, LangOpts)) in canRemoveWhitespace() 261 if (canBeJoined(beforeWSpace, right, LangOpts)) in canRemoveWhitespace() 269 static void adjustRemoval(const SourceManager &SM, const LangOptions &LangOpts, in adjustRemoval() argument 273 SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts); in adjustRemoval() 297 LangOpts)) in adjustRemoval() 302 if (!canBeJoined(buffer[begin-1], buffer[end], LangOpts)) in adjustRemoval() [all …]
|
/external/clang/include/clang/Edit/ |
D | EditedSource.h | 29 const LangOptions &LangOpts; variable 47 EditedSource(const SourceManager &SM, const LangOptions &LangOpts, 49 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), in SourceMgr() 53 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(0), in SourceMgr()
|
/external/clang/lib/ARCMigrate/ |
D | PlistReporter.cpp | 46 const LangOptions &LangOpts, in EmitLocation() argument 54 extend ? Lexer::MeasureTokenLength(Loc, SM, LangOpts) - 1 : 0; in EmitLocation() 67 const LangOptions &LangOpts, in EmitRange() argument 71 EmitLocation(o, SM, LangOpts, R.getBegin(), FM, indent+1); in EmitRange() 72 EmitLocation(o, SM, LangOpts, R.getEnd(), FM, indent+1, R.isTokenRange()); in EmitRange() 97 const LangOptions &LangOpts) { in writeARCDiagsToPlist() argument 174 EmitLocation(o, SM, LangOpts, D.getLocation(), FM, 2); in writeARCDiagsToPlist() 183 EmitRange(o, SM, LangOpts, *RI, FM, 4); in writeARCDiagsToPlist()
|
/external/clang/tools/libclang/ |
D | CIndexDiagnostic.h | 114 const LangOptions &LangOpts; member 117 const LangOptions &LangOpts) in CXStoredDiagnostic() 119 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 | 47 LangOpts, Diag.getLocation()); in getLocation() 91 LangOpts, in getRange() 109 LangOpts, Hint.RemoveRange); in getFixIt()
|
/external/clang/include/clang/Rewrite/Core/ |
D | Rewriter.h | 131 const LangOptions *LangOpts; variable 154 : SourceMgr(&SM), LangOpts(&LO) {} in Rewriter() 155 explicit Rewriter() : SourceMgr(0), LangOpts(0) {} in Rewriter() 159 LangOpts = &LO; in setSourceMgr() 162 const LangOptions &getLangOpts() const { return *LangOpts; } in getLangOpts()
|
/external/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 49 LangOptions LangOpts; member in __anon901ff75f0111::SourceManagerTest 76 HeaderSearch HeaderInfo(new HeaderSearchOptions, FileMgr, Diags, LangOpts, in TEST_F() 78 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, Target.getPtr(), in TEST_F() 191 HeaderSearch HeaderInfo(new HeaderSearchOptions, FileMgr, Diags, LangOpts, in TEST_F() 193 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, Target.getPtr(), in TEST_F() 289 HeaderSearch HeaderInfo(new HeaderSearchOptions, FileMgr, Diags, LangOpts, in TEST_F() 291 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, Target.getPtr(), in TEST_F()
|
/external/clang/include/clang/Frontend/ |
D | DiagnosticRenderer.h | 48 const LangOptions &LangOpts; 70 DiagnosticRenderer(const LangOptions &LangOpts, 156 DiagnosticNoteRenderer(const LangOptions &LangOpts, in DiagnosticNoteRenderer() argument 158 : DiagnosticRenderer(LangOpts, DiagOpts) {} in DiagnosticNoteRenderer()
|
D | CompilerInvocation.h | 55 IntrusiveRefCntPtr<LangOptions> LangOpts; 74 LangOptions *getLangOpts() { return LangOpts.getPtr(); } in getLangOpts() 75 const LangOptions *getLangOpts() const { return LangOpts.getPtr(); } in getLangOpts()
|
/external/clang/lib/Rewrite/Frontend/ |
D | RewriteTest.cpp | 21 const LangOptions &LangOpts = PP.getLangOpts(); in DoRewriteTest() local 23 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts); in DoRewriteTest()
|
/external/clang/include/clang/AST/ |
D | PrettyPrinter.h | 38 : LangOpts(LO), Indentation(2), SuppressSpecifiers(false), in PrintingPolicy() 47 LangOptions LangOpts; member
|