]> granicus.if.org Git - clang/commitdiff
Replace more usages of __func__ with LLVM_FUNCTION_NAME
authorDmitri Gribenko <gribozavr@gmail.com>
Fri, 11 Jan 2013 02:23:13 +0000 (02:23 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Fri, 11 Jan 2013 02:23:13 +0000 (02:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172161 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CIndexHigh.cpp
tools/libclang/CXSourceLocation.cpp

index 4f8a252993990e95671076d7aee229e00f6b1a6d..81aa5b39db427b1f83eb2042c22744e0d13281fc 100644 (file)
@@ -14,6 +14,7 @@
 #include "CLog.h"
 #include "clang/AST/DeclObjC.h"
 #include "clang/Frontend/ASTUnit.h"
+#include "llvm/Support/Compiler.h"
 
 using namespace clang;
 using namespace cxcursor;
@@ -343,7 +344,7 @@ extern "C" {
 
 void clang_findReferencesInFile(CXCursor cursor, CXFile file,
                                 CXCursorAndRangeVisitor visitor) {
-  LogRef Log = Logger::make(__func__);
+  LogRef Log = Logger::make(LLVM_FUNCTION_NAME);
 
   if (clang_Cursor_isNull(cursor)) {
     if (Log)
index cee93b1daad3362df1ff1a4cb5e24a8a8416885e..a6a031edd88a69eca591cf96aaab823d4353e522 100644 (file)
@@ -18,6 +18,7 @@
 #include "CXString.h"
 #include "CXTranslationUnit.h"
 #include "CLog.h"
+#include "llvm/Support/Compiler.h"
 #include "llvm/Support/Format.h"
 
 using namespace clang;
@@ -125,7 +126,7 @@ CXSourceLocation clang_getLocation(CXTranslationUnit tu,
   if (!tu || !file)
     return clang_getNullLocation();
   
-  LogRef Log = Logger::make(__func__);
+  LogRef Log = Logger::make(LLVM_FUNCTION_NAME);
   ASTUnit *CXXUnit = static_cast<ASTUnit *>(tu->TUData);
   ASTUnit::ConcurrencyCheck Check(*CXXUnit);
   const FileEntry *File = static_cast<const FileEntry *>(file);