r284690 - Replace uses of LLVM_FUNCTION_NAME with __func__, this was macro was removed from llvm/Support in r284681
Erik Pilkington via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 19 19:46:23 PDT 2016
Author: epilk
Date: Wed Oct 19 21:46:22 2016
New Revision: 284690
URL: http://llvm.org/viewvc/llvm-project?rev=284690&view=rev
Log:
Replace uses of LLVM_FUNCTION_NAME with __func__, this was macro was removed from llvm/Support in r284681
Modified:
cfe/trunk/tools/libclang/CIndexHigh.cpp
cfe/trunk/tools/libclang/CLog.h
cfe/trunk/tools/libclang/CXSourceLocation.cpp
Modified: cfe/trunk/tools/libclang/CIndexHigh.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexHigh.cpp?rev=284690&r1=284689&r2=284690&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexHigh.cpp (original)
+++ cfe/trunk/tools/libclang/CIndexHigh.cpp Wed Oct 19 21:46:22 2016
@@ -411,7 +411,7 @@ extern "C" {
CXResult clang_findReferencesInFile(CXCursor cursor, CXFile file,
CXCursorAndRangeVisitor visitor) {
- LogRef Log = Logger::make(LLVM_FUNCTION_NAME);
+ LogRef Log = Logger::make(__func__);
if (clang_Cursor_isNull(cursor)) {
if (Log)
@@ -485,7 +485,7 @@ CXResult clang_findIncludesInFile(CXTran
return CXResult_Invalid;
}
- LogRef Log = Logger::make(LLVM_FUNCTION_NAME);
+ LogRef Log = Logger::make(__func__);
if (!file) {
if (Log)
*Log << "Null file";
Modified: cfe/trunk/tools/libclang/CLog.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CLog.h?rev=284690&r1=284689&r2=284690&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CLog.h (original)
+++ cfe/trunk/tools/libclang/CLog.h Wed Oct 19 21:46:22 2016
@@ -98,6 +98,6 @@ public:
/// \endcode
#define LOG_SECTION(NAME) \
if (clang::cxindex::LogRef Log = clang::cxindex::Logger::make(NAME))
-#define LOG_FUNC_SECTION LOG_SECTION(LLVM_FUNCTION_NAME)
+#define LOG_FUNC_SECTION LOG_SECTION(__func__)
#endif
Modified: cfe/trunk/tools/libclang/CXSourceLocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXSourceLocation.cpp?rev=284690&r1=284689&r2=284690&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CXSourceLocation.cpp (original)
+++ cfe/trunk/tools/libclang/CXSourceLocation.cpp Wed Oct 19 21:46:22 2016
@@ -131,7 +131,7 @@ CXSourceLocation clang_getLocation(CXTra
if (line == 0 || column == 0)
return clang_getNullLocation();
- LogRef Log = Logger::make(LLVM_FUNCTION_NAME);
+ LogRef Log = Logger::make(__func__);
ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
ASTUnit::ConcurrencyCheck Check(*CXXUnit);
const FileEntry *File = static_cast<const FileEntry *>(file);
More information about the cfe-commits
mailing list