Searched refs:LangOpts (Results 1 - 25 of 109) sorted by relevance

12345

/external/clang/lib/Lex/
H A DPPMacroExpansion.cpp102 if (LangOpts.MicrosoftExt) {
121 if (LangOpts.Modules) {
125 if (!LangOpts.CurrentModule.empty())
633 if (ArgTokens.size() == ArgTokenStart && !LangOpts.C99)
634 Diag(Tok, LangOpts.CPlusPlus11 ?
852 const LangOptions &LangOpts = PP.getLangOpts();
860 .Case("address_sanitizer", LangOpts.Sanitize.Address)
878 .Case("blocks", LangOpts.Blocks)
880 .Case("cxx_exceptions", LangOpts.CXXExceptions)
881 .Case("cxx_rtti", LangOpts
[all...]
H A DLexer.cpp112 LangOpts(PP.getLangOpts()) {
122 if (LangOpts.TraditionalCPP)
133 : FileLoc(fileloc), LangOpts(langOpts) {
146 : FileLoc(SM.getLocForStartOfFile(FID)), LangOpts(langOpts) {
238 const LangOptions &LangOpts, char *Spelling) {
248 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts);
277 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts);
333 const LangOptions &LangOpts, bool *Invalid) {
350 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin()));
366 const LangOptions &LangOpts, boo
237 getSpellingSlow(const Token &Tok, const char *BufPtr, const LangOptions &LangOpts, char *Spelling) argument
364 getSpelling(const Token &Tok, const char *&Buffer, const SourceManager &SourceMgr, const LangOptions &LangOpts, bool *Invalid) argument
412 MeasureTokenLength(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
423 getRawToken(SourceLocation Loc, Token &Result, const SourceManager &SM, const LangOptions &LangOpts, bool IgnoreWhiteSpace) argument
455 getBeginningOfFileToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
515 GetBeginningOfToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
544 ComputePreamble(const llvm::MemoryBuffer *Buffer, const LangOptions &LangOpts, unsigned MaxLines) argument
706 AdvanceToTokenCharacter(SourceLocation TokStart, unsigned CharNo, const SourceManager &SM, const LangOptions &LangOpts) argument
765 getLocForEndOfToken(SourceLocation Loc, unsigned Offset, const SourceManager &SM, const LangOptions &LangOpts) argument
787 isAtStartOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation *MacroBegin) argument
809 isAtEndOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation *MacroEnd) argument
835 makeRangeFromFileLocs(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument
862 makeFileCharRange(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument
926 getSourceText(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts, bool *Invalid) argument
962 getImmediateMacroName(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
1009 isIdentifierBodyChar(char c, const LangOptions &LangOpts) argument
1162 findLocationAfterToken(SourceLocation Loc, tok::TokenKind TKind, const SourceManager &SM, const LangOptions &LangOpts, bool SkipTrailingWhitespaceAndNewLine) argument
1299 getCharAndSizeSlowNoWarn(const char *Ptr, unsigned &Size, const LangOptions &LangOpts) argument
1362 isAllowedIDChar(uint32_t C, const LangOptions &LangOpts) argument
1378 isAllowedInitiallyIDChar(uint32_t C, const LangOptions &LangOpts) argument
1553 isHexaLiteral(const char *Start, const LangOptions &LangOpts) argument
[all...]
/external/clang/include/clang/Lex/
H A DLexer.h54 LangOptions LangOpts; // LangOpts enabled by this language (cache). member in class:clang::Lexer
108 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts,
115 const SourceManager &SM, const LangOptions &LangOpts);
128 const LangOptions &getLangOpts() const { return LangOpts; }
173 assert((!Val || LexingRawMode || LangOpts.TraditionalCPP) &&
250 const LangOptions &LangOpts,
260 const LangOptions &LangOpts,
274 const LangOptions &LangOpts,
283 const LangOptions &LangOpts);
428 getCharAndSizeNoWarn(const char *Ptr, unsigned &Size, const LangOptions &LangOpts) argument
[all...]
/external/clang/tools/libclang/
H A DCXSourceLocation.h30 translateSourceLocation(const SourceManager &SM, const LangOptions &LangOpts, argument
35 CXSourceLocation Result = { { &SM, &LangOpts, },
55 const LangOptions &LangOpts,
H A DCXStoredDiagnostic.cpp49 LangOpts, Diag.getLocation());
93 LangOpts,
111 LangOpts, Hint.RemoveRange);
H A DCIndexDiagnostic.h114 const LangOptions &LangOpts;
117 const LangOptions &LangOpts)
119 Diag(Diag), LangOpts(LangOpts) { }
/external/clang/lib/Frontend/
H A DInitPreprocessor.cpp293 static void AddObjCXXARCLibstdcxxDefines(const LangOptions &LangOpts, argument
322 if (LangOpts.ObjCARCWeak) {
345 const LangOptions &LangOpts,
348 if (!LangOpts.MSVCCompat && !LangOpts.TraditionalCPP)
350 if (LangOpts.Freestanding)
355 if (!LangOpts.CPlusPlus) {
356 if (LangOpts.C11)
358 else if (LangOpts.C99)
360 else if (!LangOpts
344 InitializeStandardPredefinedMacros(const TargetInfo &TI, const LangOptions &LangOpts, const FrontendOptions &FEOpts, MacroBuilder &Builder) argument
401 InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, MacroBuilder &Builder) argument
431 InitializePredefinedMacros(const TargetInfo &TI, const LangOptions &LangOpts, const FrontendOptions &FEOpts, MacroBuilder &Builder) argument
844 const LangOptions &LangOpts = PP.getLangOpts(); local
[all...]
/external/clang/lib/Rewrite/Frontend/
H A DRewriteTest.cpp21 const LangOptions &LangOpts = PP.getLangOpts(); local
23 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts);
/external/clang/include/clang/Basic/
H A DAttributes.h37 const LangOptions &LangOpts);
H A DLangOptions.h124 FPOptions(const LangOptions &LangOpts) : argument
125 fp_contract(LangOpts.DefaultFPContract) {}
/external/clang/lib/Basic/
H A DAttributes.cpp8 const LangOptions &LangOpts) {
6 hasAttribute(AttrSyntax Syntax, const IdentifierInfo *Scope, const IdentifierInfo *Attr, const llvm::Triple &T, const LangOptions &LangOpts) argument
H A DIdentifierTable.cpp75 IdentifierTable::IdentifierTable(const LangOptions &LangOpts, argument
82 AddKeywords(LangOpts);
125 const LangOptions &LangOpts, IdentifierTable &Table) {
128 else if (LangOpts.CPlusPlus && (Flags & KEYCXX)) AddResult = 2;
129 else if (LangOpts.CPlusPlus11 && (Flags & KEYCXX11)) AddResult = 2;
130 else if (LangOpts.C99 && (Flags & KEYC99)) AddResult = 2;
131 else if (LangOpts.GNUKeywords && (Flags & KEYGNU)) AddResult = 1;
132 else if (LangOpts.MicrosoftExt && (Flags & KEYMS)) AddResult = 1;
133 else if (LangOpts.Borland && (Flags & KEYBORLAND)) AddResult = 1;
134 else if (LangOpts
123 AddKeyword(StringRef Keyword, tok::TokenKind TokenCode, unsigned Flags, const LangOptions &LangOpts, IdentifierTable &Table) argument
177 AddKeywords(const LangOptions &LangOpts) argument
[all...]
H A DBuiltins.cpp50 const LangOptions &LangOpts) {
51 bool BuiltinsUnsupported = LangOpts.NoBuiltin &&
54 LangOpts.NoMathBuiltin && BuiltinInfo.HeaderName &&
56 bool GnuModeUnsupported = !LangOpts.GNUMode &&
58 bool MSModeUnsupported = !LangOpts.MicrosoftExt &&
60 bool ObjCUnsupported = !LangOpts.ObjC1 &&
70 const LangOptions& LangOpts) {
73 if (BuiltinIsSupported(BuiltinInfo[i], LangOpts)) {
79 if (BuiltinIsSupported(TSRecords[i], LangOpts))
49 BuiltinIsSupported(const Builtin::Info &BuiltinInfo, const LangOptions &LangOpts) argument
69 InitializeBuiltins(IdentifierTable &Table, const LangOptions& LangOpts) argument
H A DModule.cpp59 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, argument
62 .Case("altivec", LangOpts.AltiVec)
63 .Case("blocks", LangOpts.Blocks)
64 .Case("cplusplus", LangOpts.CPlusPlus)
65 .Case("cplusplus11", LangOpts.CPlusPlus11)
66 .Case("objc", LangOpts.ObjC1)
67 .Case("objc_arc", LangOpts.ObjCAutoRefCount)
68 .Case("opencl", LangOpts.OpenCL)
74 Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, argument
85 if (hasFeature(Current->Requirements[I].first, LangOpts, Targe
156 addRequirement(StringRef Feature, bool RequiredState, const LangOptions &LangOpts, const TargetInfo &Target) argument
[all...]
/external/clang/include/clang/Edit/
H A DEditedSource.h29 const LangOptions &LangOpts; member in class:clang::edit::EditedSource
47 EditedSource(const SourceManager &SM, const LangOptions &LangOpts, argument
49 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec),
53 const LangOptions &getLangOpts() const { return LangOpts; }
H A DCommit.h49 const LangOptions &LangOpts; member in class:clang::edit::Commit
60 Commit(const SourceManager &SM, const LangOptions &LangOpts, argument
62 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), Editor(nullptr),
/external/clang/lib/StaticAnalyzer/Core/
H A DPlistDiagnostics.cpp32 const LangOptions &LangOpts; member in class:__anon18274::PlistDiagnostics
37 const LangOptions &LangOpts,
64 LangOpts(LO),
87 const LangOptions &LangOpts,
110 EmitRange(o, SM, LangOpts, CharSourceRange::getTokenRange(StartEdge), FM,
115 EmitRange(o, SM, LangOpts, CharSourceRange::getTokenRange(EndEdge), FM,
139 const LangOptions &LangOpts,
157 EmitLocation(o, SM, LangOpts, L, FM, indent);
168 EmitRange(o, SM, LangOpts, CharSourceRange::getTokenRange(*I), FM,
199 const LangOptions &LangOpts,
83 ReportControlFlow(raw_ostream &o, const PathDiagnosticControlFlowPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent) argument
136 ReportEvent(raw_ostream &o, const PathDiagnosticPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth, bool isKeyEvent = false) argument
205 ReportCall(raw_ostream &o, const PathDiagnosticCallPiece &P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth) argument
240 ReportMacro(raw_ostream &o, const PathDiagnosticMacroPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth) argument
253 ReportDiag(raw_ostream &o, const PathDiagnosticPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts) argument
259 ReportPiece(raw_ostream &o, const PathDiagnosticPiece &P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth, bool includeControlFlow, bool isKeyEvent) argument
[all...]
/external/clang/include/clang/AST/
H A DPrettyPrinter.h38 : LangOpts(LO), Indentation(2), SuppressSpecifiers(false),
48 LangOptions LangOpts; member in struct:clang::PrintingPolicy
/external/clang/unittests/Lex/
H A DLexerTest.cpp69 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
71 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
99 SourceMgr, LangOpts, &Invalid);
110 LangOptions LangOpts; member in class:__anon19544::LexerTest
296 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc));
298 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts));
299 EXPECT_FALSE(Lexer::isAtEndOfMacroExpansion(idLoc, SourceMgr, LangOpts));
300 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc));
304 CharSourceRange::getTokenRange(lsqrLoc, idLoc), SourceMgr, LangOpts);
307 SourceMgr, LangOpts);
[all...]
/external/clang/lib/Edit/
H A DEditedSource.cpp244 static bool canBeJoined(char left, char right, const LangOptions &LangOpts) { argument
247 return !(Lexer::isIdentifierBodyChar(left, LangOpts) &&
248 Lexer::isIdentifierBodyChar(right, LangOpts));
254 const LangOptions &LangOpts) {
255 if (!canBeJoined(left, right, LangOpts))
259 if (canBeJoined(beforeWSpace, right, LangOpts))
267 static void adjustRemoval(const SourceManager &SM, const LangOptions &LangOpts, argument
271 SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts);
295 LangOpts))
300 if (!canBeJoined(buffer[begin-1], buffer[end], LangOpts))
253 canRemoveWhitespace(char left, char beforeWSpace, char right, const LangOptions &LangOpts) argument
304 applyRewrite(EditsReceiver &receiver, StringRef text, FileOffset offs, unsigned len, const SourceManager &SM, const LangOptions &LangOpts) argument
[all...]
/external/clang/include/clang/Frontend/
H A DLogDiagnosticPrinter.h47 const LangOptions *LangOpts; member in class:clang::LogDiagnosticPrinter
69 LangOpts = &LO;
H A DCompilerInvocation.h57 std::shared_ptr<LangOptions> LangOpts; member in class:clang::CompilerInvocationBase
76 LangOptions *getLangOpts() { return LangOpts.get(); }
77 const LangOptions *getLangOpts() const { return LangOpts.get(); }
H A DDiagnosticRenderer.h48 const LangOptions &LangOpts; member in class:clang::DiagnosticRenderer
70 DiagnosticRenderer(const LangOptions &LangOpts,
155 DiagnosticNoteRenderer(const LangOptions &LangOpts, argument
157 : DiagnosticRenderer(LangOpts, DiagOpts) {}
/external/clang/lib/ARCMigrate/
H A DPlistReporter.cpp38 const LangOptions &LangOpts) {
103 EmitLocation(o, SM, LangOpts, D.getLocation(), FM, 2);
112 EmitRange(o, SM, LangOpts, *RI, FM, 4);
35 writeARCDiagsToPlist(const std::string &outPath, ArrayRef<StoredDiagnostic> diags, SourceManager &SM, const LangOptions &LangOpts) argument
/external/clang/lib/CodeGen/
H A DBackendUtil.cpp51 const LangOptions &LangOpts; member in class:__anon17806::EmitAssemblyHelper
114 : Diags(_Diags), CodeGenOpts(CGOpts), TargetOpts(TOpts), LangOpts(LOpts),
132 // We need this wrapper to access LangOpts and CGOpts from extension functions
137 const LangOptions &LangOpts)
138 : PassManagerBuilder(), CGOpts(CGOpts), LangOpts(LangOpts) {}
140 const LangOptions &getLangOpts() const { return LangOpts; }
143 const LangOptions &LangOpts; member in class:__anon17806::PassManagerBuilderWrapper
231 PassManagerBuilderWrapper PMBuilder(CodeGenOpts, LangOpts);
251 if (LangOpts
136 PassManagerBuilderWrapper(const CodeGenOptions &CGOpts, const LangOptions &LangOpts) argument
[all...]

Completed in 567 milliseconds

12345