reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/CodeGen/LinkAllAsmWriterComponents.h
   27       if (std::getenv("bar") != (char*) -1)
include/llvm/CodeGen/LinkAllCodegenComponents.h
   30       if (std::getenv("bar") != (char*) -1)
include/llvm/ExecutionEngine/MCJIT.h
   29       if (std::getenv("bar") != (char*) -1)
include/llvm/ExecutionEngine/OrcMCJITReplacement.h
   29       if (std::getenv("bar") != (char*) -1)
include/llvm/LinkAllIR.h
   41       if (std::getenv("bar") != (char*) -1)
include/llvm/LinkAllPasses.h
   67       if (std::getenv("bar") != (char*) -1)
lib/MC/MCContext.cpp
   57         cl::init(getenv("AS_SECURE_LOG_FILE")), cl::Hidden);
lib/Object/ArchiveWriter.cpp
  591     const char *Sym64Env = std::getenv("SYM64_THRESHOLD");
lib/Object/IRSymtab.cpp
   60   if (char *OverrideName = getenv("LLVM_OVERRIDE_PRODUCER"))
lib/Support/Unix/Path.inc
  154   if ((pv = getenv("PATH")) == nullptr)
  288   const char *pwd = ::getenv("PWD");
 1098   char *RequestedDir = getenv("HOME");
 1142     if (const char *Dir = std::getenv(Env))
lib/Support/Unix/Process.inc
  168   const char *Val = ::getenv(NameStr.c_str());
  285   if (const char *ColumnsStr = std::getenv("COLUMNS")) {
lib/Support/Unix/Program.inc
   78     if (const char *PathEnv = std::getenv("PATH")) {
projects/compiler-rt/lib/profile/InstrProfilingFile.c
  160   BufferSzStr = getenv("LLVM_VP_BUFFER_SIZE");
  467     if (getenv("LLVM_PROFILE_VERBOSE"))
  471     if (getenv("LLVM_PROFILE_VERBOSE"))
  559   const char *Filename = getenv("LLVM_PROFILE_FILE");
projects/compiler-rt/lib/profile/InstrProfilingUtil.c
  241   const char *Prefix = getenv("GCOV_PREFIX");
  242   const char *PrefixStripStr = getenv("GCOV_PREFIX_STRIP");
projects/compiler-rt/lib/profile/InstrProfilingValue.c
   42   Str = getenv("LLVM_VP_MAX_NUM_VALS_PER_SITE");
projects/compiler-rt/lib/scudo/standalone/linux.cpp
   86 const char *getEnv(const char *Name) { return getenv(Name); }
projects/compiler-rt/lib/ubsan/ubsan_flags.cpp
   33     return getenv(flag);
projects/openmp/runtime/src/kmp_csupport.cpp
   42   if ((env = getenv("KMP_INITIAL_THREAD_BIND")) != NULL &&
projects/openmp/runtime/src/kmp_environment.cpp
   89   char const *value = getenv(name);
  154   char const *value = getenv(name);
projects/openmp/runtime/src/kmp_runtime.cpp
 7546   if ((env = getenv("KMP_IGNORE_MPPBEG")) != NULL) {
 7557   if ((env = getenv("KMP_IGNORE_MPPEND")) != NULL) {
projects/openmp/runtime/src/ompt-general.cpp
  247   const char *tool_libs = getenv("OMP_TOOL_LIBRARIES");
  288   const char *ompt_env_var = getenv("OMP_TOOL");
projects/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp
  800         char* env = getenv(name);
tools/bugpoint/ToolRunner.cpp
  719     char *env_pwd = getenv("PWD");
tools/bugpoint/bugpoint.cpp
  165   if (std::getenv("bar") == (char*) -1) {
tools/clang/lib/Driver/Driver.cpp
 1045                                !!::getenv("FORCE_CLANG_DIAGNOSTICS_CRASH"));
tools/clang/lib/Driver/ToolChains/Clang.cpp
  612   const char *Username = getenv("LOGNAME");
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
   91   const char *DirList = ::getenv(EnvVar);
tools/clang/lib/Driver/ToolChains/Darwin.cpp
 1478     if (char *Env = ::getenv(I.value()))
 1664     if (char *env = ::getenv("SDKROOT")) {
 2417   if (const char *S = ::getenv("RC_DEBUG_OPTIONS"))
tools/clang/lib/Driver/ToolChains/PS4CPU.cpp
  366   if (const char *EnvValue = getenv("SCE_ORBIS_SDK_DIR")) {
tools/clang/lib/Driver/ToolChains/XCore.cpp
  116   if (const char *cl_include_dir = getenv("XCC_C_INCLUDE_PATH")) {
  137   if (const char *cl_include_dir = getenv("XCC_CPLUS_INCLUDE_PATH")) {
tools/clang/lib/Frontend/ASTUnit.cpp
  242     : MainFileIsAST(_MainFileIsAST), WantTiming(getenv("LIBCLANG_TIMING")),
  246   if (getenv("LIBCLANG_OBJTRACKING"))
  270   if (getenv("LIBCLANG_OBJTRACKING"))
  816   if (::getenv("LIBCLANG_DISABLE_PCH_VALIDATION"))
tools/clang/lib/Frontend/InitHeaderSearch.cpp
  347       const char *envValue = getenv("SCE_ORBIS_SDK_DIR");
tools/clang/lib/Frontend/PrecompiledPreamble.cpp
  538   const char *TmpFile = ::getenv("CINDEXTEST_PREAMBLE_FILE");
tools/clang/tools/c-arcmt-test/c-arcmt-test.c
  122   if (getenv("CINDEXTEST_NOTHREADS"))
tools/clang/tools/c-index-test/c-index-test.c
   71   if (getenv("CINDEXTEST_EDITING"))
   73   if (getenv("CINDEXTEST_COMPLETION_CACHING"))
   75   if (getenv("CINDEXTEST_COMPLETION_NO_CACHING"))
   77   if (getenv("CINDEXTEST_SKIP_FUNCTION_BODIES"))
   79   if (getenv("CINDEXTEST_COMPLETION_BRIEF_COMMENTS"))
   81   if (getenv("CINDEXTEST_CREATE_PREAMBLE_ON_FIRST_PARSE"))
   83   if (getenv("CINDEXTEST_KEEP_GOING"))
   85   if (getenv("CINDEXTEST_LIMIT_SKIP_FUNCTION_BODIES_TO_PREAMBLE"))
   87   if (getenv("CINDEXTEST_INCLUDE_ATTRIBUTED_TYPES"))
   89   if (getenv("CINDEXTEST_VISIT_IMPLICIT_ATTRIBUTES"))
   91   if (getenv("CINDEXTEST_IGNORE_NONERRORS_FROM_INCLUDED_FILES"))
  152     char *value = getenv(mappings[i].name);
 2013   InvocationPath = getenv("CINDEXTEST_INVOCATION_EMISSION_PATH");
 2027   if (getenv("CINDEXTEST_EDITING"))
 2117   if (getenv("CINDEXTEST_REMAP_AFTER_TRIAL")) {
 2119         strtol(getenv("CINDEXTEST_REMAP_AFTER_TRIAL"), &endptr, 10);
 2390   if (!getenv("CINDEXTEST_FAILONERROR"))
 2520   if (!getenv("CINDEXTEST_NO_COMPLETION_PARENTS")) {
 2645   if (getenv("CINDEXTEST_CODE_COMPLETE_PATTERNS"))
 2647   if (getenv("CINDEXTEST_COMPLETION_BRIEF_COMMENTS"))
 2649   if (getenv("CINDEXTEST_COMPLETION_SKIP_PREAMBLE"))
 2651   if (getenv("CINDEXTEST_COMPLETION_INCLUDE_FIXITS"))
 2667   InvocationPath = getenv("CINDEXTEST_INVOCATION_EMISSION_PATH");
 2671   if (getenv("CINDEXTEST_EDITING"))
 2813   if (getenv("CINDEXTEST_EDITING"))
 3107   if (getenv("CINDEXTEST_EDITING"))
 3213   if (getenv("CINDEXTEST_EDITING"))
 3593     if (getenv("CINDEXTEST_FAILONERROR") &&
 3821   if (getenv("CINDEXTEST_SUPPRESSREFS"))
 3823   if (getenv("CINDEXTEST_INDEXLOCALSYMBOLS"))
 3825   if (!getenv("CINDEXTEST_DISABLE_SKIPPARSEDBODIES"))
 3827   if (getenv("CINDEXTEST_INDEXIMPLICITTEMPLATEINSTANTIATIONS"))
 4157   if (getenv("CINDEXTEST_EDITING")) {
 4982   if (getenv("CINDEXTEST_NOTHREADS"))
tools/clang/tools/driver/driver.cpp
  244   TheDriver.CCPrintOptions = !!::getenv("CC_PRINT_OPTIONS");
  246     TheDriver.CCPrintOptionsFilename = ::getenv("CC_PRINT_OPTIONS_FILE");
  249   TheDriver.CCPrintHeaders = !!::getenv("CC_PRINT_HEADERS");
  251     TheDriver.CCPrintHeadersFilename = ::getenv("CC_PRINT_HEADERS_FILE");
  254   TheDriver.CCLogDiagnostics = !!::getenv("CC_LOG_DIAGNOSTICS");
  256     TheDriver.CCLogDiagnosticsFilename = ::getenv("CC_LOG_DIAGNOSTICS_FILE");
  422   if (const char *OverrideStr = ::getenv("CCC_OVERRIDE_OPTIONS")) {
  467         << !::getenv("FORCE_CLANG_DIAGNOSTICS_CRASH");
tools/clang/tools/extra/clangd/tool/ClangdMain.cpp
  505   if (auto *TraceFile = getenv("CLANGD_TRACE")) {
  621   if (getenv("CLANGD_AS_XPC_SERVICE")) {
tools/clang/tools/libclang/ARCMigrate.cpp
   40   bool Logging = ::getenv("LIBCLANG_LOGGING");
   83   bool Logging = ::getenv("LIBCLANG_LOGGING");
tools/clang/tools/libclang/CIndex.cpp
 3281   if (!getenv("LIBCLANG_DISABLE_CRASH_RECOVERY"))
 3302   if (getenv("LIBCLANG_BGPRIO_INDEX"))
 3305   if (getenv("LIBCLANG_BGPRIO_EDIT"))
 3639   } else if (getenv("LIBCLANG_RESOURCE_USAGE")) {
 4027     if (getenv("LIBCLANG_RESOURCE_USAGE"))
 4046   } else if (getenv("LIBCLANG_RESOURCE_USAGE")) {
 4153   } else if (getenv("LIBCLANG_RESOURCE_USAGE"))
 8755   if (Size && !getenv("LIBCLANG_NOTHREADS"))
 8771   if (getenv("LIBCLANG_BGPRIO_DISABLE"))
tools/clang/tools/libclang/CIndexCodeCompletion.cpp
  368   if (getenv("LIBCLANG_OBJTRACKING"))
  380   if (getenv("LIBCLANG_OBJTRACKING"))
  705   bool EnableLogging = getenv("LIBCLANG_CODE_COMPLETION_LOGGING") != nullptr;
  880   } else if (getenv("LIBCLANG_RESOURCE_USAGE"))
tools/clang/tools/libclang/CLog.h
   47     static const char *sCachedVar = ::getenv("LIBCLANG_LOGGING");
tools/clang/tools/libclang/Indexing.cpp
  933   } else if (getenv("LIBCLANG_RESOURCE_USAGE")) {
tools/dsymutil/dsymutil.cpp
  266   if (getenv("RC_DEBUG_OPTIONS"))
tools/lld/ELF/Driver.cpp
  363   return getenv("LLD_REPRODUCE");
tools/lld/ELF/SyntheticSections.cpp
   72   StringRef s = getenv("LLD_VERSION");
tools/lld/tools/lld/lld.cpp
  142 static bool canExitEarly() { return StringRef(getenv("LLD_IN_TEST")) != "1"; }
tools/lldb/source/API/SBTarget.cpp
  337     if (getenv("LLDB_LAUNCH_FLAG_DISABLE_ASLR"))
  365     if (getenv("LLDB_LAUNCH_FLAG_DISABLE_STDIO"))
tools/lldb/source/Core/Debugger.cpp
  754   const char *term = getenv("TERM");
tools/lldb/source/Host/linux/HostInfoLinux.cpp
  195   const char *xdg_data_home = getenv("XDG_DATA_HOME");
tools/lldb/source/Host/posix/HostInfoPosix.cpp
  125   if (const char *v = ::getenv("SHELL"))
  144   if (const char *pvar = ::getenv(var_name.c_str())) {
tools/lldb/source/Plugins/Platform/Android/AdbClient.cpp
  105   else if (const char *env_serial = std::getenv("ANDROID_SERIAL"))
  141   if (const char *env_port = std::getenv("ANDROID_ADB_SERVER_PORT")) {
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
 1163       const char *xcode_select_prefix_dir = getenv("XCODE_SELECT_PREFIX_DIR");
 1321       const char *developer_dir_env_var = getenv("DEVELOPER_DIR");
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.cpp
  240       const char *addtional_platform_dirs = getenv("PLATFORM_SDK_DIRECTORY");
tools/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
  792       getenv("LLDB_PLATFORM_REMOTE_GDB_SERVER_SCHEME");
  794       getenv("LLDB_PLATFORM_REMOTE_GDB_SERVER_HOSTNAME");
  796       getenv("LLDB_PLATFORM_REMOTE_GDB_SERVER_PORT_OFFSET");
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
  516         ::getenv("LLDB_DEBUGSERVER_DOMAINSOCKET_DIR");
tools/lldb/source/Target/Platform.cpp
 1013     if (::getenv("LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY"))
tools/lldb/tools/lldb-vscode/VSCode.cpp
   42   const char *log_file_path = getenv("LLDBVSCODE_LOG");
tools/lldb/unittests/tools/lldb-server/inferior/environment_check.cpp
   13   const char *value = std::getenv("LLDB_TEST_MAGIC_VARIABLE");
tools/lldb/unittests/tools/lldb-server/tests/TestBase.cpp
   20   const char *Dir = getenv("LOG_FILE_DIRECTORY");
tools/llvm-mc/llvm-mc.cpp
  226   if (!getenv("RC_DEBUG_OPTIONS"))
  237   if(!getenv("DEBUG_PRODUCER"))
  239   DwarfDebugProducer += getenv("DEBUG_PRODUCER");
tools/polly/include/polly/LinkAllPasses.h
   73     if (std::getenv("bar") != (char *)-1)
unittests/Support/CommandLineTest.cpp
   33     const char *old_value = getenv(name);
unittests/Support/Path.cpp
  317   if (char const *path = ::getenv("HOME"))
  333   char const *OriginalEnv = ::getenv("HOME");
  346   EXPECT_EQ(nullptr, ::getenv("HOME"));
unittests/Support/ProgramTest.cpp
  155   if (getenv("LLVM_PROGRAM_TEST_CHILD")) {
  195   if (getenv("LLVM_PROGRAM_TEST_EXECUTE_NO_WAIT")) {
  250   if (getenv("LLVM_PROGRAM_TEST_TIMEOUT")) {
unittests/Support/raw_pwrite_stream_test.cpp
   59   const char *ParentPath = getenv("RAW_PWRITE_TEST_FILE");
utils/FileCheck/FileCheck.cpp
  105     cl::init(std::getenv(DumpInputEnv) && *std::getenv(DumpInputEnv)),
  105     cl::init(std::getenv(DumpInputEnv) && *std::getenv(DumpInputEnv)),
utils/benchmark/src/colorprint.cc
  174   const char* const term = getenv("TERM");
utils/benchmark/src/commandlineflags.cc
   97   const char* const string_value = getenv(env_var.c_str());
  107   const char* const string_value = getenv(env_var.c_str());
  127   const char* const value = getenv(env_var.c_str());
utils/unittest/googletest/include/gtest/internal/gtest-port.h
 2407   return getenv(name);