clang
7.0.0
|
#include "clang/Frontend/CompilerInvocation.h"
#include "TestModuleFileExtension.h"
#include "clang/Basic/Builtins.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Basic/CommentOptions.h"
#include "clang/Basic/DebugInfoOptions.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Basic/FileSystemOptions.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/ObjCRuntime.h"
#include "clang/Basic/Sanitizers.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/TargetOptions.h"
#include "clang/Basic/Version.h"
#include "clang/Basic/VirtualFileSystem.h"
#include "clang/Basic/Visibility.h"
#include "clang/Basic/XRayInstr.h"
#include "clang/Config/config.h"
#include "clang/Driver/DriverDiagnostic.h"
#include "clang/Driver/Options.h"
#include "clang/Frontend/CodeGenOptions.h"
#include "clang/Frontend/CommandLineSourceLoc.h"
#include "clang/Frontend/DependencyOutputOptions.h"
#include "clang/Frontend/FrontendDiagnostic.h"
#include "clang/Frontend/FrontendOptions.h"
#include "clang/Frontend/LangStandard.h"
#include "clang/Frontend/MigratorOptions.h"
#include "clang/Frontend/PreprocessorOutputOptions.h"
#include "clang/Frontend/Utils.h"
#include "clang/Lex/HeaderSearchOptions.h"
#include "clang/Lex/PreprocessorOptions.h"
#include "clang/Sema/CodeCompleteOptions.h"
#include "clang/Serialization/ModuleFileExtension.h"
#include "clang/StaticAnalyzer/Core/AnalyzerOptions.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/CachedHashString.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Triple.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Linker/Linker.h"
#include "llvm/MC/MCTargetOptions.h"
#include "llvm/Option/Arg.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Option/OptSpecifier.h"
#include "llvm/Option/OptTable.h"
#include "llvm/Option/Option.h"
#include "llvm/ProfileData/InstrProfReader.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/Regex.h"
#include "llvm/Support/VersionTuple.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetOptions.h"
#include <algorithm>
#include <atomic>
#include <cassert>
#include <cstddef>
#include <cstring>
#include <memory>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#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 | |
Dataflow Directional Tag Classes. | |
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 llvm::Reloc::Model | 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 | parseXRayInstrumentationBundle (StringRef FlagName, StringRef Bundle, ArgList &Args, DiagnosticsEngine &D, XRayInstrSet &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, const FrontendOptions &FrontendOpts) |
static void | ParseDependencyOutputArgs (DependencyOutputOptions &Opts, ArgList &Args) |
static bool | parseShowColorsArgs (const ArgList &Args, bool DefaultColor) |
static bool | checkVerifyPrefixes (const std::vector< std::string > &VerifyPrefixes, DiagnosticsEngine *Diags) |
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, 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 | 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) |
#define ANALYSIS_DIAGNOSTICS | ( | NAME, | |
CMDFLAG, | |||
DESC, | |||
CREATFN | |||
) | .Case(CMDFLAG, PD_##NAME) |
#define ANALYSIS_INLINING_MODE | ( | NAME, | |
CMDFLAG, | |||
DESC | |||
) | .Case(CMDFLAG, NAME) |
#define ANALYSIS_PURGE | ( | NAME, | |
CMDFLAG, | |||
DESC | |||
) | .Case(CMDFLAG, NAME) |
#define ANALYSIS_STORE | ( | NAME, | |
CMDFLAG, | |||
DESC, | |||
CREATFN | |||
) | .Case(CMDFLAG, NAME##Model) |
#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 LANGOPT | ( | Name, | |
Bits, | |||
Default, | |||
Description | |||
) | code = hash_combine(code, LangOpts->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 164 of file CompilerInvocation.cpp.
Referenced by checkVerifyPrefixes().
|
static |
Definition at line 1202 of file CompilerInvocation.cpp.
References addDiagnosticArgs(), clang::All, clang::C, clang::DiagnosticOptions::Clang, clang::DiagnosticOptions::DefaultConstexprBacktraceLimit, clang::DiagnosticOptions::DefaultMacroBacktraceLimit, clang::DiagnosticOptions::DefaultSnippetLineLimit, clang::DiagnosticOptions::DefaultSpellCheckingLimit, clang::DiagnosticOptions::DefaultTabStop, clang::DiagnosticOptions::DefaultTemplateBacktraceLimit, clang::DiagnosticOptions::DiagnosticLogFile, clang::DiagnosticOptions::DiagnosticSerializationFile, clang::getLastArgIntValue(), clang::isAlphanumeric(), clang::isLetter(), clang::DiagnosticOptions::MaxTabStop, clang::DiagnosticOptions::MSVC, clang::None, clang::Ovl_All, clang::Ovl_Best, clang::ParseDiagnosticArgs(), parseDiagnosticLevelMask(), parseShowColorsArgs(), clang::DiagnosticOptions::Remarks, clang::DiagnosticsEngine::Report(), clang::DiagnosticOptions::VerifyPrefixes, clang::DiagnosticOptions::Vi, and clang::DiagnosticOptions::Warnings.
|
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 401 of file CompilerInvocation.cpp.
References clang::DiagnosticsEngine::Report().
|
static |
Definition at line 183 of file CompilerInvocation.cpp.
References clang::Builtin::Context::isBuiltinFunc().
|
static |
Definition at line 368 of file CompilerInvocation.cpp.
References clang::DiagnosticsEngine::Report().
|
static |
Get language name for given input kind.
Definition at line 2052 of file CompilerInvocation.cpp.
References clang::InputKind::Asm, clang::InputKind::C, clang::InputKind::CUDA, clang::InputKind::CXX, clang::InputKind::getLanguage(), clang::InputKind::HIP, 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 3170 of file CompilerInvocation.cpp.
References clang::Default, and clang::DiagnosticsEngine::Report().
|
static |
Definition at line 120 of file CompilerInvocation.cpp.
References clang::InputKind::getLanguage(), and clang::InputKind::OpenCL.
Referenced by ParseCodeGenArgs().
|
static |
Definition at line 148 of file CompilerInvocation.cpp.
|
static |
Definition at line 379 of file CompilerInvocation.cpp.
References clang::None, and clang::DiagnosticsEngine::Report().
|
static |
Check if input file kind and language standard are compatible.
Definition at line 2013 of file CompilerInvocation.cpp.
Referenced by ParseLangArgs().
|
static |
Definition at line 2789 of file CompilerInvocation.cpp.
References clang::frontend::ASTDeclList, clang::frontend::ASTDump, clang::frontend::ASTPrint, clang::frontend::ASTView, clang::frontend::DumpCompilerOptions, 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, clang::frontend::TemplightDump, and clang::frontend::VerifyPCH.
Referenced by ParsePreprocessorOutputArgs().
|
static |
Definition at line 197 of file CompilerInvocation.cpp.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 507 of file CompilerInvocation.cpp.
References getOptimizationLevel(), clang::CodeGenOptions::NormalInlining, clang::CodeGenOptions::OnlyAlwaysInlining, clang::CodeGenOptions::OnlyHintInlining, clang::DiagnosticsEngine::Report(), and clang::TargetOptions::Triple.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 363 of file CompilerInvocation.cpp.
References clang::CommentOptions::BlockCommandNames, and clang::CommentOptions::ParseAllComments.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 1131 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::None, clang::DependencyOutputOptions::OutputFile, clang::DependencyOutputOptions::OutputFormat, clang::DependencyOutputOptions::ShowHeaderIncludes, clang::DependencyOutputOptions::ShowIncludesDest, clang::Stderr, clang::Stdout, clang::DependencyOutputOptions::Targets, and clang::DependencyOutputOptions::UsePhonyTargets.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 414 of file CompilerInvocation.cpp.
References clang::Error, clang::None, clang::Note, clang::Remark, clang::DiagnosticsEngine::Report(), and clang::Warning.
Referenced by checkVerifyPrefixes().
|
static |
Definition at line 1360 of file CompilerInvocation.cpp.
References clang::FileSystemOptions::WorkingDir.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 1388 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::DumpCompilerOptions, 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::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::InputKind::HIP, clang::if(), clang::CodeCompleteOptions::IncludeBriefComments, clang::CodeCompleteOptions::IncludeCodePatterns, clang::CodeCompleteOptions::IncludeFixIts, clang::CodeCompleteOptions::IncludeGlobals, clang::CodeCompleteOptions::IncludeMacros, clang::CodeCompleteOptions::IncludeNamespaceLevelDecls, 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::frontend::TemplightDump, clang::InputKind::Unknown, clang::FrontendOptions::UseGlobalModuleIndex, clang::frontend::VerifyPCH, and clang::InputKind::withFormat().
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 1717 of file CompilerInvocation.cpp.
References clang::HeaderSearchOptions::AddPrebuiltModulePath(), clang::frontend::Angled, clang::HeaderSearchOptions::BuildSessionTimestamp, clang::HeaderSearchOptions::DisableModuleHash, 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, P, clang::HeaderSearchOptions::PrebuiltModuleFiles, clang::HeaderSearchOptions::ResourceDir, clang::HeaderSearchOptions::Sysroot, 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 2082 of file CompilerInvocation.cpp.
References Diag(), clang::LangStandard::getDescription(), GetInputKindName(), clang::LangStandard::getLangStandardForKind(), clang::LangStandard::getName(), IsInputCompatibleWithStandard(), clang::LangStandard::lang_unspecified, LANGSTANDARD, clang::DiagnosticsEngine::Report(), and Std.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 357 of file CompilerInvocation.cpp.
References clang::MigratorOptions::NoFinalizeRemoval, and clang::MigratorOptions::NoNSAllocReallocError.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 2832 of file CompilerInvocation.cpp.
References clang::PreprocessorOptions::AllowPCHWithCompilerErrors, clang::prec::Comma, clang::PreprocessorOptions::DeserializedPCHDeclsToErrorOn, clang::PreprocessorOptions::DetailedRecord, clang::PreprocessorOptions::DisablePCHValidation, clang::PreprocessorOptions::DumpDeserializedPCHDecls, clang::PreprocessorOptions::ImplicitPCHInclude, clang::PreprocessorOptions::ImplicitPTHInclude, clang::PreprocessorOptions::PCHThroughHeader, clang::PreprocessorOptions::PrecompiledPreambleBytes, clang::DiagnosticsEngine::Report(), clang::PreprocessorOptions::TokenCache, and clang::PreprocessorOptions::UsePredefines.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
static |
Definition at line 2926 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 437 of file CompilerInvocation.cpp.
Referenced by clang::CompilerInvocation::CreateFromArgs().
Definition at line 1169 of file CompilerInvocation.cpp.
Referenced by checkVerifyPrefixes().
|
static |
Definition at line 2944 of file CompilerInvocation.cpp.
References clang::TargetOptions::ABI, clang::TargetOptions::CPU, clang::TargetOptions::EABIVersion, clang::TargetOptions::FeaturesAsWritten, clang::TargetOptions::ForceEnableInt128, clang::TargetOptions::FPMath, clang::TargetOptions::LinkerVersion, normalize(), clang::TargetOptions::NVPTXUseShortPointers, clang::TargetOptions::OpenCLExtensionsAsWritten, 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 1368 of file CompilerInvocation.cpp.
Referenced by ParseFrontendArgs().
|
static |
Attempt to parse a visibility value out of the given argument.
Definition at line 1995 of file CompilerInvocation.cpp.
References clang::DefaultVisibility, clang::HiddenVisibility, clang::ProtectedVisibility, and clang::DiagnosticsEngine::Report().
|
static |
Definition at line 449 of file CompilerInvocation.cpp.
|
static |
Definition at line 469 of file CompilerInvocation.cpp.
|
static |
Definition at line 490 of file CompilerInvocation.cpp.
References clang::serialized_diags::create().