[cfe-commits] r172158 - /cfe/trunk/tools/libclang/CLog.h

Dmitri Gribenko gribozavr at gmail.com
Thu Jan 10 17:15:03 PST 2013


Author: gribozavr
Date: Thu Jan 10 19:15:02 2013
New Revision: 172158

URL: http://llvm.org/viewvc/llvm-project?rev=172158&view=rev
Log:
libclang logging: fixup for MSVC, which does not have __func__

Modified:
    cfe/trunk/tools/libclang/CLog.h

Modified: cfe/trunk/tools/libclang/CLog.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CLog.h?rev=172158&r1=172157&r2=172158&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CLog.h (original)
+++ cfe/trunk/tools/libclang/CLog.h Thu Jan 10 19:15:02 2013
@@ -13,6 +13,7 @@
 #include "llvm/ADT/IntrusiveRefCntPtr.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringRef.h"
+#include "llvm/Support/Compiler.h"
 #include "llvm/Support/raw_ostream.h"
 #include <string>
 
@@ -91,6 +92,6 @@
 ///   }
 /// \endcode
 #define LOG_SECTION(NAME) if (LogRef Log = clang::cxindex::Logger::make(NAME))
-#define LOG_FUNC_SECTION LOG_SECTION(__func__)
+#define LOG_FUNC_SECTION LOG_SECTION(LLVM_FUNCTION_NAME)
 
 #endif





More information about the cfe-commits mailing list