Home
last modified time | relevance | path

Searched refs:Opts (Results 1 – 25 of 30) sorted by relevance

12

/external/clang/lib/Frontend/
DCompilerInvocation.cpp67 static void AnalyzerOptsToArgs(const AnalyzerOptions &Opts, in AnalyzerOptsToArgs() argument
69 if (Opts.ShowCheckerHelp) in AnalyzerOptsToArgs()
71 if (Opts.AnalysisStoreOpt != BasicStoreModel) { in AnalyzerOptsToArgs()
73 Res.push_back(getAnalysisStoreName(Opts.AnalysisStoreOpt)); in AnalyzerOptsToArgs()
75 if (Opts.AnalysisConstraintsOpt != RangeConstraintsModel) { in AnalyzerOptsToArgs()
77 Res.push_back(getAnalysisConstraintName(Opts.AnalysisConstraintsOpt)); in AnalyzerOptsToArgs()
79 if (Opts.AnalysisDiagOpt != PD_HTML) { in AnalyzerOptsToArgs()
81 Res.push_back(getAnalysisDiagClientName(Opts.AnalysisDiagOpt)); in AnalyzerOptsToArgs()
83 if (!Opts.AnalyzeSpecificFunction.empty()) { in AnalyzerOptsToArgs()
85 Res.push_back(Opts.AnalyzeSpecificFunction); in AnalyzerOptsToArgs()
[all …]
DWarnings.cpp35 const DiagnosticOptions &Opts) { in ProcessWarningOptions() argument
37 Diags.setIgnoreAllWarnings(Opts.IgnoreWarnings); in ProcessWarningOptions()
39 static_cast<Diagnostic::OverloadsShown>(Opts.ShowOverloads)); in ProcessWarningOptions()
42 if (Opts.ErrorLimit) in ProcessWarningOptions()
43 Diags.setErrorLimit(Opts.ErrorLimit); in ProcessWarningOptions()
44 if (Opts.TemplateBacktraceLimit) in ProcessWarningOptions()
45 Diags.setTemplateBacktraceLimit(Opts.TemplateBacktraceLimit); in ProcessWarningOptions()
50 if (Opts.PedanticErrors) in ProcessWarningOptions()
52 else if (Opts.Pedantic) in ProcessWarningOptions()
57 for (unsigned i = 0, e = Opts.Warnings.size(); i != e; ++i) { in ProcessWarningOptions()
[all …]
DDependencyFile.cpp48 const DependencyOutputOptions &Opts) in DependencyFileCallback() argument
49 : PP(_PP), Targets(Opts.Targets), OS(_OS), in DependencyFileCallback()
50 IncludeSystemHeaders(Opts.IncludeSystemHeaders), in DependencyFileCallback()
51 PhonyTarget(Opts.UsePhonyTargets), in DependencyFileCallback()
52 AddMissingHeaderDeps(Opts.AddMissingHeaderDeps) {} in DependencyFileCallback()
74 const DependencyOutputOptions &Opts) { in AttachDependencyFileGen() argument
75 if (Opts.Targets.empty()) { in AttachDependencyFileGen()
81 llvm::raw_ostream *OS(new llvm::raw_fd_ostream(Opts.OutputFile.c_str(), Err)); in AttachDependencyFileGen()
84 << Opts.OutputFile << Err; in AttachDependencyFileGen()
93 if (Opts.AddMissingHeaderDeps) { in AttachDependencyFileGen()
[all …]
DCompilerInstance.cpp148 CompilerInstance::createDiagnostics(const DiagnosticOptions &Opts, in createDiagnostics() argument
160 Diags->setClient(new TextDiagnosticPrinter(llvm::errs(), Opts)); in createDiagnostics()
163 if (Opts.VerifyDiagnostics) in createDiagnostics()
167 if (!Opts.DiagnosticLogFile.empty()) in createDiagnostics()
168 SetUpDiagnosticLog(Opts, CodeGenOpts, *Diags); in createDiagnostics()
170 if (!Opts.DumpBuildInformation.empty()) in createDiagnostics()
171 SetUpBuildDumpLog(Opts, Argc, Argv, *Diags); in createDiagnostics()
174 ProcessWarningOptions(*Diags, Opts); in createDiagnostics()
530 const FrontendOptions &Opts) { in InitializeSourceManager() argument
DPrintPreprocessedOutput.cpp582 const PreprocessorOutputOptions &Opts) { in DoPrintPreprocessedInput() argument
584 if (!Opts.ShowCPP) { in DoPrintPreprocessedInput()
585 assert(Opts.ShowMacros && "Not yet implemented!"); in DoPrintPreprocessedInput()
592 PP.SetCommentRetentionState(Opts.ShowComments, Opts.ShowMacroComments); in DoPrintPreprocessedInput()
595 new PrintPPOutputPPCallbacks(PP, *OS, !Opts.ShowLineMarkers, in DoPrintPreprocessedInput()
596 Opts.ShowMacros); in DoPrintPreprocessedInput()
/external/clang/tools/driver/
Dcc1as_main.cpp135 void AssemblerInvocation::CreateFromArgs(AssemblerInvocation &Opts, in CreateFromArgs() argument
159 Opts.Triple = Triple::normalize(Args->getLastArgValue(OPT_triple)); in CreateFromArgs()
160 if (Opts.Triple.empty()) // Use the host triple if unspecified. in CreateFromArgs()
161 Opts.Triple = sys::getHostTriple(); in CreateFromArgs()
164 Opts.IncludePaths = Args->getAllArgValues(OPT_I); in CreateFromArgs()
165 Opts.NoInitialTextSection = Args->hasArg(OPT_n); in CreateFromArgs()
166 Opts.SaveTemporaryLabels = Args->hasArg(OPT_L); in CreateFromArgs()
175 Opts.InputFile = A->getValue(*Args); in CreateFromArgs()
180 Opts.LLVMArgs = Args->getAllArgValues(OPT_mllvm); in CreateFromArgs()
182 Opts.LLVMArgs.push_back("-fatal-assembler-warnings"); in CreateFromArgs()
[all …]
Dcc1_main.cpp60 OptTable *Opts = createCC1OptTable(); in cc1_test() local
62 InputArgList *Args = Opts->ParseArgs(ArgBegin, ArgEnd, in cc1_test()
/external/clang/examples/wpa/
Dclang-wpa.cpp137 AnalyzerOptions Opts; in main() local
141 Opts.MaxNodes = 300000; in main()
142 Opts.MaxLoop = 3; in main()
143 Opts.InlineCall = true; in main()
144 Opts.CFGAddImplicitDtors = true; in main()
145 Opts.EagerlyTrimEGraph = true; in main()
147 Opts.CheckersControlList.push_back(std::make_pair("core", true)); in main()
149 Opts.CheckersControlList.push_back(std::make_pair("unix", true)); in main()
151 Opts.CheckersControlList.push_back(std::make_pair("macosx", true)); in main()
155 Opts.CheckersControlList.push_back(std::make_pair("cocoa", true)); in main()
[all …]
/external/clang/lib/Basic/
DTargets.cpp41 const LangOptions &Opts) { in DefineStd() argument
46 if (Opts.GNUMode) in DefineStd()
64 virtual void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
68 virtual void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
70 TgtInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
71 getOSDefines(Opts, TgtInfo::getTriple(), Builder); in getTargetDefines()
78 static void getDarwinDefines(MacroBuilder &Builder, const LangOptions &Opts, in getDarwinDefines() argument
87 if (!Opts.ObjCAutoRefCount) { in getDarwinDefines()
92 if (Opts.getGCMode() != LangOptions::NonGC) in getDarwinDefines()
110 if (Opts.Static) in getDarwinDefines()
[all …]
DTargetInfo.cpp167 void TargetInfo::setForcedLangOptions(LangOptions &Opts) { in setForcedLangOptions() argument
168 if (Opts.NoBitFieldTypeAlign) in setForcedLangOptions()
170 if (Opts.ShortWChar) in setForcedLangOptions()
/external/clang/lib/StaticAnalyzer/Frontend/
DAnalysisConsumer.cpp68 AnalyzerOptions Opts; member in __anonb0281f7b0111::AnalysisConsumer
83 Opts(opts), PD(0) { in AnalysisConsumer()
90 switch (Opts.AnalysisDiagOpt) { in DigestAnalyzerOptions()
96 } else if (Opts.AnalysisDiagOpt == PD_TEXT) { in DigestAnalyzerOptions()
103 switch (Opts.AnalysisStoreOpt) { in DigestAnalyzerOptions()
111 switch (Opts.AnalysisConstraintsOpt) { in DigestAnalyzerOptions()
121 if (!Opts.AnalyzerDisplayProgress) in DisplayFunction()
146 checkerMgr.reset(registerCheckers(Opts, PP.getLangOptions(), in Initialize()
153 Opts.MaxNodes, Opts.MaxLoop, in Initialize()
154 Opts.VisualizeEGDot, Opts.VisualizeEGUbi, in Initialize()
[all …]
DAnalysisConsumer.h35 const AnalyzerOptions& Opts);
/external/llvm/lib/Support/
DCommandLine.cpp538 StringMap<Option*> Opts; in ParseCommandLineOptions() local
539 GetOptionInfo(PositionalOpts, SinkOpts, Opts); in ParseCommandLineOptions()
541 assert((!Opts.empty() || !PositionalOpts.empty()) && in ParseCommandLineOptions()
631 Opts.clear(); in ParseCommandLineOptions()
632 GetOptionInfo(PositionalOpts, SinkOpts, Opts); in ParseCommandLineOptions()
677 Handler = LookupOption(ArgName, Value, Opts); in ParseCommandLineOptions()
689 Handler = LookupOption(ArgName, Value, Opts); in ParseCommandLineOptions()
694 ErrorParsing, Opts); in ParseCommandLineOptions()
699 NearestHandler = LookupNearestOption(ArgName, Opts, in ParseCommandLineOptions()
813 for (StringMap<Option*>::iterator I = Opts.begin(), in ParseCommandLineOptions()
[all …]
/external/llvm/tools/llvmc/src/
DHooks.cpp64 std::string ConvertMArchToMAttr(const StrVec& Opts) { in ConvertMArchToMAttr() argument
81 for (StrVec::const_iterator B = Opts.begin(), E = Opts.end(); B!=E; ++B) { in ConvertMArchToMAttr()
175 std::string ConvertToMAttr(const StrVec& Opts) { in ConvertToMAttr() argument
179 for (StrVec::const_iterator B = Opts.begin(), E = Opts.end(); B!=E; ++B) { in ConvertToMAttr()
/external/llvm/utils/TableGen/
DOptParserEmitter.cpp76 std::vector<Record*> Opts = Records.getAllDerivedDefinitions("Option"); in run() local
83 array_pod_sort(Opts.begin(), Opts.end(), CompareOptionRecords); in run()
131 for (unsigned i = 0, e = Opts.size(); i != e; ++i) { in run()
132 const Record &R = *Opts[i]; in run()
/external/clang/lib/Driver/
DOptTable.cpp265 static std::string getOptionHelpName(const OptTable &Opts, OptSpecifier Id) { in getOptionHelpName() argument
266 std::string Name = Opts.getOptionName(Id); in getOptionHelpName()
269 switch (Opts.getOptionKind(Id)) { in getOptionHelpName()
284 if (const char *MetaVarName = Opts.getOptionMetaVar(Id)) in getOptionHelpName()
327 static const char *getOptionHelpGroup(const OptTable &Opts, OptSpecifier Id) { in getOptionHelpGroup() argument
328 unsigned GroupID = Opts.getOptionGroupID(Id); in getOptionHelpGroup()
338 if (const char *GroupHelp = Opts.getOptionHelpText(GroupID)) in getOptionHelpGroup()
342 return getOptionHelpGroup(Opts, GroupID); in getOptionHelpGroup()
DToolChains.cpp485 const OptTable &Opts = getDriver().getOpts(); in AddDeploymentTarget() local
560 const Option *O = Opts.getOption(options::OPT_mmacosx_version_min_EQ); in AddDeploymentTarget()
564 const Option *O = Opts.getOption(options::OPT_miphoneos_version_min_EQ); in AddDeploymentTarget()
568 const Option *O = Opts.getOption( in AddDeploymentTarget()
574 const Option *O = Opts.getOption(options::OPT_mmacosx_version_min_EQ); in AddDeploymentTarget()
689 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs() local
715 Arg *XarchArg = Opts.ParseOneArg(Args, Index); in TranslateArgs()
747 Opts.getOption(options::OPT_Zlinker_input), in TranslateArgs()
766 DAL->AddFlagArg(A, Opts.getOption(options::OPT_static)); in TranslateArgs()
767 DAL->AddFlagArg(A, Opts.getOption(options::OPT_static)); in TranslateArgs()
[all …]
DDriver.cpp54 : Opts(createDriverOptTable()), Diags(Diags), in Driver()
95 delete Opts; in ~Driver()
141 DAL->AddFlagArg(A, Opts->getOption(options::OPT_Z_Xlinker__no_demangle)); in TranslateInputArgs()
146 DAL->AddSeparateArg(A, Opts->getOption(options::OPT_Xlinker), in TranslateInputArgs()
161 DAL->AddFlagArg(A, Opts->getOption(options::OPT_MD)); in TranslateInputArgs()
163 DAL->AddFlagArg(A, Opts->getOption(options::OPT_MMD)); in TranslateInputArgs()
164 DAL->AddSeparateArg(A, Opts->getOption(options::OPT_MF), in TranslateInputArgs()
175 DAL->AddFlagArg(A, Opts->getOption( in TranslateInputArgs()
182 DAL->AddFlagArg(A, Opts->getOption( in TranslateInputArgs()
195 DAL->AddJoinedArg(0, Opts->getOption(options::OPT_mlinker_version_EQ), in TranslateInputArgs()
[all …]
/external/clang/include/clang/Frontend/
DUtils.h69 void ProcessWarningOptions(Diagnostic &Diags, const DiagnosticOptions &Opts);
73 const PreprocessorOutputOptions &Opts);
78 const DependencyOutputOptions &Opts);
DCompilerInstance.h487 createDiagnostics(const DiagnosticOptions &Opts, int Argc,
622 const FrontendOptions &Opts);
DCompilerInvocation.h127 static void setLangDefaults(LangOptions &Opts, InputKind IK,
/external/srec/tools/parseStringTest/
DparseStringTest.c54 typedef struct Opts struct
59 Opts; argument
104 ESR_ReturnCode Parse(SR_Grammar* grammar, LCHAR* trans, PFile* fout, Opts* opts) in Parse()
116 Opts myopts; in Parse()
286 Opts opts = { 0, 0 }; in main()
/external/clang/lib/FrontendTool/
DExecuteCompilerInvocation.cpp122 llvm::OwningPtr<driver::OptTable> Opts(driver::createCC1OptTable()); in ExecuteCompilerInvocation() local
123 Opts->PrintHelp(llvm::outs(), "clang -cc1", in ExecuteCompilerInvocation()
/external/clang/include/clang/Driver/
DDriver.h46 OptTable *Opts; variable
190 const OptTable &getOpts() const { return *Opts; } in getOpts()
/external/clang/include/clang/Basic/
DTargetInfo.h100 static TargetInfo* CreateTargetInfo(Diagnostic &Diags, TargetOptions &Opts);
292 virtual void getTargetDefines(const LangOptions &Opts,
454 virtual void setForcedLangOptions(LangOptions &Opts);

12