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

1234

/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Lex/
H A DPPMacroExpansion.cpp110 if (LangOpts.Modules) {
114 if (!LangOpts.CurrentModule.empty())
124 if (LangOpts.MicrosoftExt)
626 if (ArgTokens.size() == ArgTokenStart && !LangOpts.C99)
627 Diag(Tok, LangOpts.CPlusPlus11 ?
856 const LangOptions &LangOpts = PP.getLangOpts();
864 .Case("address_sanitizer", LangOpts.Sanitize.Address)
882 .Case("blocks", LangOpts.Blocks)
884 .Case("cxx_exceptions", LangOpts.Exceptions)
885 .Case("cxx_rtti", LangOpts
[all...]
H A DLexer.cpp125 LangOpts(PP.getLangOpts()) {
135 if (LangOpts.TraditionalCPP)
146 : FileLoc(fileloc), LangOpts(langOpts) {
159 : FileLoc(SM.getLocForStartOfFile(FID)), LangOpts(langOpts) {
251 const LangOptions &LangOpts, char *Spelling) {
261 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts);
290 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts);
346 const LangOptions &LangOpts, bool *Invalid) {
363 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin()));
379 const LangOptions &LangOpts, boo
250 getSpellingSlow(const Token &Tok, const char *BufPtr, const LangOptions &LangOpts, char *Spelling) argument
377 getSpelling(const Token &Tok, const char *&Buffer, const SourceManager &SourceMgr, const LangOptions &LangOpts, bool *Invalid) argument
425 MeasureTokenLength(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
436 getRawToken(SourceLocation Loc, Token &Result, const SourceManager &SM, const LangOptions &LangOpts, bool IgnoreWhiteSpace) argument
468 getBeginningOfFileToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
528 GetBeginningOfToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
557 ComputePreamble(const llvm::MemoryBuffer *Buffer, const LangOptions &LangOpts, unsigned MaxLines) argument
720 AdvanceToTokenCharacter(SourceLocation TokStart, unsigned CharNo, const SourceManager &SM, const LangOptions &LangOpts) argument
779 getLocForEndOfToken(SourceLocation Loc, unsigned Offset, const SourceManager &SM, const LangOptions &LangOpts) argument
801 isAtStartOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation *MacroBegin) argument
823 isAtEndOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation *MacroEnd) argument
849 makeRangeFromFileLocs(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument
876 makeFileCharRange(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument
940 getSourceText(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts, bool *Invalid) argument
976 getImmediateMacroName(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
1023 isIdentifierBodyChar(char c, const LangOptions &LangOpts) argument
1176 findLocationAfterToken(SourceLocation Loc, tok::TokenKind TKind, const SourceManager &SM, const LangOptions &LangOpts, bool SkipTrailingWhitespaceAndNewLine) argument
1313 getCharAndSizeSlowNoWarn(const char *Ptr, unsigned &Size, const LangOptions &LangOpts) argument
1376 isAllowedIDChar(uint32_t C, const LangOptions &LangOpts) argument
1392 isAllowedInitiallyIDChar(uint32_t C, const LangOptions &LangOpts) argument
1563 isHexaLiteral(const char *Start, const LangOptions &LangOpts) argument
[all...]
/freebsd-9.3-release/contrib/llvm/tools/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) &&
248 const LangOptions &LangOpts,
258 const LangOptions &LangOpts,
272 const LangOptions &LangOpts,
281 const LangOptions &LangOpts);
426 getCharAndSizeNoWarn(const char *Ptr, unsigned &Size, const LangOptions &LangOpts) argument
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Rewrite/Frontend/
H A DRewriteTest.cpp21 const LangOptions &LangOpts = PP.getLangOpts(); local
23 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts);
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Frontend/
H A DInitPreprocessor.cpp248 static void AddObjCXXARCLibstdcxxDefines(const LangOptions &LangOpts, argument
277 if (LangOpts.ObjCARCWeak) {
300 const LangOptions &LangOpts,
303 if (!LangOpts.MicrosoftMode && !LangOpts.TraditionalCPP)
305 if (LangOpts.Freestanding)
310 if (!LangOpts.CPlusPlus) {
311 if (LangOpts.C11)
313 else if (LangOpts.C99)
315 else if (!LangOpts
299 InitializeStandardPredefinedMacros(const TargetInfo &TI, const LangOptions &LangOpts, const FrontendOptions &FEOpts, MacroBuilder &Builder) argument
351 InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, MacroBuilder &Builder) argument
381 InitializePredefinedMacros(const TargetInfo &TI, const LangOptions &LangOpts, const FrontendOptions &FEOpts, MacroBuilder &Builder) argument
801 const LangOptions &LangOpts = PP.getLangOpts(); local
[all...]
H A DDiagnosticRenderer.cpp44 const LangOptions &LangOpts) {
63 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts);
68 DiagnosticRenderer::DiagnosticRenderer(const LangOptions &LangOpts, argument
70 : LangOpts(LangOpts), DiagOpts(DiagOpts), LastLevel() {}
93 const SourceManager &SM, const LangOptions &LangOpts,
95 edit::Commit commit(SM, LangOpts);
116 edit::EditedSource Editor(SM, LangOpts);
144 mergeFixits(FixItHints, *SM, LangOpts, MergedFixits);
460 StringRef MacroName = getImmediateMacroName(Loc, SM, LangOpts);
42 getImmediateMacroName(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument
92 mergeFixits(ArrayRef<FixItHint> FixItHints, const SourceManager &SM, const LangOptions &LangOpts, SmallVectorImpl<FixItHint> &MergedFixits) argument
[all...]
H A DFrontendActions.cpp133 const LangOptions &LangOpts) {
134 if (LangOpts.ObjC1)
144 const LangOptions &LangOpts) {
145 addHeaderInclude(Header->getName(), Includes, LangOpts);
155 static void collectModuleHeaderIncludes(const LangOptions &LangOpts, argument
168 addHeaderInclude(Header, Includes, LangOpts);
176 addHeaderInclude(UmbrellaHeader, Includes, LangOpts);
202 addHeaderInclude(Dir->path(), Includes, LangOpts);
210 collectModuleHeaderIncludes(LangOpts, FileMgr, ModMap, *Sub, Includes);
337 virtual bool ReadLanguageOptions(const LangOptions &LangOpts, argument
131 addHeaderInclude(StringRef HeaderName, SmallVectorImpl<char> &Includes, const LangOptions &LangOpts) argument
142 addHeaderInclude(const FileEntry *Header, SmallVectorImpl<char> &Includes, const LangOptions &LangOpts) argument
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/Edit/
H A DEditedSource.h29 const LangOptions &LangOpts; member in class:clang::edit::EditedSource
48 EditedSource(const SourceManager &SM, const LangOptions &LangOpts, argument
51 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec),
56 const LangOptions &getLangOpts() const { return LangOpts; }
H A DCommit.h49 const LangOptions &LangOpts; member in class:clang::edit::Commit
61 Commit(const SourceManager &SM, const LangOptions &LangOpts, argument
63 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), Editor(0),
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Basic/
H A DIdentifierTable.cpp73 IdentifierTable::IdentifierTable(const LangOptions &LangOpts, argument
80 AddKeywords(LangOpts);
122 const LangOptions &LangOpts, IdentifierTable &Table) {
125 else if (LangOpts.CPlusPlus && (Flags & KEYCXX)) AddResult = 2;
126 else if (LangOpts.CPlusPlus11 && (Flags & KEYCXX11)) AddResult = 2;
127 else if (LangOpts.C99 && (Flags & KEYC99)) AddResult = 2;
128 else if (LangOpts.GNUKeywords && (Flags & KEYGNU)) AddResult = 1;
129 else if (LangOpts.MicrosoftExt && (Flags & KEYMS)) AddResult = 1;
130 else if (LangOpts.Borland && (Flags & KEYBORLAND)) AddResult = 1;
131 else if (LangOpts
120 AddKeyword(StringRef Keyword, tok::TokenKind TokenCode, unsigned Flags, const LangOptions &LangOpts, IdentifierTable &Table) argument
173 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 (!LangOpts.NoBuiltin || !strchr(TSRecords[i].Attributes, 'f'))
49 BuiltinIsSupported(const Builtin::Info &BuiltinInfo, const LangOptions &LangOpts) argument
69 InitializeBuiltins(IdentifierTable &Table, const LangOptions& LangOpts) argument
H A DModule.cpp56 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, argument
59 .Case("altivec", LangOpts.AltiVec)
60 .Case("blocks", LangOpts.Blocks)
61 .Case("cplusplus", LangOpts.CPlusPlus)
62 .Case("cplusplus11", LangOpts.CPlusPlus11)
63 .Case("objc", LangOpts.ObjC1)
64 .Case("objc_arc", LangOpts.ObjCAutoRefCount)
65 .Case("opencl", LangOpts.OpenCL)
71 Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, argument
78 if (hasFeature(Current->Requirements[I].first, LangOpts, Targe
149 addRequirement(StringRef Feature, bool RequiredState, const LangOptions &LangOpts, const TargetInfo &Target) argument
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/AST/
H A DPrettyPrinter.h38 : LangOpts(LO), Indentation(2), SuppressSpecifiers(false),
47 LangOptions LangOpts; member in struct:clang::PrintingPolicy
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/Frontend/
H A DLogDiagnosticPrinter.h44 const LangOptions *LangOpts; member in class:clang::LogDiagnosticPrinter
66 LangOpts = &LO;
H A DCompilerInvocation.h55 IntrusiveRefCntPtr<LangOptions> LangOpts; member in class:clang::CompilerInvocationBase
74 LangOptions *getLangOpts() { return LangOpts.getPtr(); }
75 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) {}
/freebsd-9.3-release/contrib/llvm/tools/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
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DPlistDiagnostics.cpp34 const LangOptions &LangOpts; member in class:__anon3506::PlistDiagnostics
39 const LangOptions &LangOpts,
64 LangOpts(LO),
107 const LangOptions &LangOpts,
115 extend ? Lexer::MeasureTokenLength(Loc, SM, LangOpts) - 1 : 0;
128 const LangOptions &LangOpts,
131 EmitLocation(o, SM, LangOpts, L.asLocation(), FM, indent, extend);
135 const LangOptions &LangOpts,
139 EmitLocation(o, SM, LangOpts, R.getBegin(), FM, indent+1);
140 EmitLocation(o, SM, LangOpts,
106 EmitLocation(raw_ostream &o, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation L, const FIDMap &FM, unsigned indent, bool extend = false) argument
127 EmitLocation(raw_ostream &o, const SourceManager &SM, const LangOptions &LangOpts, const PathDiagnosticLocation &L, const FIDMap& FM, unsigned indent, bool extend = false) argument
134 EmitRange(raw_ostream &o, const SourceManager &SM, const LangOptions &LangOpts, PathDiagnosticRange R, const FIDMap &FM, unsigned indent) argument
161 ReportControlFlow(raw_ostream &o, const PathDiagnosticControlFlowPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent) argument
212 ReportEvent(raw_ostream &o, const PathDiagnosticPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth, bool isKeyEvent = false) argument
280 ReportCall(raw_ostream &o, const PathDiagnosticCallPiece &P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth) argument
315 ReportMacro(raw_ostream &o, const PathDiagnosticMacroPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth) argument
328 ReportDiag(raw_ostream &o, const PathDiagnosticPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts) argument
334 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...]
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Edit/
H A DEditedSource.cpp246 static bool canBeJoined(char left, char right, const LangOptions &LangOpts) { argument
249 return !(Lexer::isIdentifierBodyChar(left, LangOpts) &&
250 Lexer::isIdentifierBodyChar(right, LangOpts));
256 const LangOptions &LangOpts) {
257 if (!canBeJoined(left, right, LangOpts))
261 if (canBeJoined(beforeWSpace, right, LangOpts))
269 static void adjustRemoval(const SourceManager &SM, const LangOptions &LangOpts, argument
273 SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts);
297 LangOpts))
302 if (!canBeJoined(buffer[begin-1], buffer[end], LangOpts))
255 canRemoveWhitespace(char left, char beforeWSpace, char right, const LangOptions &LangOpts) argument
306 applyRewrite(EditsReceiver &receiver, StringRef text, FileOffset offs, unsigned len, const SourceManager &SM, const LangOptions &LangOpts) argument
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DBackendUtil.cpp48 const LangOptions &LangOpts; member in class:__anon3064::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:__anon3064::PassManagerBuilderWrapper
175 const LangOptions &LangOpts = BuilderWrapper.getLangOpts(); local
177 LangOpts
130 PassManagerBuilderWrapper(const CodeGenOptions &CGOpts, const LangOptions &LangOpts) argument
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/Basic/
H A DLangOptions.h118 FPOptions(const LangOptions &LangOpts) : argument
119 fp_contract(LangOpts.DefaultFPContract) {}
H A DBuiltins.h78 void InitializeBuiltins(IdentifierTable &Table, const LangOptions& LangOpts);
179 const LangOptions &LangOpts);
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAnalysisManager.h35 const LangOptions &LangOpts; member in class:clang::ento::AnalysisManager
92 return LangOpts;
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Rewrite/Core/
H A DTokenRewriter.cpp22 const LangOptions &LangOpts) {
27 Lexer RawLex(FID, FromFile, SM, LangOpts);
21 TokenRewriter(FileID FID, SourceManager &SM, const LangOptions &LangOpts) argument
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/Rewrite/Core/
H A DRewriter.h129 const LangOptions *LangOpts; member in class:clang::Rewriter
153 : SourceMgr(&SM), LangOpts(&LO) {}
154 explicit Rewriter() : SourceMgr(0), LangOpts(0) {}
158 LangOpts = &LO;
161 const LangOptions &getLangOpts() const { return *LangOpts; }

Completed in 208 milliseconds

1234