Home
last modified time | relevance | path

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

1234

/trueos/contrib/llvm/tools/clang/lib/Lex/
HDPPMacroExpansion.cpp110 if (LangOpts.Modules) { in RegisterBuiltinMacros()
114 if (!LangOpts.CurrentModule.empty()) in RegisterBuiltinMacros()
124 if (LangOpts.MicrosoftExt) in RegisterBuiltinMacros()
626 if (ArgTokens.size() == ArgTokenStart && !LangOpts.C99) in ReadFunctionLikeMacroArgs()
627 Diag(Tok, LangOpts.CPlusPlus11 ? in ReadFunctionLikeMacroArgs()
856 const LangOptions &LangOpts = PP.getLangOpts(); in HasFeature() local
864 .Case("address_sanitizer", LangOpts.Sanitize.Address) in HasFeature()
882 .Case("blocks", LangOpts.Blocks) in HasFeature()
884 .Case("cxx_exceptions", LangOpts.Exceptions) in HasFeature()
885 .Case("cxx_rtti", LangOpts.RTTI) in HasFeature()
[all …]
HDLexer.cpp125 LangOpts(PP.getLangOpts()) { in Lexer()
135 if (LangOpts.TraditionalCPP) in resetExtendedTokenMode()
146 : FileLoc(fileloc), LangOpts(langOpts) { in Lexer()
159 : FileLoc(SM.getLocForStartOfFile(FID)), LangOpts(langOpts) { in Lexer()
251 const LangOptions &LangOpts, char *Spelling) { in getSpellingSlow() argument
261 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow()
290 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow()
346 const LangOptions &LangOpts, bool *Invalid) { in getSpelling() argument
363 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin())); in getSpelling()
379 const LangOptions &LangOpts, bool *Invalid) { in getSpelling() argument
[all …]
/trueos/contrib/llvm/tools/clang/lib/Frontend/
HDInitPreprocessor.cpp248 static void AddObjCXXARCLibstdcxxDefines(const LangOptions &LangOpts, in AddObjCXXARCLibstdcxxDefines() argument
277 if (LangOpts.ObjCARCWeak) { in AddObjCXXARCLibstdcxxDefines()
300 const LangOptions &LangOpts, in InitializeStandardPredefinedMacros() argument
303 if (!LangOpts.MicrosoftMode && !LangOpts.TraditionalCPP) in InitializeStandardPredefinedMacros()
305 if (LangOpts.Freestanding) in InitializeStandardPredefinedMacros()
310 if (!LangOpts.CPlusPlus) { in InitializeStandardPredefinedMacros()
311 if (LangOpts.C11) in InitializeStandardPredefinedMacros()
313 else if (LangOpts.C99) in InitializeStandardPredefinedMacros()
315 else if (!LangOpts.GNUMode && LangOpts.Digraphs) in InitializeStandardPredefinedMacros()
319 if (LangOpts.CPlusPlus1y) in InitializeStandardPredefinedMacros()
[all …]
HDFrontendActions.cpp133 const LangOptions &LangOpts) { in addHeaderInclude() argument
134 if (LangOpts.ObjC1) in addHeaderInclude()
144 const LangOptions &LangOpts) { in addHeaderInclude() argument
145 addHeaderInclude(Header->getName(), Includes, LangOpts); in addHeaderInclude()
155 static void collectModuleHeaderIncludes(const LangOptions &LangOpts, in collectModuleHeaderIncludes() argument
168 addHeaderInclude(Header, Includes, LangOpts); in collectModuleHeaderIncludes()
176 addHeaderInclude(UmbrellaHeader, Includes, LangOpts); in collectModuleHeaderIncludes()
202 addHeaderInclude(Dir->path(), Includes, LangOpts); in collectModuleHeaderIncludes()
210 collectModuleHeaderIncludes(LangOpts, FileMgr, ModMap, *Sub, Includes); in collectModuleHeaderIncludes()
337 virtual bool ReadLanguageOptions(const LangOptions &LangOpts, in ReadLanguageOptions() argument
[all …]
HDDiagnosticRenderer.cpp44 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()
HDVerifyDiagnosticConsumer.cpp34 LangOpts(0), SrcManager(0), ActiveSourceFiles(0), Status(HasNoDirectives) in VerifyDiagnosticConsumer()
75 void VerifyDiagnosticConsumer::BeginSourceFile(const LangOptions &LangOpts, in BeginSourceFile() argument
81 this->LangOpts = &LangOpts; in BeginSourceFile()
93 PrimaryClient->BeginSourceFile(LangOpts, PP); in BeginSourceFile()
108 LangOpts = 0; in EndSourceFile()
541 const LangOptions &LangOpts) { in findDirectives() argument
548 Lexer RawLex(FID, FromFile, SM, LangOpts); in findDirectives()
561 std::string Comment = RawLex.getSpelling(Tok, SM, LangOpts); in findDirectives()
739 FoundDirectives = !LangOpts || findDirectives(SM, FID, *LangOpts); in UpdateParsedFileStatus()
HDSerializedDiagnosticPrinter.cpp55 SDiagsRenderer(SDiagsWriter &Writer, const LangOptions &LangOpts, in SDiagsRenderer() argument
57 : DiagnosticNoteRenderer(LangOpts, DiagOpts), Writer(Writer) {} in SDiagsRenderer()
96 : LangOpts(0), OriginalInstance(false), State(State) { } in SDiagsWriter()
100 : LangOpts(0), OriginalInstance(true), State(new SharedState(os, diags)) in SDiagsWriter()
112 LangOpts = &LO; in BeginSourceFile()
181 const LangOptions *LangOpts; member in __anon254185010111::SDiagsWriter
309 SM, *LangOpts); in AddCharSourceRangeToRecord()
557 assert(Info.hasSourceManager() && LangOpts && in HandleDiagnostic()
559 SDiagsRenderer Renderer(*this, *LangOpts, &*State->DiagOpts); in HandleDiagnostic()
/trueos/contrib/llvm/tools/clang/include/clang/Lex/
HDLexer.h54 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()
248 const LangOptions &LangOpts,
258 const LangOptions &LangOpts,
272 const LangOptions &LangOpts,
281 const LangOptions &LangOpts);
287 const LangOptions &LangOpts,
[all …]
/trueos/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
HDPlistDiagnostics.cpp34 const LangOptions &LangOpts; member in __anond9bd33b60111::PlistDiagnostics
39 const LangOptions &LangOpts,
64 LangOpts(LO), in PlistDiagnostics()
107 const LangOptions &LangOpts, in EmitLocation() argument
115 extend ? Lexer::MeasureTokenLength(Loc, SM, LangOpts) - 1 : 0; in EmitLocation()
128 const LangOptions &LangOpts, in EmitLocation() argument
131 EmitLocation(o, SM, LangOpts, L.asLocation(), FM, indent, extend); in EmitLocation()
135 const LangOptions &LangOpts, in EmitRange() argument
139 EmitLocation(o, SM, LangOpts, R.getBegin(), FM, indent+1); in EmitRange()
140 EmitLocation(o, SM, LangOpts, R.getEnd(), FM, indent+1, !R.isPoint); in EmitRange()
[all …]
/trueos/contrib/llvm/tools/clang/lib/Basic/
HDIdentifierTable.cpp73 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 …]
HDBuiltins.cpp50 const LangOptions &LangOpts) { in BuiltinIsSupported() argument
51 bool BuiltinsUnsupported = LangOpts.NoBuiltin && in BuiltinIsSupported()
54 LangOpts.NoMathBuiltin && BuiltinInfo.HeaderName && in BuiltinIsSupported()
56 bool GnuModeUnsupported = !LangOpts.GNUMode && in BuiltinIsSupported()
58 bool MSModeUnsupported = !LangOpts.MicrosoftExt && in BuiltinIsSupported()
60 bool ObjCUnsupported = !LangOpts.ObjC1 && in BuiltinIsSupported()
70 const LangOptions& LangOpts) { in InitializeBuiltins() argument
73 if (BuiltinIsSupported(BuiltinInfo[i], LangOpts)) { in InitializeBuiltins()
79 if (!LangOpts.NoBuiltin || !strchr(TSRecords[i].Attributes, 'f')) in InitializeBuiltins()
HDModule.cpp56 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument
59 .Case("altivec", LangOpts.AltiVec) in hasFeature()
60 .Case("blocks", LangOpts.Blocks) in hasFeature()
61 .Case("cplusplus", LangOpts.CPlusPlus) in hasFeature()
62 .Case("cplusplus11", LangOpts.CPlusPlus11) in hasFeature()
63 .Case("objc", LangOpts.ObjC1) in hasFeature()
64 .Case("objc_arc", LangOpts.ObjCAutoRefCount) in hasFeature()
65 .Case("opencl", LangOpts.OpenCL) in hasFeature()
71 Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, in isAvailable() argument
78 if (hasFeature(Current->Requirements[I].first, LangOpts, Target) != in isAvailable()
[all …]
/trueos/contrib/llvm/tools/clang/lib/CodeGen/
HDBackendUtil.cpp48 const LangOptions &LangOpts; member in __anon80ec36070111::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 __anon80ec36070111::PassManagerBuilderWrapper
175 const LangOptions &LangOpts = BuilderWrapper.getLangOpts(); in addAddressSanitizerPasses() local
177 LangOpts.Sanitize.InitOrder, in addAddressSanitizerPasses()
178 LangOpts.Sanitize.UseAfterReturn, in addAddressSanitizerPasses()
179 LangOpts.Sanitize.UseAfterScope, in addAddressSanitizerPasses()
[all …]
/trueos/contrib/llvm/tools/clang/lib/Edit/
HDEditedSource.cpp246 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 …]
HDCommit.cpp39 : SourceMgr(Editor.getSourceManager()), LangOpts(Editor.getLangOpts()), in Commit()
254 unsigned tokLen = Lexer::MeasureTokenLength(spellLoc, SourceMgr, LangOpts); in canInsertAfterToken()
271 loc = Lexer::getLocForEndOfToken(loc, 0, SourceMgr, LangOpts); in canInsertAfterToken()
300 range = Lexer::makeFileCharRange(range, SM, LangOpts); in canRemoveRange()
343 return Lexer::isAtStartOfMacroExpansion(loc, SourceMgr, LangOpts, MacroBegin); in isAtStartOfMacroExpansion()
347 return Lexer::isAtEndOfMacroExpansion(loc, SourceMgr, LangOpts, MacroEnd); in isAtEndOfMacroExpansion()
/trueos/contrib/llvm/tools/clang/lib/ARCMigrate/
HDPlistReporter.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()
/trueos/contrib/llvm/tools/clang/include/clang/Edit/
HDEditedSource.h29 const LangOptions &LangOpts; variable
48 EditedSource(const SourceManager &SM, const LangOptions &LangOpts,
51 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), in SourceMgr()
56 const LangOptions &getLangOpts() const { return LangOpts; } in getLangOpts()
HDCommit.h49 const LangOptions &LangOpts; variable
61 Commit(const SourceManager &SM, const LangOptions &LangOpts,
63 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), Editor(0), in SourceMgr()
/trueos/contrib/llvm/tools/clang/include/clang/Rewrite/Core/
HDRewriter.h129 const LangOptions *LangOpts; variable
153 : SourceMgr(&SM), LangOpts(&LO) {} in Rewriter()
154 explicit Rewriter() : SourceMgr(0), LangOpts(0) {} in Rewriter()
158 LangOpts = &LO; in setSourceMgr()
161 const LangOptions &getLangOpts() const { return *LangOpts; } in getLangOpts()
/trueos/contrib/llvm/tools/clang/include/clang/Frontend/
HDDiagnosticRenderer.h48 const LangOptions &LangOpts;
70 DiagnosticRenderer(const LangOptions &LangOpts,
156 DiagnosticNoteRenderer(const LangOptions &LangOpts, in DiagnosticNoteRenderer() argument
158 : DiagnosticRenderer(LangOpts, DiagOpts) {} in DiagnosticNoteRenderer()
HDCompilerInvocation.h55 IntrusiveRefCntPtr<LangOptions> LangOpts;
74 LangOptions *getLangOpts() { return LangOpts.getPtr(); } in getLangOpts()
75 const LangOptions *getLangOpts() const { return LangOpts.getPtr(); } in getLangOpts()
HDLogDiagnosticPrinter.h44 const LangOptions *LangOpts; variable
66 LangOpts = &LO; in BeginSourceFile()
/trueos/contrib/llvm/tools/clang/lib/Rewrite/Frontend/
HDRewriteTest.cpp21 const LangOptions &LangOpts = PP.getLangOpts(); in DoRewriteTest() local
23 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts); in DoRewriteTest()
/trueos/contrib/llvm/tools/clang/include/clang/AST/
HDPrettyPrinter.h38 : LangOpts(LO), Indentation(2), SuppressSpecifiers(false), in PrintingPolicy()
47 LangOptions LangOpts; member
/trueos/contrib/llvm/tools/clang/lib/AST/
HDTemplateBase.cpp489 LangOptions LangOpts; in operator <<() local
490 LangOpts.CPlusPlus = true; in operator <<()
491 PrintingPolicy Policy(LangOpts); in operator <<()
500 LangOptions LangOpts; in operator <<() local
501 LangOpts.CPlusPlus = true; in operator <<()
502 PrintingPolicy Policy(LangOpts); in operator <<()

1234