Add new function
authorChris Lattner <sabre@nondot.org>
Fri, 2 Apr 2004 05:04:12 +0000 (05:04 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 2 Apr 2004 05:04:12 +0000 (05:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12601 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/SystemUtils.h
include/llvm/Support/SystemUtils.h

index c874d9932c05c45070c3425d82fd2308c5feee6a..d8c5a92e28142db0185c6cf1b06acb46c7a7dfa0 100644 (file)
@@ -24,6 +24,10 @@ namespace llvm {
 ///
 bool isExecutableFile(const std::string &ExeFileName);
 
+/// isStandardOutAConsole - Return true if we can tell that the standard output
+/// stream goes to a terminal window or console.
+bool isStandardOutAConsole();
+
 /// FindExecutable - Find a named executable, giving the argv[0] of program
 /// being executed. This allows us to find another LLVM tool if it is built into
 /// the same directory, but that directory is neither the current directory, nor
index c874d9932c05c45070c3425d82fd2308c5feee6a..d8c5a92e28142db0185c6cf1b06acb46c7a7dfa0 100644 (file)
@@ -24,6 +24,10 @@ namespace llvm {
 ///
 bool isExecutableFile(const std::string &ExeFileName);
 
+/// isStandardOutAConsole - Return true if we can tell that the standard output
+/// stream goes to a terminal window or console.
+bool isStandardOutAConsole();
+
 /// FindExecutable - Find a named executable, giving the argv[0] of program
 /// being executed. This allows us to find another LLVM tool if it is built into
 /// the same directory, but that directory is neither the current directory, nor