]> granicus.if.org Git - clang/commitdiff
Replace uses of LLVM_FUNCTION_NAME with __func__, this was macro was removed from...
authorErik Pilkington <erik.pilkington@gmail.com>
Thu, 20 Oct 2016 02:46:22 +0000 (02:46 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Thu, 20 Oct 2016 02:46:22 +0000 (02:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284690 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CIndexHigh.cpp
tools/libclang/CLog.h
tools/libclang/CXSourceLocation.cpp

index d2baa13be9dd98afadb87e73443181d27288f9db..bec0e824ddc0b5b870d5281a14e24e1794a7cfdd 100644 (file)
@@ -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(CXTranslationUnit TU, CXFile file,
     return CXResult_Invalid;
   }
 
-  LogRef Log = Logger::make(LLVM_FUNCTION_NAME);
+  LogRef Log = Logger::make(__func__);
   if (!file) {
     if (Log)
       *Log << "Null file";
index b9309ed192399aa58b310088a7f69bfe3062f014..e1d6a57e4a01154daa53a3e962fccc31799e25a1 100644 (file)
@@ -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
index e75f6a757f467ed36543bae4d04ae33a1f229628..68ecf388bd79c1f542c61b710e57ee727a90e3fa 100644 (file)
@@ -131,7 +131,7 @@ CXSourceLocation clang_getLocation(CXTranslationUnit TU,
   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);