|
clang
5.0.0
|
#include "clang/Frontend/CompilerInvocation.h"#include "TestModuleFileExtension.h"#include "clang/Basic/Builtins.h"#include "clang/Basic/FileManager.h"#include "clang/Basic/Version.h"#include "clang/Config/config.h"#include "clang/Driver/DriverDiagnostic.h"#include "clang/Driver/Options.h"#include "clang/Driver/Util.h"#include "clang/Frontend/FrontendDiagnostic.h"#include "clang/Frontend/LangStandard.h"#include "clang/Frontend/Utils.h"#include "clang/Lex/HeaderSearchOptions.h"#include "clang/Lex/PreprocessorOptions.h"#include "clang/Serialization/ASTReader.h"#include "clang/Serialization/ModuleFileExtension.h"#include "llvm/ADT/Hashing.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/StringExtras.h"#include "llvm/ADT/StringSwitch.h"#include "llvm/ADT/Triple.h"#include "llvm/Linker/Linker.h"#include "llvm/Option/Arg.h"#include "llvm/Option/ArgList.h"#include "llvm/Option/OptTable.h"#include "llvm/Option/Option.h"#include "llvm/ProfileData/InstrProfReader.h"#include "llvm/Support/CodeGen.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/FileSystem.h"#include "llvm/Support/Host.h"#include "llvm/Support/Path.h"#include "llvm/Support/Process.h"#include "llvm/Target/TargetOptions.h"#include "llvm/Support/ScopedPrinter.h"#include <atomic>#include <memory>#include <sys/stat.h>#include <system_error>#include "clang/StaticAnalyzer/Core/Analyses.def"#include "clang/Frontend/LangStandards.def"#include "clang/Basic/LangOptions.def"Go to the source code of this file.
Namespaces | |
| clang | |
| /file This file defines classes for searching and anlyzing source code clones. | |
Macros | |
| #define | ANALYSIS_STORE(NAME, CMDFLAG, DESC, CREATFN) .Case(CMDFLAG, NAME##Model) |
| #define | ANALYSIS_CONSTRAINTS(NAME, CMDFLAG, DESC, CREATFN) .Case(CMDFLAG, NAME##Model) |
| #define | ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATFN) .Case(CMDFLAG, PD_##NAME) |
| #define | ANALYSIS_PURGE(NAME, CMDFLAG, DESC) .Case(CMDFLAG, NAME) |
| #define | ANALYSIS_INLINING_MODE(NAME, CMDFLAG, DESC) .Case(CMDFLAG, NAME) |
| #define | LANGSTANDARD(id, name, lang, desc, features) .Case(name, LangStandard::lang_##id) |
| #define | LANGSTANDARD_ALIAS(id, alias) .Case(alias, LangStandard::lang_##id) |
| #define | LANGSTANDARD(id, name, lang, desc, features) |
| #define | LANGSTANDARD_ALIAS(id, alias) if (KindValue == LangStandard::lang_##id) ++NumAliases; |
| #define | LANGSTANDARD_ALIAS_DEPR(id, alias) |
| #define | LANGSTANDARD(id, name, lang, desc, features) |
| #define | LANGSTANDARD_ALIAS(id, alias) if (KindValue == LangStandard::lang_##id) Diag << alias; |
| #define | LANGSTANDARD_ALIAS_DEPR(id, alias) |
| #define | LANGOPT(Name, Bits, Default, Description) code = hash_combine(code, LangOpts->Name); |
| #define | ENUM_LANGOPT(Name, Type, Bits, Default, Description) code = hash_combine(code, static_cast<unsigned>(LangOpts->get##Name())); |
| #define | BENIGN_LANGOPT(Name, Bits, Default, Description) |
| #define | BENIGN_ENUM_LANGOPT(Name, Type, Bits, Default, Description) |
Functions | |
| static unsigned | getOptimizationLevel (ArgList &Args, InputKind IK, DiagnosticsEngine &Diags) |
| static unsigned | getOptimizationLevelSize (ArgList &Args) |
| static void | addDiagnosticArgs (ArgList &Args, OptSpecifier Group, OptSpecifier GroupWithValue, std::vector< std::string > &Diagnostics) |
| static void | getAllNoBuiltinFuncValues (ArgList &Args, std::vector< std::string > &Funcs) |
| static bool | ParseAnalyzerArgs (AnalyzerOptions &Opts, ArgList &Args, DiagnosticsEngine &Diags) |
| static bool | ParseMigratorArgs (MigratorOptions &Opts, ArgList &Args) |
| static void | ParseCommentArgs (CommentOptions &Opts, ArgList &Args) |
| static StringRef | getCodeModel (ArgList &Args, DiagnosticsEngine &Diags) |
| static StringRef | getRelocModel (ArgList &Args, DiagnosticsEngine &Diags) |
| static std::shared_ptr < llvm::Regex > | GenerateOptimizationRemarkRegex (DiagnosticsEngine &Diags, ArgList &Args, Arg *RpassArg) |
Create a new Regex instance out of the string value in RpassArg. More... | |
| static bool | parseDiagnosticLevelMask (StringRef FlagName, const std::vector< std::string > &Levels, DiagnosticsEngine *Diags, DiagnosticLevelMask &M) |
| static void | parseSanitizerKinds (StringRef FlagName, const std::vector< std::string > &Sanitizers, DiagnosticsEngine &Diags, SanitizerSet &S) |
| static void | setPGOInstrumentor (CodeGenOptions &Opts, ArgList &Args, DiagnosticsEngine &Diags) |
| static void | setPGOUseInstrumentor (CodeGenOptions &Opts, const Twine &ProfileName) |
| static bool | ParseCodeGenArgs (CodeGenOptions &Opts, ArgList &Args, InputKind IK, DiagnosticsEngine &Diags, const TargetOptions &TargetOpts) |
| static void | ParseDependencyOutputArgs (DependencyOutputOptions &Opts, ArgList &Args) |
| static bool | parseShowColorsArgs (const ArgList &Args, bool DefaultColor) |
| static void | ParseFileSystemArgs (FileSystemOptions &Opts, ArgList &Args) |
| static bool | parseTestModuleFileExtensionArg (StringRef Arg, std::string &BlockName, unsigned &MajorVersion, unsigned &MinorVersion, bool &Hashed, std::string &UserInfo) |
| Parse the argument to the -ftest-module-file-extension command-line argument. More... | |
| static InputKind | ParseFrontendArgs (FrontendOptions &Opts, ArgList &Args, DiagnosticsEngine &Diags, bool &IsHeaderFile) |
| static void | ParseHeaderSearchArgs (HeaderSearchOptions &Opts, ArgList &Args, const std::string &WorkingDir) |
| static Visibility | parseVisibility (Arg *arg, ArgList &args, DiagnosticsEngine &diags) |
| Attempt to parse a visibility value out of the given argument. More... | |
| static bool | IsInputCompatibleWithStandard (InputKind IK, const LangStandard &S) |
| Check if input file kind and language standard are compatible. More... | |
| static const StringRef | GetInputKindName (InputKind IK) |
| Get language name for given input kind. More... | |
| static void | ParseLangArgs (LangOptions &Opts, ArgList &Args, InputKind IK, const TargetOptions &TargetOpts, PreprocessorOptions &PPOpts, DiagnosticsEngine &Diags) |
| static bool | isStrictlyPreprocessorAction (frontend::ActionKind Action) |
| static void | ParsePreprocessorArgs (PreprocessorOptions &Opts, ArgList &Args, FileManager &FileMgr, DiagnosticsEngine &Diags, frontend::ActionKind Action) |
| static void | ParsePreprocessorOutputArgs (PreprocessorOutputOptions &Opts, ArgList &Args, frontend::ActionKind Action) |
| static void | ParseTargetArgs (TargetOptions &Opts, ArgList &Args, DiagnosticsEngine &Diags) |
| template<typename IntTy > | |
| static IntTy | clang::getLastArgIntValueImpl (const ArgList &Args, OptSpecifier Id, IntTy Default, DiagnosticsEngine *Diags) |
| int | clang::getLastArgIntValue (const ArgList &Args, OptSpecifier Id, int Default, DiagnosticsEngine *Diags) |
| uint64_t | clang::getLastArgUInt64Value (const ArgList &Args, OptSpecifier Id, uint64_t Default, DiagnosticsEngine *Diags) |
| void | clang::BuryPointer (const void *Ptr) |
| IntrusiveRefCntPtr < vfs::FileSystem > | clang::createVFSFromCompilerInvocation (const CompilerInvocation &CI, DiagnosticsEngine &Diags) |
| IntrusiveRefCntPtr < vfs::FileSystem > | clang::createVFSFromCompilerInvocation (const CompilerInvocation &CI, DiagnosticsEngine &Diags, IntrusiveRefCntPtr< vfs::FileSystem > BaseFS) |
| #define ANALYSIS_CONSTRAINTS | ( | NAME, | |
| CMDFLAG, | |||
| DESC, | |||
| CREATFN | |||
| ) | .Case(CMDFLAG, NAME##Model) |
Referenced by ParseAnalyzerArgs().
| #define ANALYSIS_DIAGNOSTICS | ( | NAME, | |
| CMDFLAG, | |||
| DESC, | |||
| CREATFN | |||
| ) | .Case(CMDFLAG, PD_##NAME) |
Referenced by ParseAnalyzerArgs().
| #define ANALYSIS_INLINING_MODE | ( | NAME, | |
| CMDFLAG, | |||
| DESC | |||
| ) | .Case(CMDFLAG, NAME) |
Referenced by ParseAnalyzerArgs().
| #define ANALYSIS_PURGE | ( | NAME, | |
| CMDFLAG, | |||
| DESC | |||
| ) | .Case(CMDFLAG, NAME) |
Referenced by ParseAnalyzerArgs().
| #define ANALYSIS_STORE | ( | NAME, | |
| CMDFLAG, | |||
| DESC, | |||
| CREATFN | |||
| ) | .Case(CMDFLAG, NAME##Model) |
Referenced by ParseAnalyzerArgs().
| #define BENIGN_ENUM_LANGOPT | ( | Name, | |
| Type, | |||
| Bits, | |||
| Default, | |||
| Description | |||
| ) |
| #define BENIGN_LANGOPT | ( | Name, | |
| Bits, | |||
| Default, | |||
| Description | |||
| ) |
| #define ENUM_LANGOPT | ( | Name, | |
| Type, | |||
| Bits, | |||
| Default, | |||
| Description | |||
| ) | code = hash_combine(code, static_cast<unsigned>(LangOpts->get##Name())); |
| #define LANGSTANDARD | ( | id, | |
| name, | |||
| lang, | |||
| desc, | |||
| features | |||
| ) | .Case(name, LangStandard::lang_##id) |
Referenced by ParseLangArgs().
| #define LANGSTANDARD | ( | id, | |
| name, | |||
| lang, | |||
| desc, | |||
| features | |||
| ) |
| #define LANGSTANDARD | ( | id, | |
| name, | |||
| lang, | |||
| desc, | |||
| features | |||
| ) |
| #define LANGSTANDARD_ALIAS | ( | id, | |
| alias | |||
| ) | .Case(alias, LangStandard::lang_##id) |
| #define LANGSTANDARD_ALIAS | ( | id, | |
| alias | |||
| ) | if (KindValue == LangStandard::lang_##id) ++NumAliases; |
| #define LANGSTANDARD_ALIAS_DEPR | ( | id, | |
| alias | |||
| ) |
| #define LANGSTANDARD_ALIAS_DEPR | ( | id, | |
| alias | |||
| ) |
|
static |
Definition at line 125 of file CompilerInvocation.cpp.
|
static |
Create a new Regex instance out of the string value in RpassArg.
It returns a pointer to the newly generated Regex instance.
Definition at line 347 of file CompilerInvocation.cpp.
References clang::DiagnosticsEngine::Report().
Referenced by ParseCodeGenArgs().
|
static |
Definition at line 144 of file CompilerInvocation.cpp.
References clang::Builtin::Context::isBuiltinFunc().
Referenced by ParseCodeGenArgs(), and ParseLangArgs().
|
static |
Definition at line 322 of file CompilerInvocation.cpp.
References clang::DiagnosticsEngine::Report().
Referenced by ParseCodeGenArgs().
|
static |
Get language name for given input kind.
Definition at line 1827 of file CompilerInvocation.cpp.
References clang::InputKind::Asm, clang::InputKind::C, clang::InputKind::CUDA, clang::InputKind::CXX, clang::InputKind::getLanguage(), clang::InputKind::LLVM_IR, clang::InputKind::ObjC, clang::InputKind::ObjCXX, clang::InputKind::OpenCL, clang::InputKind::RenderScript, and clang::InputKind::Unknown.
Referenced by ParseLangArgs().
|
static |
Definition at line 81 of file CompilerInvocation.cpp.
References clang::InputKind::getLanguage(), clang::getLastArgIntValue(), clang::InputKind::OpenCL, and S.
Referenced by ParseCodeGenArgs(), and ParseLangArgs().
|
static |
Definition at line 109 of file CompilerInvocation.cpp.
Referenced by ParseCodeGenArgs(), and ParseLangArgs().
|
static |
Definition at line 333 of file CompilerInvocation.cpp.
References clang::DiagnosticsEngine::Report().
Referenced by ParseCodeGenArgs().
|
static |
Check if input file kind and language standard are compatible.
Definition at line 1792 of file CompilerInvocation.cpp.
References clang::InputKind::Asm, clang::InputKind::C, clang::InputKind::CUDA, clang::InputKind::CXX, clang::LangStandard::getLanguage(), clang::InputKind::getLanguage(), clang::InputKind::LLVM_IR, clang::InputKind::ObjC, clang::InputKind::ObjCXX, clang::InputKind::OpenCL, clang::InputKind::RenderScript, and clang::InputKind::Unknown.
Referenced by ParseLangArgs().
|
static |
Definition at line 2438 of file CompilerInvocation.cpp.
References clang::frontend::ASTDeclList, clang::frontend::ASTDump, clang::frontend::ASTPrint, clang::frontend::ASTView, clang::frontend::DumpRawTokens, clang::frontend::DumpTokens, clang::frontend::EmitAssembly, clang::frontend::EmitBC, clang::frontend::EmitCodeGenOnly, clang::frontend::EmitHTML, clang::frontend::EmitLLVM, clang::frontend::EmitLLVMOnly, clang::frontend::EmitObj, clang::frontend::FixIt, clang::frontend::GenerateModule, clang::frontend::GenerateModuleInterface, clang::frontend::GeneratePCH, clang::frontend::GeneratePTH, clang::frontend::InitOnly, clang::frontend::MigrateSource, clang::frontend::ModuleFileInfo, clang::frontend::ParseSyntaxOnly, clang::frontend::PluginAction, clang::frontend::PrintDeclContext, clang::frontend::PrintPreamble, clang::frontend::PrintPreprocessedInput, clang::frontend::RewriteMacros, clang::frontend::RewriteObjC, clang::frontend::RewriteTest, clang::frontend::RunAnalysis, clang::frontend::RunPreprocessorOnly, and clang::frontend::VerifyPCH.
Referenced by ParsePreprocessorArgs(), and ParsePreprocessorOutputArgs().
|
static |
Definition at line 158 of file CompilerInvocation.cpp.
References ANALYSIS_CONSTRAINTS, ANALYSIS_DIAGNOSTICS, ANALYSIS_INLINING_MODE, ANALYSIS_PURGE, ANALYSIS_STORE, clang::AnalyzerOptions::AnalysisConstraintsOpt, clang::AnalyzerOptions::AnalysisDiagOpt, clang::AnalyzerOptions::AnalysisPurgeOpt, clang::AnalyzerOptions::AnalysisStoreOpt, clang::AnalyzerOptions::AnalyzeAll, clang::AnalyzerOptions::AnalyzeNestedBlocks, clang::AnalyzerOptions::AnalyzerDisplayProgress, clang::AnalyzerOptions::AnalyzeSpecificFunction, clang::AnalyzerOptions::CheckersControlList, clang::AnalyzerOptions::Config, clang::AnalyzerOptions::DisableAllChecks, clang::AnalyzerOptions::eagerlyAssumeBinOpBifurcation, clang::getLastArgIntValue(), clang::AnalyzerOptions::InlineMaxStackDepth, clang::AnalyzerOptions::InliningMode, clang::AnalyzerOptions::maxBlockVisitOnPath, Name, clang::AnalyzerOptions::NoRetryExhausted, clang::NUM_ANALYSIS_DIAG_CLIENTS, clang::NumConstraints, clang::NumInliningModes, clang::NumPurgeModes, clang::NumStores, clang::AnalyzerOptions::PrintStats, clang::DiagnosticsEngine::Report(), clang::AnalyzerOptions::ShowCheckerHelp, clang::AnalyzerOptions::ShowEnabledCheckerList, clang::AnalyzerOptions::TrimGraph, clang::AnalyzerOptions::UnoptimizedCFG, clang::AnalyzerOptions::visualizeExplodedGraphWithGraphViz, and clang::AnalyzerOptions::visualizeExplodedGraphWithUbiGraph.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 435 of file CompilerInvocation.cpp.
References clang::CodeGenOptions::Accelerate, clang::CodeGenOptions::BackendOptions, clang::CodeGenOptions::CmdArgs, clang::CodeGenOptions::CodeModel, clang::CodeGenOptions::CoverageDataFile, clang::CodeGenOptions::CoverageNotesFile, clang::CodeGenOptions::CoverageVersion, clang::CodeGenOptions::CudaGpuBinaryFileNames, clang::CodeGenOptions::DebugCompilationDir, clang::codegenoptions::DebugLineTablesOnly, clang::CodeGenOptions::DebugPass, clang::CodeGenOptions::DebugPrefixMap, clang::LangAS::Default, clang::CodeGenOptions::DependentLibraries, clang::CodeGenOptions::DwarfDebugFlags, clang::CodeGenOptions::Embed_All, clang::CodeGenOptions::Embed_Bitcode, clang::CodeGenOptions::Embed_Marker, clang::CodeGenOptions::Embed_Off, clang::CodeGenOptions::BitcodeFileToLink::Filename, clang::CodeGenOptions::FloatABI, clang::CodeGenOptions::FPDenormalMode, clang::codegenoptions::FullDebugInfo, clang::CodeGenOptions::GeneralDynamicTLSModel, GenerateOptimizationRemarkRegex(), getAllNoBuiltinFuncValues(), getCodeModel(), clang::InputKind::getLanguage(), clang::getLastArgIntValue(), clang::getLastArgUInt64Value(), getOptimizationLevel(), getOptimizationLevelSize(), getRelocModel(), clang::CodeGenOptions::InitialExecTLSModel, clang::CodeGenOptions::InstrProfileOutput, clang::CodeGenOptions::BitcodeFileToLink::Internalize, clang::CodeGenOptions::Latest, clang::CodeGenOptions::Legacy, clang::codegenoptions::LimitedDebugInfo, clang::CodeGenOptions::LimitFloatPrecision, clang::CodeGenOptions::LinkBitcodeFiles, clang::CodeGenOptions::LinkerOptions, clang::CodeGenOptions::BitcodeFileToLink::LinkFlags, clang::InputKind::LLVM_IR, clang::CodeGenOptions::LocalDynamicTLSModel, clang::CodeGenOptions::LocalExecTLSModel, clang::codegenoptions::LocTrackingOnly, clang::CodeGenOptions::MainFileName, clang::CodeGenOptions::Mixed, Name, clang::CodeGenOptions::NoBuiltinFuncs, clang::codegenoptions::NoDebugInfo, clang::CodeGenOptions::NoLibrary, clang::CodeGenOptions::NonLegacy, clang::CodeGenOptions::NormalInlining, clang::CodeGenOptions::OnlyAlwaysInlining, clang::CodeGenOptions::OnlyHintInlining, clang::CodeGenOptions::OptimizationRemarkAnalysisPattern, clang::CodeGenOptions::OptimizationRemarkMissedPattern, clang::CodeGenOptions::OptimizationRemarkPattern, clang::CodeGenOptions::OptRecordFile, parseSanitizerKinds(), clang::CodeGenOptions::ProfileInstrumentUsePath, clang::CodeGenOptions::ProfileNone, clang::CodeGenOptions::BitcodeFileToLink::PropagateAttrs, clang::CodeGenOptions::RelocationModel, clang::DiagnosticsEngine::Report(), clang::CodeGenOptions::RewriteMapFiles, S, clang::CodeGenOptions::SampleProfileFile, clang::CodeGenOptions::SanitizeRecover, clang::CodeGenOptions::SanitizeTrap, setPGOInstrumentor(), setPGOUseInstrumentor(), clang::CodeGenOptions::SplitDwarfFile, clang::CodeGenOptions::SRCK_InRegs, clang::CodeGenOptions::SRCK_OnStack, clang::CodeGenOptions::SVML, clang::CodeGenOptions::ThinLinkBitcodeFile, clang::CodeGenOptions::ThinLTOIndexFile, clang::CodeGenOptions::ThreadModel, clang::CodeGenOptions::TrapFuncName, clang::TargetOptions::Triple, clang::CodeGenOptions::Ver3_8, and clang::CodeGenOptions::Ver4.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 317 of file CompilerInvocation.cpp.
References clang::CommentOptions::BlockCommandNames, and clang::CommentOptions::ParseAllComments.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 985 of file CompilerInvocation.cpp.
References clang::DependencyOutputOptions::AddMissingHeaderDeps, clang::DependencyOutputOptions::DOTOutputFile, clang::DependencyOutputOptions::ExtraDeps, clang::DependencyOutputOptions::HeaderIncludeOutputFile, clang::DependencyOutputOptions::IncludeModuleFiles, clang::DependencyOutputOptions::IncludeSystemHeaders, clang::DependencyOutputOptions::ModuleDependencyOutputDir, clang::NMake, clang::DependencyOutputOptions::OutputFile, clang::DependencyOutputOptions::OutputFormat, clang::DependencyOutputOptions::PrintShowIncludes, clang::DependencyOutputOptions::ShowHeaderIncludes, clang::DependencyOutputOptions::Targets, and clang::DependencyOutputOptions::UsePhonyTargets.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 360 of file CompilerInvocation.cpp.
References clang::Error, clang::None, clang::Note, clang::Remark, clang::DiagnosticsEngine::Report(), and clang::Warning.
|
static |
Definition at line 1172 of file CompilerInvocation.cpp.
References clang::FileSystemOptions::WorkingDir.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 1200 of file CompilerInvocation.cpp.
References clang::FrontendOptions::ActionName, clang::FrontendOptions::AddPluginActions, clang::FrontendOptions::ARCMT_Check, clang::FrontendOptions::ARCMT_Migrate, clang::FrontendOptions::ARCMT_Modify, clang::FrontendOptions::ARCMT_None, clang::FrontendOptions::ARCMTAction, clang::FrontendOptions::ARCMTMigrateEmitARCErrors, clang::FrontendOptions::ARCMTMigrateReportOut, clang::InputKind::Asm, clang::frontend::ASTDeclList, clang::frontend::ASTDump, clang::FrontendOptions::ASTDumpAll, clang::FrontendOptions::ASTDumpDecls, clang::FrontendOptions::ASTDumpFilter, clang::FrontendOptions::ASTDumpLookups, clang::FrontendOptions::ASTMergeFiles, clang::frontend::ASTPrint, clang::frontend::ASTView, clang::FrontendOptions::AuxTriple, clang::InputKind::C, clang::FrontendOptions::CodeCompleteOpts, clang::FrontendOptions::CodeCompletionAt, clang::InputKind::CUDA, clang::InputKind::CXX, clang::FrontendOptions::DisableFree, clang::frontend::DumpRawTokens, clang::frontend::DumpTokens, clang::frontend::EmitAssembly, clang::frontend::EmitBC, clang::frontend::EmitCodeGenOnly, clang::frontend::EmitHTML, clang::frontend::EmitLLVM, clang::frontend::EmitLLVMOnly, clang::frontend::EmitObj, clang::ParsedSourceLocation::FileName, clang::FrontendOptions::FindPchSource, clang::FrontendOptions::FixAndRecompile, clang::frontend::FixIt, clang::FrontendOptions::FixItSuffix, clang::FrontendOptions::FixOnlyWarnings, clang::FrontendOptions::FixToTemporaries, clang::FrontendOptions::FixWhatYouCan, clang::ParsedSourceLocation::FromString(), clang::FrontendOptions::GenerateGlobalModuleIndex, clang::frontend::GenerateModule, clang::frontend::GenerateModuleInterface, clang::frontend::GeneratePCH, clang::frontend::GeneratePTH, clang::InputKind::getFormat(), clang::FrontendOptions::getInputKindForExtension(), clang::InputKind::getPreprocessed(), clang::if(), clang::CodeCompleteOptions::IncludeBriefComments, clang::CodeCompleteOptions::IncludeCodePatterns, clang::CodeCompleteOptions::IncludeGlobals, clang::CodeCompleteOptions::IncludeMacros, clang::FrontendOptions::IncludeTimestamps, clang::frontend::InitOnly, clang::FrontendOptions::Inputs, IsHeaderFile(), clang::InputKind::isUnknown(), clang::InputKind::LLVM_IR, clang::FrontendOptions::LLVMArgs, clang::frontend::MigrateSource, clang::FrontendOptions::ModuleFileExtensions, clang::frontend::ModuleFileInfo, clang::FrontendOptions::ModuleFiles, clang::InputKind::ModuleMap, clang::FrontendOptions::ModuleMapFiles, clang::FrontendOptions::ModulesEmbedAllFiles, clang::FrontendOptions::ModulesEmbedFiles, clang::FrontendOptions::MTMigrateDir, normalize(), clang::InputKind::ObjC, clang::FrontendOptions::ObjCMT_Annotation, clang::FrontendOptions::ObjCMT_AtomicProperty, clang::FrontendOptions::ObjCMT_DesignatedInitializer, clang::FrontendOptions::ObjCMT_Instancetype, clang::FrontendOptions::ObjCMT_Literals, clang::FrontendOptions::ObjCMT_MigrateDecls, clang::FrontendOptions::ObjCMT_None, clang::FrontendOptions::ObjCMT_NsAtomicIOSOnlyProperty, clang::FrontendOptions::ObjCMT_NsMacros, clang::FrontendOptions::ObjCMT_Property, clang::FrontendOptions::ObjCMT_PropertyDotSyntax, clang::FrontendOptions::ObjCMT_ProtocolConformance, clang::FrontendOptions::ObjCMT_ReadonlyProperty, clang::FrontendOptions::ObjCMT_ReadwriteProperty, clang::FrontendOptions::ObjCMT_ReturnsInnerPointerProperty, clang::FrontendOptions::ObjCMT_Subscripting, clang::FrontendOptions::ObjCMTAction, clang::FrontendOptions::ObjCMTWhiteListPath, clang::InputKind::ObjCXX, clang::InputKind::OpenCL, clang::FrontendOptions::OutputFile, clang::FrontendOptions::OverrideRecordLayoutsFile, clang::frontend::ParseSyntaxOnly, parseTestModuleFileExtensionArg(), clang::frontend::PluginAction, clang::FrontendOptions::PluginArgs, clang::FrontendOptions::Plugins, clang::InputKind::Precompiled, clang::frontend::PrintDeclContext, clang::frontend::PrintPreamble, clang::frontend::PrintPreprocessedInput, clang::FrontendOptions::ProgramAction, clang::FrontendOptions::RelocatablePCH, clang::InputKind::RenderScript, clang::DiagnosticsEngine::Report(), clang::frontend::RewriteMacros, clang::frontend::RewriteObjC, clang::frontend::RewriteTest, clang::frontend::RunAnalysis, clang::frontend::RunPreprocessorOnly, clang::FrontendOptions::ShowHelp, clang::FrontendOptions::ShowStats, clang::FrontendOptions::ShowTimers, clang::FrontendOptions::ShowVersion, clang::InputKind::Source, clang::FrontendOptions::StatsFile, clang::InputKind::Unknown, clang::FrontendOptions::UseGlobalModuleIndex, clang::frontend::VerifyPCH, and clang::InputKind::withFormat().
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 1517 of file CompilerInvocation.cpp.
References clang::HeaderSearchOptions::AddPath(), clang::HeaderSearchOptions::AddPrebuiltModulePath(), clang::HeaderSearchOptions::AddSystemHeaderPrefix(), clang::HeaderSearchOptions::AddVFSOverlayFile(), clang::frontend::After, clang::frontend::Angled, Buffer, clang::HeaderSearchOptions::BuildSessionTimestamp, clang::frontend::CSystem, clang::frontend::CXXSystem, clang::HeaderSearchOptions::DisableModuleHash, clang::frontend::ExternCSystem, clang::getLastArgIntValue(), clang::getLastArgUInt64Value(), clang::HeaderSearchOptions::ImplicitModuleMaps, clang::frontend::IndexHeaderMap, clang::HeaderSearchOptions::ModuleCachePath, clang::HeaderSearchOptions::ModuleCachePruneAfter, clang::HeaderSearchOptions::ModuleCachePruneInterval, clang::HeaderSearchOptions::ModuleFormat, clang::HeaderSearchOptions::ModuleMapFileHomeIsCwd, clang::HeaderSearchOptions::ModulesHashContent, clang::HeaderSearchOptions::ModulesIgnoreMacros, clang::HeaderSearchOptions::ModulesValidateDiagnosticOptions, clang::HeaderSearchOptions::ModulesValidateOncePerBuildSession, clang::HeaderSearchOptions::ModulesValidateSystemHeaders, clang::HeaderSearchOptions::ModuleUserBuildPath, clang::frontend::ObjCSystem, clang::frontend::ObjCXXSystem, P, clang::frontend::Quoted, clang::HeaderSearchOptions::ResourceDir, clang::HeaderSearchOptions::Sysroot, clang::frontend::System, clang::HeaderSearchOptions::UseBuiltinIncludes, clang::HeaderSearchOptions::UseLibcxx, clang::HeaderSearchOptions::UseStandardCXXIncludes, clang::HeaderSearchOptions::UseStandardSystemIncludes, and clang::HeaderSearchOptions::Verbose.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 1855 of file CompilerInvocation.cpp.
References clang::ObjCRuntime::allowsARC(), clang::ObjCRuntime::allowsWeak(), clang::LangOptions::ASMM_Off, clang::LangOptions::ASMM_On, clang::LangOptions::ASMM_Target, clang::LangOptions::CurrentModule, clang::LangOptions::DCC_CDecl, clang::LangOptions::DCC_FastCall, clang::LangOptions::DCC_None, clang::LangOptions::DCC_StdCall, clang::LangOptions::DCC_VectorCall, clang::DefaultVisibility, Diag(), clang::LangOptions::FPC_Fast, clang::LangOptions::FPC_Off, clang::LangOptions::FPC_On, clang::ObjCRuntime::FragileMacOSX, clang::LangOptions::GCOnly, getAllNoBuiltinFuncValues(), clang::LangStandard::getDescription(), GetInputKindName(), clang::ObjCRuntime::getKind(), clang::LangStandard::getLangStandardForKind(), clang::getLastArgIntValue(), clang::VersionTuple::getMajor(), clang::VersionTuple::getMinor(), clang::LangStandard::getName(), getOptimizationLevel(), getOptimizationLevelSize(), clang::VersionTuple::getSubminor(), clang::LangOptions::HybridGC, clang::if(), IsInputCompatibleWithStandard(), clang::LangStandard::lang_unspecified, LANGSTANDARD, clang::LangOptions::ModuleFeatures, clang::LangOptions::NoBuiltinFuncs, clang::LangOptions::NonGC, clang::LangOptions::ObjCConstantStringClass, clang::LangOptions::ObjCRuntime, clang::LangOptions::OMPHostIRFile, clang::LangOptions::OMPTargetTriples, clang::LangOptions::OverflowHandler, parseSanitizerKinds(), parseVisibility(), clang::LangOptions::PPTMK_BestCase, clang::LangOptions::PPTMK_FullGeneralityMultipleInheritance, clang::LangOptions::PPTMK_FullGeneralitySingleInheritance, clang::LangOptions::PPTMK_FullGeneralityVirtualInheritance, clang::DiagnosticsEngine::Report(), clang::LangOptions::Sanitize, clang::LangOptions::SanitizerBlacklistFiles, clang::CompilerInvocation::setLangDefaults(), clang::LangOptions::SOB_Defined, clang::LangOptions::SOB_Trapping, clang::LangOptions::SSPOff, clang::LangOptions::SSPOn, clang::LangOptions::SSPReq, clang::LangOptions::SSPStrong, clang::TargetOptions::Triple, clang::VersionTuple::tryParse(), clang::ObjCRuntime::tryParse(), clang::LangOptions::XRayAlwaysInstrumentFiles, and clang::LangOptions::XRayNeverInstrumentFiles.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 311 of file CompilerInvocation.cpp.
References clang::MigratorOptions::NoFinalizeRemoval, and clang::MigratorOptions::NoNSAllocReallocError.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 2479 of file CompilerInvocation.cpp.
References clang::PreprocessorOptions::addMacroDef(), clang::PreprocessorOptions::addMacroUndef(), clang::PreprocessorOptions::addRemappedFile(), clang::PreprocessorOptions::AllowPCHWithCompilerErrors, clang::ARCXX_libcxx, clang::ARCXX_libstdcxx, clang::ARCXX_nolib, clang::PreprocessorOptions::ChainedIncludes, clang::prec::Comma, clang::PreprocessorOptions::DeserializedPCHDeclsToErrorOn, clang::PreprocessorOptions::DetailedRecord, clang::PreprocessorOptions::DisablePCHValidation, clang::PreprocessorOptions::DumpDeserializedPCHDecls, clang::PreprocessorOptions::ImplicitPCHInclude, clang::PreprocessorOptions::ImplicitPTHInclude, clang::PreprocessorOptions::Includes, isStrictlyPreprocessorAction(), clang::PreprocessorOptions::LexEditorPlaceholders, clang::PreprocessorOptions::MacroIncludes, Name, clang::PreprocessorOptions::ObjCXXARCStandardLibrary, clang::PreprocessorOptions::PrecompiledPreambleBytes, clang::DiagnosticsEngine::Report(), clang::PreprocessorOptions::TokenCache, and clang::PreprocessorOptions::UsePredefines.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 2563 of file CompilerInvocation.cpp.
References isStrictlyPreprocessorAction(), clang::PreprocessorOutputOptions::RewriteImports, clang::PreprocessorOutputOptions::RewriteIncludes, clang::PreprocessorOutputOptions::ShowComments, clang::PreprocessorOutputOptions::ShowCPP, clang::PreprocessorOutputOptions::ShowIncludeDirectives, clang::PreprocessorOutputOptions::ShowLineMarkers, clang::PreprocessorOutputOptions::ShowMacroComments, clang::PreprocessorOutputOptions::ShowMacros, and clang::PreprocessorOutputOptions::UseLineDirectives.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 383 of file CompilerInvocation.cpp.
References clang::parseSanitizerValue(), clang::DiagnosticsEngine::Report(), and clang::SanitizerSet::set().
Referenced by clang::CompilerInvocation::CreateFromArgs(), ParseCodeGenArgs(), and ParseLangArgs().
Definition at line 1011 of file CompilerInvocation.cpp.
|
static |
Definition at line 2583 of file CompilerInvocation.cpp.
References clang::TargetOptions::ABI, clang::TargetOptions::CPU, clang::LangAS::Default, clang::TargetOptions::EABIVersion, clang::TargetOptions::FeaturesAsWritten, clang::TargetOptions::FPMath, clang::TargetOptions::LinkerVersion, normalize(), clang::TargetOptions::OpenCLExtensionsAsWritten, clang::TargetOptions::Reciprocals, clang::DiagnosticsEngine::Report(), clang::TargetOptions::Triple, and clang::prec::Unknown.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Parse the argument to the -ftest-module-file-extension command-line argument.
Definition at line 1180 of file CompilerInvocation.cpp.
Referenced by ParseFrontendArgs().
|
static |
Attempt to parse a visibility value out of the given argument.
Definition at line 1774 of file CompilerInvocation.cpp.
References clang::DefaultVisibility, clang::HiddenVisibility, clang::ProtectedVisibility, and clang::DiagnosticsEngine::Report().
Referenced by ParseLangArgs().
|
static |
Definition at line 396 of file CompilerInvocation.cpp.
References I, clang::CodeGenOptions::ProfileClangInstr, clang::CodeGenOptions::ProfileIRInstr, clang::CodeGenOptions::ProfileNone, clang::DiagnosticsEngine::Report(), and S.
Referenced by ParseCodeGenArgs().
|
static |
Definition at line 418 of file CompilerInvocation.cpp.
References clang::serialized_diags::create(), E, clang::CodeGenOptions::ProfileClangInstr, and clang::CodeGenOptions::ProfileIRInstr.
Referenced by ParseCodeGenArgs().
1.8.6