Home
last modified time | relevance | path

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

123

/external/clang/lib/Frontend/
DCompilerInvocation.cpp138 static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args, in ParseAnalyzerArgs() argument
154 Opts.AnalysisStoreOpt = Value; in ParseAnalyzerArgs()
170 Opts.AnalysisConstraintsOpt = Value; in ParseAnalyzerArgs()
186 Opts.AnalysisDiagOpt = Value; in ParseAnalyzerArgs()
202 Opts.AnalysisPurgeOpt = Value; in ParseAnalyzerArgs()
218 Opts.InliningMode = Value; in ParseAnalyzerArgs()
222 Opts.ShowCheckerHelp = Args.hasArg(OPT_analyzer_checker_help); in ParseAnalyzerArgs()
223 Opts.DisableAllChecks = Args.hasArg(OPT_analyzer_disable_all_checks); in ParseAnalyzerArgs()
225 Opts.visualizeExplodedGraphWithGraphViz = in ParseAnalyzerArgs()
227 Opts.visualizeExplodedGraphWithUbiGraph = in ParseAnalyzerArgs()
[all …]
DDependencyFile.cpp172 DFGImpl(const Preprocessor *_PP, const DependencyOutputOptions &Opts) in DFGImpl() argument
173 : PP(_PP), OutputFile(Opts.OutputFile), Targets(Opts.Targets), in DFGImpl()
174 IncludeSystemHeaders(Opts.IncludeSystemHeaders), in DFGImpl()
175 PhonyTarget(Opts.UsePhonyTargets), in DFGImpl()
176 AddMissingHeaderDeps(Opts.AddMissingHeaderDeps), in DFGImpl()
178 IncludeModuleFiles(Opts.IncludeModuleFiles), in DFGImpl()
179 OutputFormat(Opts.OutputFormat) { in DFGImpl()
180 for (auto ExtraDep : Opts.ExtraDeps) { in DFGImpl()
234 clang::Preprocessor &PP, const clang::DependencyOutputOptions &Opts) { in CreateAndAttachToPreprocessor() argument
236 if (Opts.Targets.empty()) { in CreateAndAttachToPreprocessor()
[all …]
DPrintPreprocessedOutput.cpp720 const PreprocessorOutputOptions &Opts) { in DoPrintPreprocessedInput() argument
722 if (!Opts.ShowCPP) { in DoPrintPreprocessedInput()
723 assert(Opts.ShowMacros && "Not yet implemented!"); in DoPrintPreprocessedInput()
730 PP.SetCommentRetentionState(Opts.ShowComments, Opts.ShowMacroComments); in DoPrintPreprocessedInput()
733 PP, *OS, !Opts.ShowLineMarkers, Opts.ShowMacros, Opts.UseLineDirectives); in DoPrintPreprocessedInput()
/external/clang/tools/driver/
Dcc1as_main.cpp159 bool AssemblerInvocation::CreateFromArgs(AssemblerInvocation &Opts, in CreateFromArgs() argument
188 Opts.Triple = llvm::Triple::normalize(Args.getLastArgValue(OPT_triple)); in CreateFromArgs()
189 Opts.CPU = Args.getLastArgValue(OPT_target_cpu); in CreateFromArgs()
190 Opts.Features = Args.getAllArgValues(OPT_target_feature); in CreateFromArgs()
193 if (Opts.Triple.empty()) in CreateFromArgs()
194 Opts.Triple = llvm::sys::getDefaultTargetTriple(); in CreateFromArgs()
197 Opts.IncludePaths = Args.getAllArgValues(OPT_I); in CreateFromArgs()
198 Opts.NoInitialTextSection = Args.hasArg(OPT_n); in CreateFromArgs()
199 Opts.SaveTemporaryLabels = Args.hasArg(OPT_msave_temp_labels); in CreateFromArgs()
201 Opts.GenDwarfForAssembly = Args.hasArg(OPT_debug_info_kind_EQ); in CreateFromArgs()
[all …]
/external/compiler-rt/lib/ubsan/
Dubsan_handlers.cc25 bool ignoreReport(SourceLocation SLoc, ReportOptions Opts, ErrorType ET) { in ignoreReport() argument
33 if (Opts.FromUnrecoverableHandler) in ignoreReport()
35 return SLoc.isDisabled() || IsPCSuppressed(ET, Opts.pc, SLoc.getFilename()); in ignoreReport()
45 ReportOptions Opts) { in handleTypeMismatchImpl() argument
58 if (ignoreReport(Loc.getSourceLocation(), Opts, ET)) in handleTypeMismatchImpl()
63 FallbackLoc.reset(getCallerLocation(Opts.pc)); in handleTypeMismatchImpl()
67 ScopedReport R(Opts, Loc, ET); in handleTypeMismatchImpl()
96 handleTypeMismatchImpl(Data, Pointer, Opts); in __ubsan_handle_type_mismatch()
101 handleTypeMismatchImpl(Data, Pointer, Opts); in __ubsan_handle_type_mismatch_abort()
109 ReportOptions Opts) { in handleIntegerOverflowImpl() argument
[all …]
Dubsan_handlers_cxx.cc35 ReportOptions Opts) { in HandleDynamicTypeCacheMiss() argument
47 if (ignoreReport(Loc, Opts, ET)) in HandleDynamicTypeCacheMiss()
50 ScopedReport R(Opts, Loc, ET); in HandleDynamicTypeCacheMiss()
80 HandleDynamicTypeCacheMiss(Data, Pointer, Hash, Opts); in __ubsan_handle_dynamic_type_cache_miss()
86 if (HandleDynamicTypeCacheMiss(Data, Pointer, Hash, Opts)) in __ubsan_handle_dynamic_type_cache_miss_abort()
91 ReportOptions Opts) { in HandleCFIBadType() argument
95 if (ignoreReport(Loc, Opts, ET)) in HandleCFIBadType()
98 ScopedReport R(Opts, Loc, ET); in HandleCFIBadType()
123 HandleCFIBadType(Data, Vtable, Opts); in __ubsan_handle_cfi_bad_type()
129 HandleCFIBadType(Data, Vtable, Opts); in __ubsan_handle_cfi_bad_type_abort()
Dubsan_diag.h228 bool ignoreReport(SourceLocation SLoc, ReportOptions Opts, ErrorType ET);
232 ReportOptions Opts = {unrecoverable_handler, pc, bp}
238 ReportOptions Opts; variable
243 ScopedReport(ReportOptions Opts, Location SummaryLoc, ErrorType Type);
Dubsan_diag.cc368 ScopedReport::ScopedReport(ReportOptions Opts, Location SummaryLoc, in ScopedReport() argument
370 : Opts(Opts), SummaryLoc(SummaryLoc), Type(Type) { in ScopedReport()
376 MaybePrintStackTrace(Opts.pc, Opts.bp); in ~ScopedReport()
/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.cpp45 const LangOptions &Opts) { in DefineStd() argument
50 if (Opts.GNUMode) in DefineStd()
76 virtual void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
80 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
82 TgtInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
83 getOSDefines(Opts, TgtInfo::getTriple(), Builder); in getTargetDefines()
92 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
110 static void getDarwinDefines(MacroBuilder &Builder, const LangOptions &Opts, in getDarwinDefines() argument
119 if (Opts.Sanitize.has(SanitizerKind::Address)) in getDarwinDefines()
123 if (!Opts.ObjC1) { in getDarwinDefines()
[all …]
/external/chromium-trace/catapult/third_party/coverage/coverage/
Dcmdline.py19 class Opts(object): class
210 Opts.help,
211 Opts.version,
253 Opts.debug,
254 Opts.help,
255 Opts.rcfile,
262 Opts.directory,
263 Opts.ignore_errors,
264 Opts.include,
265 Opts.omit,
[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/clang/lib/StaticAnalyzer/Core/
DExprEngineCallAndReturn.cpp593 AnalyzerOptions &Opts) { in mayInlineCallKind() argument
602 if (!Opts.mayInlineCXXMemberFunction(CIMK_MemberFunctions)) in mayInlineCallKind()
606 if (!Opts.mayInlineCXXMemberFunction(CIMK_Constructors)) in mayInlineCallKind()
638 if (!Opts.mayInlineCXXMemberFunction(CIMK_Destructors)) in mayInlineCallKind()
650 if (!Opts.mayInlineCXXMemberFunction(CIMK_Destructors)) in mayInlineCallKind()
668 if (Opts.mayInlineCXXAllocator()) in mayInlineCallKind()
674 if (!Opts.mayInlineObjCMethod()) in mayInlineCallKind()
676 if (!(Opts.getIPAMode() == IPAK_DynamicDispatch || in mayInlineCallKind()
677 Opts.getIPAMode() == IPAK_DynamicDispatchBifurcate)) in mayInlineCallKind()
747 AnalyzerOptions &Opts) { in mayInlineDecl() argument
[all …]
/external/clang/lib/StaticAnalyzer/Frontend/
DAnalysisConsumer.cpp161 AnalyzerOptionsRef Opts; member in __anon1f2502640211::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/lib/DebugInfo/Symbolize/
DSymbolize.cpp59 if (Opts.RelativeAddresses) in symbolizeCode()
62 DILineInfo LineInfo = Info->symbolizeCode(ModuleOffset, Opts.PrintFunctions, in symbolizeCode()
63 Opts.UseSymbolTable); in symbolizeCode()
64 if (Opts.Demangle) in symbolizeCode()
79 if (Opts.RelativeAddresses) in symbolizeInlinedCode()
83 ModuleOffset, Opts.PrintFunctions, Opts.UseSymbolTable); in symbolizeInlinedCode()
84 if (Opts.Demangle) { in symbolizeInlinedCode()
103 if (Opts.RelativeAddresses) in symbolizeData()
107 if (Opts.Demangle) in symbolizeData()
225 for (const auto &Path : Opts.DsymHints) { in lookUpDsymFile()
[all …]
/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/include/llvm/DebugInfo/Symbolize/
DSymbolize.h46 LLVMSymbolizer(const Options &Opts = Options()) : Opts(Opts) {} in Opts() function
99 Options Opts; variable
/external/clang/lib/Driver/
DMSVCToolChain.cpp641 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs() local
687 DAL->AddFlagArg(A, Opts.getOption(options::OPT_O0)); in TranslateArgs()
690 DAL->AddJoinedArg(A, Opts.getOption(options::OPT_O), "s"); in TranslateArgs()
692 DAL->AddFlagArg(A, Opts.getOption(options::OPT_fbuiltin)); in TranslateArgs()
693 DAL->AddJoinedArg(A, Opts.getOption(options::OPT_O), "2"); in TranslateArgs()
697 Opts.getOption(options::OPT_fomit_frame_pointer)); in TranslateArgs()
700 Opts.getOption(options::OPT_ffunction_sections)); in TranslateArgs()
713 DAL->AddFlagArg(A, Opts.getOption(options::OPT_fno_builtin)); in TranslateArgs()
715 DAL->AddFlagArg(A, Opts.getOption(options::OPT_fbuiltin)); in TranslateArgs()
719 DAL->AddJoinedArg(A, Opts.getOption(options::OPT_O), "s"); in TranslateArgs()
[all …]
/external/llvm/lib/Option/
DOptTable.cpp291 static std::string getOptionHelpName(const OptTable &Opts, OptSpecifier Id) { in getOptionHelpName() argument
292 const Option O = Opts.getOption(Id); in getOptionHelpName()
301 if (const char *MetaVarName = Opts.getOptionMetaVar(Id)) { in getOptionHelpName()
323 if (const char *MetaVarName = Opts.getOptionMetaVar(Id)) in getOptionHelpName()
366 static const char *getOptionHelpGroup(const OptTable &Opts, OptSpecifier Id) { in getOptionHelpGroup() argument
367 unsigned GroupID = Opts.getOptionGroupID(Id); in getOptionHelpGroup()
377 if (const char *GroupHelp = Opts.getOptionHelpText(GroupID)) in getOptionHelpGroup()
381 return getOptionHelpGroup(Opts, GroupID); in getOptionHelpGroup()
/external/llvm/lib/Support/
DCommandLine.cpp1453 SmallVectorImpl<std::pair<const char *, Option *>> &Opts, in sortOpts() argument
1471 Opts.push_back( in sortOpts()
1476 array_pod_sort(Opts.begin(), Opts.end(), OptNameCompare); in sortOpts()
1487 virtual void printOptions(StrOptionPairVector &Opts, size_t MaxArgLen) { in printOptions() argument
1488 for (size_t i = 0, e = Opts.size(); i != e; ++i) in printOptions()
1489 Opts[i].second->printOptionInfo(MaxArgLen); in printOptions()
1501 StrOptionPairVector Opts; in operator =() local
1502 sortOpts(GlobalParser->OptionsMap, Opts, ShowHidden); in operator =()
1523 for (size_t i = 0, e = Opts.size(); i != e; ++i) in operator =()
1524 MaxArgLen = std::max(MaxArgLen, Opts[i].second->getOptionWidth()); in operator =()
[all …]
/external/clang/lib/CodeGen/
DBackendUtil.cpp186 SanitizerCoverageOptions Opts; in addSanitizerCoveragePass() local
187 Opts.CoverageType = in addSanitizerCoveragePass()
189 Opts.IndirectCalls = CGOpts.SanitizeCoverageIndirectCalls; in addSanitizerCoveragePass()
190 Opts.TraceBB = CGOpts.SanitizeCoverageTraceBB; in addSanitizerCoveragePass()
191 Opts.TraceCmp = CGOpts.SanitizeCoverageTraceCmp; in addSanitizerCoveragePass()
192 Opts.Use8bitCounters = CGOpts.SanitizeCoverage8bitCounters; in addSanitizerCoveragePass()
193 PM.add(createSanitizerCoverageModulePass(Opts)); in addSanitizerCoveragePass()
263 static void addSymbolRewriterPass(const CodeGenOptions &Opts, in addSymbolRewriterPass() argument
268 for (const auto &MapFile : Opts.RewriteMapFiles) in addSymbolRewriterPass()
/external/llvm/tools/llvm-symbolizer/
Dllvm-symbolizer.cpp148 LLVMSymbolizer::Options Opts(ClPrintFunctions, ClUseSymbolTable, ClDemangle, in main() local
153 Opts.DsymHints.push_back(hint); in main()
159 LLVMSymbolizer Symbolizer(Opts); in main()

123