forked from OSchip/llvm-project
libclang logging: fixup for MSVC, which does not have __func__
llvm-svn: 172158
This commit is contained in:
parent
7f25427686
commit
9f08be0272
|
@ -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 @@ public:
|
|||
/// }
|
||||
/// \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
|
||||
|
|
Loading…
Reference in New Issue