Home
last modified time | relevance | path

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

123

/external/clang/lib/Frontend/
DCompilerInvocation.cpp134 static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args, in ParseAnalyzerArgs() argument
150 Opts.AnalysisStoreOpt = Value; in ParseAnalyzerArgs()
166 Opts.AnalysisConstraintsOpt = Value; in ParseAnalyzerArgs()
182 Opts.AnalysisDiagOpt = Value; in ParseAnalyzerArgs()
198 Opts.AnalysisPurgeOpt = Value; in ParseAnalyzerArgs()
214 Opts.InliningMode = Value; in ParseAnalyzerArgs()
218 Opts.ShowCheckerHelp = Args.hasArg(OPT_analyzer_checker_help); in ParseAnalyzerArgs()
219 Opts.DisableAllChecks = Args.hasArg(OPT_analyzer_disable_all_checks); in ParseAnalyzerArgs()
221 Opts.visualizeExplodedGraphWithGraphViz = in ParseAnalyzerArgs()
223 Opts.visualizeExplodedGraphWithUbiGraph = in ParseAnalyzerArgs()
[all …]
DDependencyFile.cpp159 DFGImpl(const Preprocessor *_PP, const DependencyOutputOptions &Opts) in DFGImpl() argument
160 : PP(_PP), OutputFile(Opts.OutputFile), Targets(Opts.Targets), in DFGImpl()
161 IncludeSystemHeaders(Opts.IncludeSystemHeaders), in DFGImpl()
162 PhonyTarget(Opts.UsePhonyTargets), in DFGImpl()
163 AddMissingHeaderDeps(Opts.AddMissingHeaderDeps), in DFGImpl()
165 IncludeModuleFiles(Opts.IncludeModuleFiles) {} in DFGImpl()
204 clang::Preprocessor &PP, const clang::DependencyOutputOptions &Opts) { in CreateAndAttachToPreprocessor() argument
206 if (Opts.Targets.empty()) { in CreateAndAttachToPreprocessor()
212 if (Opts.AddMissingHeaderDeps) in CreateAndAttachToPreprocessor()
215 DFGImpl *Callback = new DFGImpl(&PP, Opts); in CreateAndAttachToPreprocessor()
DPrintPreprocessedOutput.cpp707 const PreprocessorOutputOptions &Opts) { in DoPrintPreprocessedInput() argument
709 if (!Opts.ShowCPP) { in DoPrintPreprocessedInput()
710 assert(Opts.ShowMacros && "Not yet implemented!"); in DoPrintPreprocessedInput()
717 PP.SetCommentRetentionState(Opts.ShowComments, Opts.ShowMacroComments); in DoPrintPreprocessedInput()
720 PP, *OS, !Opts.ShowLineMarkers, Opts.ShowMacros, Opts.UseLineDirectives); in DoPrintPreprocessedInput()
DCompilerInstance.cpp188 CompilerInstance::createDiagnostics(DiagnosticOptions *Opts, in createDiagnostics() argument
194 Diags(new DiagnosticsEngine(DiagID, Opts)); in createDiagnostics()
201 Diags->setClient(new TextDiagnosticPrinter(llvm::errs(), Opts)); in createDiagnostics()
204 if (Opts->VerifyDiagnostics) in createDiagnostics()
208 if (!Opts->DiagnosticLogFile.empty()) in createDiagnostics()
209 SetUpDiagnosticLog(Opts, CodeGenOpts, *Diags); in createDiagnostics()
211 if (!Opts->DiagnosticSerializationFile.empty()) in createDiagnostics()
212 SetupSerializedDiagnostics(Opts, *Diags, in createDiagnostics()
213 Opts->DiagnosticSerializationFile); in createDiagnostics()
216 ProcessWarningOptions(*Diags, *Opts); in createDiagnostics()
[all …]
/external/clang/tools/driver/
Dcc1as_main.cpp154 bool AssemblerInvocation::CreateFromArgs(AssemblerInvocation &Opts, in CreateFromArgs() argument
186 Opts.Triple = llvm::Triple::normalize(Args->getLastArgValue(OPT_triple)); in CreateFromArgs()
187 Opts.CPU = Args->getLastArgValue(OPT_target_cpu); in CreateFromArgs()
188 Opts.Features = Args->getAllArgValues(OPT_target_feature); in CreateFromArgs()
191 if (Opts.Triple.empty()) in CreateFromArgs()
192 Opts.Triple = llvm::sys::getDefaultTargetTriple(); in CreateFromArgs()
195 Opts.IncludePaths = Args->getAllArgValues(OPT_I); in CreateFromArgs()
196 Opts.NoInitialTextSection = Args->hasArg(OPT_n); in CreateFromArgs()
197 Opts.SaveTemporaryLabels = Args->hasArg(OPT_msave_temp_labels); in CreateFromArgs()
198 Opts.GenDwarfForAssembly = Args->hasArg(OPT_g_Flag); in CreateFromArgs()
[all …]
/external/compiler-rt/lib/ubsan/
Dubsan_handlers.cc24 static bool ignoreReport(SourceLocation SLoc, ReportOptions Opts) { in ignoreReport() argument
31 return SLoc.isDisabled() && !Opts.DieAfterReport; in ignoreReport()
42 ReportOptions Opts) { in handleTypeMismatchImpl() argument
45 if (ignoreReport(Loc.getSourceLocation(), Opts)) in handleTypeMismatchImpl()
50 FallbackLoc.reset(getCallerLocation(Opts.pc)); in handleTypeMismatchImpl()
54 ScopedReport R(Opts, Loc); in handleTypeMismatchImpl()
75 handleTypeMismatchImpl(Data, Pointer, Opts); in __ubsan_handle_type_mismatch()
80 handleTypeMismatchImpl(Data, Pointer, Opts); in __ubsan_handle_type_mismatch_abort()
88 ReportOptions Opts) { in handleIntegerOverflowImpl() argument
90 if (ignoreReport(Loc, Opts)) in handleIntegerOverflowImpl()
[all …]
Dubsan_handlers_cxx.cc34 ReportOptions Opts) { in HandleDynamicTypeCacheMiss() argument
48 ScopedReport R(Opts, Loc); in HandleDynamicTypeCacheMiss()
77 HandleDynamicTypeCacheMiss(Data, Pointer, Hash, Opts); in __ubsan_handle_dynamic_type_cache_miss()
82 HandleDynamicTypeCacheMiss(Data, Pointer, Hash, Opts); in __ubsan_handle_dynamic_type_cache_miss_abort()
Dubsan_diag.cc331 ScopedReport::ScopedReport(ReportOptions Opts, Location SummaryLoc) in ScopedReport() argument
332 : Opts(Opts), SummaryLoc(SummaryLoc) { in ScopedReport()
338 MaybePrintStackTrace(Opts.pc, Opts.bp); in ~ScopedReport()
341 if (Opts.DieAfterReport || flags()->halt_on_error) in ~ScopedReport()
Dubsan_diag.h224 ReportOptions Opts = {die_after_report, pc, bp}
230 ReportOptions Opts; variable
234 ScopedReport(ReportOptions Opts, Location SummaryLoc);
/external/clang/unittests/StaticAnalyzer/
DAnalyzerOptionsTest.cpp18 AnalyzerOptions Opts; in TEST() local
19 Opts.Config["Outer.Inner.CheckerOne:Option"] = "true"; in TEST()
20 Opts.Config["Outer.Inner:Option"] = "false"; in TEST()
21 Opts.Config["Outer.Inner:Option2"] = "true"; in TEST()
22 Opts.Config["Outer:Option2"] = "false"; in TEST()
38 EXPECT_TRUE(Opts.getBooleanOption("Option", false, &CheckerOne)); in TEST()
40 EXPECT_TRUE(Opts.getBooleanOption("Option", false, &CheckerOne, true)); in TEST()
43 EXPECT_TRUE(Opts.getBooleanOption("Option2", false, &CheckerOne, true)); in TEST()
46 EXPECT_FALSE(Opts.getBooleanOption("Option2", false, &CheckerOne)); in TEST()
47 EXPECT_TRUE(Opts.getBooleanOption("Option2", true, &CheckerOne)); in TEST()
[all …]
/external/clang/lib/Basic/
DWarnings.cpp45 const DiagnosticOptions &Opts, in ProcessWarningOptions() argument
48 Diags.setIgnoreAllWarnings(Opts.IgnoreWarnings); in ProcessWarningOptions()
49 Diags.setShowOverloads(Opts.getShowOverloads()); in ProcessWarningOptions()
51 Diags.setElideType(Opts.ElideType); in ProcessWarningOptions()
52 Diags.setPrintTemplateTree(Opts.ShowTemplateTree); in ProcessWarningOptions()
53 Diags.setShowColors(Opts.ShowColors); in ProcessWarningOptions()
56 if (Opts.ErrorLimit) in ProcessWarningOptions()
57 Diags.setErrorLimit(Opts.ErrorLimit); in ProcessWarningOptions()
58 if (Opts.TemplateBacktraceLimit) in ProcessWarningOptions()
59 Diags.setTemplateBacktraceLimit(Opts.TemplateBacktraceLimit); in ProcessWarningOptions()
[all …]
DTargets.cpp42 const LangOptions &Opts) { in DefineStd() argument
47 if (Opts.GNUMode) in DefineStd()
73 virtual void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
77 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
79 TgtInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
80 getOSDefines(Opts, TgtInfo::getTriple(), Builder); in getTargetDefines()
87 static void getDarwinDefines(MacroBuilder &Builder, const LangOptions &Opts, in getDarwinDefines() argument
96 if (Opts.Sanitize.has(SanitizerKind::Address)) in getDarwinDefines()
99 if (!Opts.ObjCAutoRefCount) { in getDarwinDefines()
104 if (Opts.getGC() != LangOptions::NonGC) in getDarwinDefines()
[all …]
/external/llvm/include/llvm/CodeGen/
DRegAllocPBQP.h84 AllowedRegVector() : NumOpts(0), Opts(nullptr) {} in AllowedRegVector()
87 : NumOpts(OptVec.size()), Opts(new unsigned[NumOpts]) { in AllowedRegVector()
88 std::copy(OptVec.begin(), OptVec.end(), Opts.get()); in AllowedRegVector()
92 : NumOpts(Other.NumOpts), Opts(new unsigned[NumOpts]) { in AllowedRegVector()
93 std::copy(Other.Opts.get(), Other.Opts.get() + NumOpts, Opts.get()); in AllowedRegVector()
97 : NumOpts(std::move(Other.NumOpts)), Opts(std::move(Other.Opts)) {} in AllowedRegVector()
101 Opts.reset(new unsigned[NumOpts]);
102 std::copy(Other.Opts.get(), Other.Opts.get() + NumOpts, Opts.get());
108 Opts = std::move(Other.Opts);
113 unsigned operator[](size_t I) const { return Opts[I]; }
[all …]
/external/llvm/tools/llvm-symbolizer/
DLLVMSymbolize.cpp40 getDILineInfoSpecifier(const LLVMSymbolizer::Options &Opts) { in getDILineInfoSpecifier() argument
43 Opts.PrintFunctions); in getDILineInfoSpecifier()
145 uint64_t ModuleOffset, const LLVMSymbolizer::Options &Opts) const { in symbolizeCode()
149 ModuleOffset, getDILineInfoSpecifier(Opts)); in symbolizeCode()
152 if (Opts.PrintFunctions != FunctionNameKind::None && Opts.UseSymbolTable) { in symbolizeCode()
164 uint64_t ModuleOffset, const LLVMSymbolizer::Options &Opts) const { in symbolizeInlinedCode()
168 ModuleOffset, getDILineInfoSpecifier(Opts)); in symbolizeInlinedCode()
175 if (Opts.PrintFunctions != FunctionNameKind::None && Opts.UseSymbolTable) { in symbolizeInlinedCode()
207 if (Opts.PrintInlining) { in symbolizeCode()
209 Info->symbolizeInlinedCode(ModuleOffset, Opts); in symbolizeCode()
[all …]
DLLVMSymbolize.h53 LLVMSymbolizer(const Options &Opts = Options()) : Opts(Opts) {} in Opts() argument
100 Options Opts; variable
109 const LLVMSymbolizer::Options &Opts) const;
111 uint64_t ModuleOffset, const LLVMSymbolizer::Options &Opts) const;
Dllvm-symbolizer.cpp127 LLVMSymbolizer::Options Opts(ClUseSymbolTable, ClPrintFunctions, in main() local
131 Opts.DsymHints.push_back(hint); in main()
137 LLVMSymbolizer Symbolizer(Opts); in main()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCallAndReturn.cpp592 AnalyzerOptions &Opts) { in mayInlineCallKind() argument
601 if (!Opts.mayInlineCXXMemberFunction(CIMK_MemberFunctions)) in mayInlineCallKind()
605 if (!Opts.mayInlineCXXMemberFunction(CIMK_Constructors)) in mayInlineCallKind()
637 if (!Opts.mayInlineCXXMemberFunction(CIMK_Destructors)) in mayInlineCallKind()
649 if (!Opts.mayInlineCXXMemberFunction(CIMK_Destructors)) in mayInlineCallKind()
667 if (Opts.mayInlineCXXAllocator()) in mayInlineCallKind()
673 if (!Opts.mayInlineObjCMethod()) in mayInlineCallKind()
675 if (!(Opts.getIPAMode() == IPAK_DynamicDispatch || in mayInlineCallKind()
676 Opts.getIPAMode() == IPAK_DynamicDispatchBifurcate)) in mayInlineCallKind()
744 AnalyzerOptions &Opts) { in mayInlineDecl() argument
[all …]
/external/clang/lib/StaticAnalyzer/Frontend/
DAnalysisConsumer.cpp161 AnalyzerOptionsRef Opts; member in __anon6ef278b80211::AnalysisConsumer
194 OutDir(outdir), Opts(opts), Plugins(plugins), Injector(injector) { in AnalysisConsumer()
196 if (Opts->PrintStats) { in AnalysisConsumer()
203 if (Opts->PrintStats) in ~AnalysisConsumer()
208 if (Opts->AnalysisDiagOpt != PD_NONE) { in DigestAnalyzerOptions()
214 if (Opts->AnalysisDiagOpt == PD_TEXT) { in DigestAnalyzerOptions()
218 switch (Opts->AnalysisDiagOpt) { in DigestAnalyzerOptions()
222 CREATEFN(*Opts.get(), PathConsumers, OutDir, PP); \ in DigestAnalyzerOptions()
230 switch (Opts->AnalysisStoreOpt) { in DigestAnalyzerOptions()
238 switch (Opts->AnalysisConstraintsOpt) { in DigestAnalyzerOptions()
[all …]
/external/llvm/unittests/Option/
DMakefile14 BUILT_SOURCES = Opts.inc
21 $(ObjDir)/Opts.inc.tmp : Opts.td $(LLVM_TBLGEN) $(ObjDir)/.dir
DCMakeLists.txt6 set(LLVM_TARGET_DEFINITIONS Opts.td)
8 tablegen(LLVM Opts.inc -gen-opt-parser-defs)
/external/llvm/utils/TableGen/
DOptParserEmitter.cpp112 std::vector<Record*> Opts = Records.getAllDerivedDefinitions("Option"); in EmitOptParser() local
116 array_pod_sort(Opts.begin(), Opts.end(), CompareOptionRecords); in EmitOptParser()
123 for (unsigned i = 0, e = Opts.size(); i != e; ++i) { in EmitOptParser()
124 const Record &R = *Opts[i]; in EmitOptParser()
203 for (unsigned i = 0, e = Opts.size(); i != e; ++i) { in EmitOptParser()
204 const Record &R = *Opts[i]; in EmitOptParser()
/external/llvm/lib/Option/
DOptTable.cpp294 static std::string getOptionHelpName(const OptTable &Opts, OptSpecifier Id) { in getOptionHelpName() argument
295 const Option O = Opts.getOption(Id); in getOptionHelpName()
304 if (const char *MetaVarName = Opts.getOptionMetaVar(Id)) { in getOptionHelpName()
326 if (const char *MetaVarName = Opts.getOptionMetaVar(Id)) in getOptionHelpName()
369 static const char *getOptionHelpGroup(const OptTable &Opts, OptSpecifier Id) { in getOptionHelpGroup() argument
370 unsigned GroupID = Opts.getOptionGroupID(Id); in getOptionHelpGroup()
380 if (const char *GroupHelp = Opts.getOptionHelpText(GroupID)) in getOptionHelpGroup()
384 return getOptionHelpGroup(Opts, GroupID); in getOptionHelpGroup()
/external/lldb/source/Symbol/
DClangASTContext.cpp100 LangOptions &Opts, in ParseLangArgs() argument
110 Opts.AsmPreprocessor = 1; in ParseLangArgs()
115 Opts.ObjC1 = Opts.ObjC2 = 1; in ParseLangArgs()
150 Opts.LineComment = Std.hasLineComments(); in ParseLangArgs()
151 Opts.C99 = Std.isC99(); in ParseLangArgs()
152 Opts.CPlusPlus = Std.isCPlusPlus(); in ParseLangArgs()
153 Opts.CPlusPlus11 = Std.isCPlusPlus11(); in ParseLangArgs()
154 Opts.Digraphs = Std.hasDigraphs(); in ParseLangArgs()
155 Opts.GNUMode = Std.isGNUMode(); in ParseLangArgs()
156 Opts.GNUInline = !Std.isC99(); in ParseLangArgs()
[all …]
/external/llvm/lib/Support/
DCommandLine.cpp1472 SmallVectorImpl<std::pair<const char *, Option *>> &Opts, in sortOpts() argument
1490 Opts.push_back( in sortOpts()
1495 array_pod_sort(Opts.begin(), Opts.end(), OptNameCompare); in sortOpts()
1506 virtual void printOptions(StrOptionPairVector &Opts, size_t MaxArgLen) { in printOptions() argument
1507 for (size_t i = 0, e = Opts.size(); i != e; ++i) in printOptions()
1508 Opts[i].second->printOptionInfo(MaxArgLen); in printOptions()
1520 StrOptionPairVector Opts; in operator =() local
1521 sortOpts(GlobalParser->OptionsMap, Opts, ShowHidden); in operator =()
1542 for (size_t i = 0, e = Opts.size(); i != e; ++i) in operator =()
1543 MaxArgLen = std::max(MaxArgLen, Opts[i].second->getOptionWidth()); in operator =()
[all …]
/external/clang/include/clang/Frontend/
DCompilerInvocation.h49 bool ParseDiagnosticArgs(DiagnosticOptions &Opts, llvm::opt::ArgList &Args,
157 static void setLangDefaults(LangOptions &Opts, InputKind IK,

123