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

12345

/external/clang/include/clang/Lex/
H A DLexer.h54 LangOptions LangOpts; // LangOpts enabled by this language (cache). member in class:clang::Lexer
102 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts,
109 const SourceManager &SM, const LangOptions &LangOpts);
122 const LangOptions &getLangOpts() const { return LangOpts; }
177 assert((!Val || LexingRawMode || LangOpts.TraditionalCPP) &&
249 const LangOptions &LangOpts,
259 const LangOptions &LangOpts,
273 const LangOptions &LangOpts,
282 const LangOptions &LangOpts);
426 getCharAndSizeNoWarn(const char *Ptr, unsigned &Size, const LangOptions &LangOpts) argument
[all...]
/external/clang/lib/Lex/
H A DPPMacroExpansion.cpp206 if (LangOpts.Modules) {
210 if (!LangOpts.CurrentModule.empty())
220 if (LangOpts.MicrosoftExt)
614 if (ArgTokens.size() == ArgTokenStart && !LangOpts.C99)
615 Diag(Tok, LangOpts.CPlusPlus11 ?
794 const LangOptions &LangOpts = PP.getLangOpts();
802 .Case("address_sanitizer", LangOpts.Sanitize.Address)
820 .Case("blocks", LangOpts.Blocks)
821 .Case("cxx_exceptions", LangOpts.Exceptions)
822 .Case("cxx_rtti", LangOpts
[all...]
H A DLexer.cpp120 LangOpts(PP.getLangOpts()) {
130 if (LangOpts.TraditionalCPP)
141 : FileLoc(fileloc), LangOpts(langOpts) {
154 : FileLoc(SM.getLocForStartOfFile(FID)), LangOpts(langOpts) {
246 const LangOptions &LangOpts, char *Spelling) {
256 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts);
285 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts);
341 const LangOptions &LangOpts, bool *Invalid) {
358 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin()));
374 const LangOptions &LangOpts, boo
245 getSpellingSlow(const Token &Tok, const char *BufPtr, const LangOptions &LangOpts, char *Spelling) argument
372 getSpelling(const Token &Tok, const char *&Buffer, const SourceManager &SourceMgr, const LangOptions &LangOpts, bool *Invalid) argument
420 MeasureTokenLength(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
431 getRawToken(SourceLocation Loc, Token &Result, const SourceManager &SM, const LangOptions &LangOpts) argument
462 getBeginningOfFileToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
522 GetBeginningOfToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
551 ComputePreamble(const llvm::MemoryBuffer *Buffer, const LangOptions &LangOpts, unsigned MaxLines) argument
701 AdvanceToTokenCharacter(SourceLocation TokStart, unsigned CharNo, const SourceManager &SM, const LangOptions &LangOpts) argument
760 getLocForEndOfToken(SourceLocation Loc, unsigned Offset, const SourceManager &SM, const LangOptions &LangOpts) argument
782 isAtStartOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation *MacroBegin) argument
808 isAtEndOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation *MacroEnd) argument
839 makeRangeFromFileLocs(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument
866 makeFileCharRange(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument
930 getSourceText(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts, bool *Invalid) argument
966 getImmediateMacroName(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
1013 isIdentifierBodyChar(char c, const LangOptions &LangOpts) argument
1166 findLocationAfterToken(SourceLocation Loc, tok::TokenKind TKind, const SourceManager &SM, const LangOptions &LangOpts, bool SkipTrailingWhitespaceAndNewLine) argument
1303 getCharAndSizeSlowNoWarn(const char *Ptr, unsigned &Size, const LangOptions &LangOpts) argument
1362 isAllowedIDChar(uint32_t C, const LangOptions &LangOpts) argument
1371 isAllowedInitiallyIDChar(uint32_t C, const LangOptions &LangOpts) argument
1531 isHexaLiteral(const char *Start, const LangOptions &LangOpts) argument
[all...]
/external/clang/unittests/Lex/
H A DLexerTest.cpp50 LangOptions LangOpts; member in class:__anon5092::LexerTest
82 HeaderSearch HeaderInfo(new HeaderSearchOptions, FileMgr, Diags, LangOpts,
84 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, Target.getPtr(),
121 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc));
123 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts));
124 EXPECT_FALSE(Lexer::isAtEndOfMacroExpansion(idLoc, SourceMgr, LangOpts));
125 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc));
129 CharSourceRange::getTokenRange(lsqrLoc, idLoc), SourceMgr, LangOpts);
132 SourceMgr, LangOpts);
135 SourceMgr, LangOpts);
[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.cpp47 LangOpts, Diag.getLocation());
91 LangOpts,
109 LangOpts, Hint.RemoveRange);
H A DCIndexDiagnostic.h114 const LangOptions &LangOpts;
117 const LangOptions &LangOpts)
119 Diag(Diag), LangOpts(LangOpts) { }
/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/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.h48 const LangOptions &LangOpts; member in class:clang::edit::Commit
57 Commit(const SourceManager &SM, const LangOptions &LangOpts, argument
59 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), Editor(0),
/external/clang/lib/Basic/
H A DIdentifierTable.cpp74 IdentifierTable::IdentifierTable(const LangOptions &LangOpts, argument
81 AddKeywords(LangOpts);
123 const LangOptions &LangOpts, IdentifierTable &Table) {
126 else if (LangOpts.CPlusPlus && (Flags & KEYCXX)) AddResult = 2;
127 else if (LangOpts.CPlusPlus11 && (Flags & KEYCXX11)) AddResult = 2;
128 else if (LangOpts.C99 && (Flags & KEYC99)) AddResult = 2;
129 else if (LangOpts.GNUKeywords && (Flags & KEYGNU)) AddResult = 1;
130 else if (LangOpts.MicrosoftExt && (Flags & KEYMS)) AddResult = 1;
131 else if (LangOpts.Borland && (Flags & KEYBORLAND)) AddResult = 1;
132 else if (LangOpts
121 AddKeyword(StringRef Keyword, tok::TokenKind TokenCode, unsigned Flags, const LangOptions &LangOpts, IdentifierTable &Table) argument
174 AddKeywords(const LangOptions &LangOpts) argument
[all...]
H A DModule.cpp54 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, argument
57 .Case("altivec", LangOpts.AltiVec)
58 .Case("blocks", LangOpts.Blocks)
59 .Case("cplusplus", LangOpts.CPlusPlus)
60 .Case("cplusplus11", LangOpts.CPlusPlus11)
61 .Case("objc", LangOpts.ObjC1)
62 .Case("objc_arc", LangOpts.ObjCAutoRefCount)
63 .Case("opencl", LangOpts.OpenCL)
69 Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, argument
76 if (!hasFeature(Current->Requires[I], LangOpts, Targe
146 addRequirement(StringRef Feature, const LangOptions &LangOpts, const TargetInfo &Target) argument
[all...]
H A DBuiltins.cpp51 const LangOptions& LangOpts) {
54 if (!LangOpts.NoBuiltin || !strchr(BuiltinInfo[i].Attributes, 'f')) {
55 if (LangOpts.ObjC1 ||
62 if (!LangOpts.NoBuiltin || !strchr(TSRecords[i].Attributes, 'f'))
50 InitializeBuiltins(IdentifierTable &Table, const LangOptions& LangOpts) argument
/external/clang/lib/Frontend/
H A DInitPreprocessor.cpp235 static void AddObjCXXARCLibstdcxxDefines(const LangOptions &LangOpts, argument
264 if (LangOpts.ObjCARCWeak) {
287 const LangOptions &LangOpts,
290 if (!LangOpts.MicrosoftMode && !LangOpts.TraditionalCPP)
292 if (LangOpts.Freestanding)
297 if (!LangOpts.CPlusPlus) {
298 if (LangOpts.C11)
300 else if (LangOpts.C99)
302 else if (!LangOpts
286 InitializeStandardPredefinedMacros(const TargetInfo &TI, const LangOptions &LangOpts, const FrontendOptions &FEOpts, MacroBuilder &Builder) argument
327 InitializePredefinedMacros(const TargetInfo &TI, const LangOptions &LangOpts, const FrontendOptions &FEOpts, MacroBuilder &Builder) argument
727 const LangOptions &LangOpts = PP.getLangOpts(); local
[all...]
/external/clang/include/clang/AST/
H A DPrettyPrinter.h38 : LangOpts(LO), Indentation(2), SuppressSpecifiers(false),
46 LangOptions LangOpts; member in struct:clang::PrintingPolicy
/external/clang/include/clang/Frontend/
H A DLogDiagnosticPrinter.h44 const LangOptions *LangOpts; member in class:clang::LogDiagnosticPrinter
66 LangOpts = &LO;
H A DCompilerInvocation.h54 IntrusiveRefCntPtr<LangOptions> LangOpts; member in class:clang::CompilerInvocationBase
73 LangOptions *getLangOpts() { return LangOpts.getPtr(); }
74 const LangOptions *getLangOpts() const { return LangOpts.getPtr(); }
H A DDiagnosticRenderer.h48 const LangOptions &LangOpts; member in class:clang::DiagnosticRenderer
70 DiagnosticRenderer(const LangOptions &LangOpts,
156 DiagnosticNoteRenderer(const LangOptions &LangOpts, argument
158 : DiagnosticRenderer(LangOpts, DiagOpts) {}
/external/clang/lib/ARCMigrate/
H A DPlistReporter.cpp46 const LangOptions &LangOpts,
54 extend ? Lexer::MeasureTokenLength(Loc, SM, LangOpts) - 1 : 0;
67 const LangOptions &LangOpts,
71 EmitLocation(o, SM, LangOpts, R.getBegin(), FM, indent+1);
72 EmitLocation(o, SM, LangOpts, R.getEnd(), FM, indent+1, R.isTokenRange());
97 const LangOptions &LangOpts) {
174 EmitLocation(o, SM, LangOpts, D.getLocation(), FM, 2);
183 EmitRange(o, SM, LangOpts, *RI, FM, 4);
45 EmitLocation(raw_ostream& o, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation L, const FIDMap &FM, unsigned indent, bool extend = false) argument
66 EmitRange(raw_ostream& o, const SourceManager &SM, const LangOptions &LangOpts, CharSourceRange R, const FIDMap &FM, unsigned indent) argument
94 writeARCDiagsToPlist(const std::string &outPath, ArrayRef<StoredDiagnostic> diags, SourceManager &SM, const LangOptions &LangOpts) argument
/external/clang/lib/StaticAnalyzer/Core/
H A DPlistDiagnostics.cpp34 const LangOptions &LangOpts; member in class:__anon4108::PlistDiagnostics
39 const LangOptions &LangOpts,
65 LangOpts(LO),
108 const LangOptions &LangOpts,
116 extend ? Lexer::MeasureTokenLength(Loc, SM, LangOpts) - 1 : 0;
129 const LangOptions &LangOpts,
132 EmitLocation(o, SM, LangOpts, L.asLocation(), FM, indent, extend);
136 const LangOptions &LangOpts,
140 EmitLocation(o, SM, LangOpts, R.getBegin(), FM, indent+1);
141 EmitLocation(o, SM, LangOpts,
107 EmitLocation(raw_ostream &o, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation L, const FIDMap &FM, unsigned indent, bool extend = false) argument
128 EmitLocation(raw_ostream &o, const SourceManager &SM, const LangOptions &LangOpts, const PathDiagnosticLocation &L, const FIDMap& FM, unsigned indent, bool extend = false) argument
135 EmitRange(raw_ostream &o, const SourceManager &SM, const LangOptions &LangOpts, PathDiagnosticRange R, const FIDMap &FM, unsigned indent) argument
162 ReportControlFlow(raw_ostream &o, const PathDiagnosticControlFlowPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent) argument
213 ReportEvent(raw_ostream &o, const PathDiagnosticPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth) argument
275 ReportCall(raw_ostream &o, const PathDiagnosticCallPiece &P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth) argument
307 ReportMacro(raw_ostream &o, const PathDiagnosticMacroPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth) argument
320 ReportDiag(raw_ostream &o, const PathDiagnosticPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts) argument
326 ReportPiece(raw_ostream &o, const PathDiagnosticPiece &P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth, bool includeControlFlow) argument
[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/Rewrite/Core/
H A DRewriter.h131 const LangOptions *LangOpts; member in class:clang::Rewriter
154 : SourceMgr(&SM), LangOpts(&LO) {}
155 explicit Rewriter() : SourceMgr(0), LangOpts(0) {}
159 LangOpts = &LO;
162 const LangOptions &getLangOpts() const { return *LangOpts; }
/external/clang/lib/CodeGen/
H A DBackendUtil.cpp48 const LangOptions &LangOpts; member in class:__anon3699::EmitAssemblyHelper
113 : Diags(_Diags), CodeGenOpts(CGOpts), TargetOpts(TOpts), LangOpts(LOpts),
126 // We need this wrapper to access LangOpts and CGOpts from extension functions
131 const LangOptions &LangOpts)
132 : PassManagerBuilder(), CGOpts(CGOpts), LangOpts(LangOpts) {}
134 const LangOptions &getLangOpts() const { return LangOpts; }
137 const LangOptions &LangOpts; member in class:__anon3699::PassManagerBuilderWrapper
167 const LangOptions &LangOpts = BuilderWrapper.getLangOpts(); local
169 LangOpts
130 PassManagerBuilderWrapper(const CodeGenOptions &CGOpts, const LangOptions &LangOpts) argument
[all...]
/external/clang/include/clang/Basic/
H A DLangOptions.h111 FPOptions(const LangOptions &LangOpts) : argument
112 fp_contract(LangOpts.DefaultFPContract) {}
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAnalysisManager.h35 const LangOptions &LangOpts; member in class:clang::ento::AnalysisManager
88 return LangOpts;

Completed in 2875 milliseconds

12345