Home
last modified time | relevance | path

Searched refs:LangOpts (Results 1 – 25 of 102) sorted by relevance

12345

/external/clang/lib/Lex/
DPPMacroExpansion.cpp104 if (LangOpts.MicrosoftExt) in RegisterBuiltinMacros()
436 if (ArgTokens.size() == ArgTokenStart && !LangOpts.C99) in ReadFunctionLikeMacroArgs()
437 Diag(Tok, LangOpts.CPlusPlus0x ? in ReadFunctionLikeMacroArgs()
591 const LangOptions &LangOpts = PP.getLangOpts(); in HasFeature() local
599 .Case("address_sanitizer", LangOpts.AddressSanitizer) in HasFeature()
615 .Case("blocks", LangOpts.Blocks) in HasFeature()
616 .Case("cxx_exceptions", LangOpts.Exceptions) in HasFeature()
617 .Case("cxx_rtti", LangOpts.RTTI) in HasFeature()
620 .Case("objc_arr", LangOpts.ObjCAutoRefCount) // FIXME: REMOVE? in HasFeature()
621 .Case("objc_arc", LangOpts.ObjCAutoRefCount) in HasFeature()
[all …]
DLexer.cpp120 LangOpts(PP.getLangOpts()) { in Lexer()
134 : FileLoc(fileloc), LangOpts(langOpts) { in Lexer()
147 : FileLoc(SM.getLocForStartOfFile(FID)), LangOpts(langOpts) { in Lexer()
290 const LangOptions &LangOpts, bool *Invalid) { in getSpelling() argument
312 Result.push_back(Lexer::getCharAndSizeNoWarn(Ptr, CharSize, LangOpts)); in getSpelling()
332 const LangOptions &LangOpts, bool *Invalid) { in getSpelling() argument
372 *OutBuf++ = Lexer::getCharAndSizeNoWarn(Ptr, CharSize, LangOpts); in getSpelling()
391 const LangOptions &LangOpts) { in MeasureTokenLength() argument
413 Lexer TheLexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, in MeasureTokenLength()
423 const LangOptions &LangOpts) { in getBeginningOfFileToken() argument
[all …]
/external/clang/lib/Frontend/
DInitPreprocessor.cpp221 static void AddObjCXXARCLibstdcxxDefines(const LangOptions &LangOpts, in AddObjCXXARCLibstdcxxDefines() argument
250 if (LangOpts.ObjCRuntimeHasWeak) { in AddObjCXXARCLibstdcxxDefines()
273 const LangOptions &LangOpts, in InitializeStandardPredefinedMacros() argument
276 if (!LangOpts.MicrosoftMode && !LangOpts.TraditionalCPP) in InitializeStandardPredefinedMacros()
278 if (LangOpts.Freestanding) in InitializeStandardPredefinedMacros()
283 if (!LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros()
284 if (LangOpts.C11) in InitializeStandardPredefinedMacros()
286 else if (LangOpts.C99) in InitializeStandardPredefinedMacros()
288 else if (!LangOpts.GNUMode && LangOpts.Digraphs) in InitializeStandardPredefinedMacros()
291 if (LangOpts.GNUMode) in InitializeStandardPredefinedMacros()
[all …]
DDiagnosticRenderer.cpp93 const LangOptions &LangOpts) { in getImmediateMacroName() argument
107 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getImmediateMacroName()
127 const LangOptions &LangOpts, in DiagnosticRenderer() argument
129 : SM(SM), LangOpts(LangOpts), DiagOpts(DiagOpts), LastLevel() {} in DiagnosticRenderer()
152 const SourceManager &SM, const LangOptions &LangOpts, in mergeFixits() argument
154 edit::Commit commit(SM, LangOpts); in mergeFixits()
175 edit::EditedSource Editor(SM, LangOpts); in mergeFixits()
208 mergeFixits(FixItHints, SM, LangOpts, MergedFixits); in emitDiagnostic()
365 << getImmediateMacroName(MacroLoc, SM, LangOpts) << "'"; in emitMacroExpansionsAndCarets()
DTextDiagnosticPrinter.cpp30 : OS(os), LangOpts(0), DiagOpts(&diags), SM(0), in TextDiagnosticPrinter()
41 LangOpts = &LO; in BeginSourceFile()
45 LangOpts = 0; in EndSourceFile()
155 assert(LangOpts && "Unexpected diagnostic outside source file processing"); in HandleDiagnostic()
164 TextDiag.reset(new TextDiagnostic(OS, *SM, *LangOpts, *DiagOpts)); in HandleDiagnostic()
/external/clang/include/clang/Lex/
DLexer.h54 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()
243 const LangOptions &LangOpts,
253 const LangOptions &LangOpts,
267 const LangOptions &LangOpts,
276 const LangOptions &LangOpts);
285 const LangOptions &LangOpts);
293 const LangOptions &LangOpts);
[all …]
/external/clang/unittests/Lex/
DLexerTest.cpp45 LangOptions LangOpts; member in __anon85a605f40111::LexerTest
72 HeaderSearch HeaderInfo(FileMgr, Diags, LangOpts, Target.getPtr()); in TEST_F()
73 Preprocessor PP(Diags, LangOpts, in TEST_F()
111 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc)); in TEST_F()
113 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts)); in TEST_F()
114 EXPECT_FALSE(Lexer::isAtEndOfMacroExpansion(idLoc, SourceMgr, LangOpts)); in TEST_F()
115 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc)); in TEST_F()
119 CharSourceRange::getTokenRange(lsqrLoc, idLoc), SourceMgr, LangOpts); in TEST_F()
122 SourceMgr, LangOpts); in TEST_F()
125 SourceMgr, LangOpts); in TEST_F()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DPlistDiagnostics.cpp32 const LangOptions &LangOpts; member in __anondcad6db90111::PlistDiagnostics
37 PlistDiagnostics(const std::string& prefix, const LangOptions &LangOpts,
64 : OutputFile(output), LangOpts(LO), SubPD(subPD), flushed(false), in PlistDiagnostics()
111 const LangOptions &LangOpts, in EmitLocation() argument
119 extend ? Lexer::MeasureTokenLength(Loc, SM, LangOpts) - 1 : 0; in EmitLocation()
132 const LangOptions &LangOpts, in EmitLocation() argument
135 EmitLocation(o, SM, LangOpts, L.asLocation(), FM, indent, extend); in EmitLocation()
139 const LangOptions &LangOpts, in EmitRange() argument
143 EmitLocation(o, SM, LangOpts, R.getBegin(), FM, indent+1); in EmitRange()
144 EmitLocation(o, SM, LangOpts, R.getEnd(), FM, indent+1, !R.isPoint); in EmitRange()
[all …]
DAnalysisManager.cpp36 Ctx(ctx), Diags(diags), LangOpts(lang), PD(pd), in AnalysisManager()
58 LangOpts(ParentAM.LangOpts), PD(ParentAM.getPathDiagnosticConsumer()), in AnalysisManager()
/external/clang/lib/Basic/
DIdentifierTable.cpp73 IdentifierTable::IdentifierTable(const LangOptions &LangOpts, in IdentifierTable() argument
80 AddKeywords(LangOpts); in IdentifierTable()
120 const LangOptions &LangOpts, IdentifierTable &Table) { in AddKeyword() argument
123 else if (LangOpts.CPlusPlus && (Flags & KEYCXX)) AddResult = 2; in AddKeyword()
124 else if (LangOpts.CPlusPlus0x && (Flags & KEYCXX0X)) AddResult = 2; in AddKeyword()
125 else if (LangOpts.C99 && (Flags & KEYC99)) AddResult = 2; in AddKeyword()
126 else if (LangOpts.GNUKeywords && (Flags & KEYGNU)) AddResult = 1; in AddKeyword()
127 else if (LangOpts.MicrosoftExt && (Flags & KEYMS)) AddResult = 1; in AddKeyword()
128 else if (LangOpts.Borland && (Flags & KEYBORLAND)) AddResult = 1; in AddKeyword()
129 else if (LangOpts.Bool && (Flags & BOOLSUPPORT)) AddResult = 2; in AddKeyword()
[all …]
DModule.cpp53 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument
56 .Case("altivec", LangOpts.AltiVec) in hasFeature()
57 .Case("blocks", LangOpts.Blocks) in hasFeature()
58 .Case("cplusplus", LangOpts.CPlusPlus) in hasFeature()
59 .Case("cplusplus11", LangOpts.CPlusPlus0x) in hasFeature()
60 .Case("objc", LangOpts.ObjC1) in hasFeature()
61 .Case("objc_arc", LangOpts.ObjCAutoRefCount) in hasFeature()
62 .Case("opencl", LangOpts.OpenCL) in hasFeature()
68 Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, in isAvailable() argument
75 if (!hasFeature(Current->Requires[I], LangOpts, Target)) { in isAvailable()
[all …]
DBuiltins.cpp51 const LangOptions& LangOpts) { in InitializeBuiltins() argument
54 if (!LangOpts.NoBuiltin || !strchr(BuiltinInfo[i].Attributes, 'f')) { in InitializeBuiltins()
55 if (LangOpts.ObjC1 || in InitializeBuiltins()
62 if (!LangOpts.NoBuiltin || !strchr(TSRecords[i].Attributes, 'f')) in InitializeBuiltins()
/external/clang/lib/ARCMigrate/
DPlistReporter.cpp46 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/include/clang/Edit/
DEditedSource.h29 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()
DCommit.h48 const LangOptions &LangOpts; variable
57 Commit(const SourceManager &SM, const LangOptions &LangOpts,
59 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), Editor(0), in SourceMgr()
/external/clang/tools/libclang/
DCIndexDiagnostic.h114 const LangOptions &LangOpts; member
117 const LangOptions &LangOpts) in CXStoredDiagnostic()
119 Diag(Diag), LangOpts(LangOpts) { } in CXStoredDiagnostic()
DCXSourceLocation.h30 translateSourceLocation(const SourceManager &SM, const LangOptions &LangOpts, in translateSourceLocation() argument
35 CXSourceLocation Result = { { (void*) &SM, (void*) &LangOpts, }, in translateSourceLocation()
55 const LangOptions &LangOpts,
DCXStoredDiagnostic.cpp48 LangOpts, Diag.getLocation()); in getLocation()
97 LangOpts, in getRange()
115 LangOpts, Hint.RemoveRange); in getFixIt()
/external/clang/include/clang/Frontend/
DDiagnosticRenderer.h47 const LangOptions &LangOpts; variable
70 const LangOptions &LangOpts,
135 const LangOptions &LangOpts, in DiagnosticNoteRenderer() argument
137 : DiagnosticRenderer(SM, LangOpts, DiagOpts) {} in DiagnosticNoteRenderer()
DCompilerInvocation.h51 IntrusiveRefCntPtr<LangOptions> LangOpts;
57 LangOptions *getLangOpts() { return LangOpts.getPtr(); } in getLangOpts()
58 const LangOptions *getLangOpts() const { return LangOpts.getPtr(); } in getLangOpts()
/external/clang/include/clang/Rewrite/
DRewriter.h127 const LangOptions *LangOpts; variable
150 : SourceMgr(&SM), LangOpts(&LO) {} in Rewriter()
151 explicit Rewriter() : SourceMgr(0), LangOpts(0) {} in Rewriter()
155 LangOpts = &LO; in setSourceMgr()
158 const LangOptions &getLangOpts() const { return *LangOpts; } in getLangOpts()
/external/clang/unittests/Basic/
DSourceManagerTest.cpp46 LangOptions LangOpts; member in __anonaed220990111::SourceManagerTest
67 HeaderSearch HeaderInfo(FileMgr, Diags, LangOpts, &*Target); in TEST_F()
68 Preprocessor PP(Diags, LangOpts, in TEST_F()
134 HeaderSearch HeaderInfo(FileMgr, Diags, LangOpts, &*Target); in TEST_F()
135 Preprocessor PP(Diags, LangOpts, in TEST_F()
231 HeaderSearch HeaderInfo(FileMgr, Diags, LangOpts, &*Target); in TEST_F()
232 Preprocessor PP(Diags, LangOpts, in TEST_F()
/external/clang/lib/CodeGen/
DBackendUtil.cpp47 const LangOptions &LangOpts; member in __anon43d2d5aa0111::EmitAssemblyHelper
94 : Diags(_Diags), CodeGenOpts(CGOpts), TargetOpts(TOpts), LangOpts(LOpts), in EmitAssemblyHelper()
154 if (LangOpts.ObjCAutoRefCount) { in CreatePasses()
163 if (LangOpts.AddressSanitizer) { in CreatePasses()
170 if (LangOpts.ThreadSanitizer) { in CreatePasses()
347 Options.PositionIndependentExecutable = LangOpts.PIELevel != 0; in AddEmitPasses()
386 if (LangOpts.ObjCAutoRefCount && in AddEmitPasses()
/external/clang/include/clang/AST/
DPrettyPrinter.h37 : Indentation(2), LangOpts(LO), SuppressSpecifiers(false), in PrintingPolicy()
48 LangOptions LangOpts; member
/external/clang/lib/Rewrite/
DRewriteTest.cpp21 const LangOptions &LangOpts = PP.getLangOpts(); in DoRewriteTest() local
23 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts); in DoRewriteTest()

12345