We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2cb1b35 + 228c4d5 commit 874eb16Copy full SHA for 874eb16
tools/SourceKit/include/SourceKit/Support/Logging.h
@@ -105,7 +105,7 @@ class Logger : public llvm::RefCountedBase<Logger> {
105
/// \endcode
106
#define LOG_SECTION(NAME, LEVEL) \
107
if (LogRef Log = SourceKit::Logger::make(NAME, SourceKit::Logger::Level::LEVEL))
108
-#define LOG_FUNC_SECTION(LEVEL) LOG_SECTION(LLVM_FUNCTION_NAME, LEVEL)
+#define LOG_FUNC_SECTION(LEVEL) LOG_SECTION(__func__, LEVEL)
109
#define LOG_FUNC_SECTION_WARN LOG_FUNC_SECTION(Warning)
110
111
#define LOG(NAME, LEVEL, msg) LOG_SECTION(NAME, LEVEL) \
0 commit comments