Searched defs:LangOpts (Results 1 - 25 of 73) sorted by relevance

123

/external/clang/lib/Rewrite/Frontend/
H A DRewriteTest.cpp21 const LangOptions &LangOpts = PP.getLangOpts(); local
23 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts);
H A DFixItRewriter.cpp31 const LangOptions &LangOpts,
34 Editor(SourceMgr, LangOpts),
35 Rewrite(SourceMgr, LangOpts),
30 FixItRewriter(DiagnosticsEngine &Diags, SourceManager &SourceMgr, const LangOptions &LangOpts, FixItOptions *FixItOpts) argument
/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 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/Frontend/
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) {}
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 DVerifyDiagnosticConsumer.h217 const LangOptions *LangOpts; member in class:clang::VerifyDiagnosticConsumer
250 void BeginSourceFile(const LangOptions &LangOpts,
/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/tools/libclang/
H A DCXSourceLocation.h30 translateSourceLocation(const SourceManager &SM, const LangOptions &LangOpts, argument
35 CXSourceLocation Result = { { &SM, &LangOpts, },
55 const LangOptions &LangOpts,
/external/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
/external/clang/unittests/Lex/
H A DPPConditionalDirectiveRecordTest.cpp49 LangOptions LangOpts; member in class:__anon19547::PPConditionalDirectiveRecordTest
97 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
99 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
/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/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/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAnalysisManager.h35 const LangOptions &LangOpts; member in class:clang::ento::AnalysisManager
92 return LangOpts;
/external/clang/lib/Lex/
H A DTokenConcatenation.cpp49 const LangOptions &LangOpts = PP.getLangOpts(); local
57 LangOpts.CPlusPlus11);
64 return IsStringPrefix(StringRef(TokPtr, length), LangOpts.CPlusPlus11);
67 return IsStringPrefix(StringRef(PP.getSpelling(Tok)), LangOpts.CPlusPlus11);
/external/clang/tools/clang-check/
H A DClangCheck.cpp121 const clang::LangOptions& LangOpts,
123 : clang::FixItRewriter(Diags, SourceMgr, LangOpts, FixItOpts) {
119 FixItRewriter(clang::DiagnosticsEngine& Diags, clang::SourceManager& SourceMgr, const clang::LangOptions& LangOpts, clang::FixItOptions* FixItOpts) argument
/external/clang/include/clang/Basic/
H A DPlistSupport.h92 const LangOptions &LangOpts, SourceLocation L,
99 extend ? Lexer::MeasureTokenLength(Loc, SM, LangOpts) - 1 : 0;
112 const LangOptions &LangOpts, CharSourceRange R,
115 EmitLocation(o, SM, LangOpts, R.getBegin(), FM, indent + 1);
116 EmitLocation(o, SM, LangOpts, R.getEnd(), FM, indent + 1, R.isTokenRange());
91 EmitLocation(raw_ostream &o, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation L, const FIDMap &FM, unsigned indent, bool extend = false) argument
111 EmitRange(raw_ostream &o, const SourceManager &SM, const LangOptions &LangOpts, CharSourceRange R, const FIDMap &FM, unsigned indent) argument
H A DLangOptions.h124 FPOptions(const LangOptions &LangOpts) : argument
125 fp_contract(LangOpts.DefaultFPContract) {}
/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...]
H A DModuleMap.h42 const LangOptions &LangOpts; member in class:clang::ModuleMap
216 /// \param LangOpts Language options for this translation unit.
220 const LangOptions &LangOpts, const TargetInfo *Target,
/external/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(nullptr), LangOpts(nullptr) {}
158 LangOpts = &LO;
161 const LangOptions &getLangOpts() const { return *LangOpts; }
/external/clang/lib/AST/
H A DTemplateBase.cpp489 LangOptions LangOpts; local
490 LangOpts.CPlusPlus = true;
491 PrintingPolicy Policy(LangOpts);
500 LangOptions LangOpts; local
501 LangOpts.CPlusPlus = true;
502 PrintingPolicy Policy(LangOpts);

Completed in 421 milliseconds

123