[cfe-commits] r172161 - in /cfe/trunk/tools/libclang: CIndexHigh.cpp CXSourceLocation.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Thu Jan 10 18:30:14 PST 2013


Thanks!

On Jan 10, 2013, at 6:23 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:

> Author: gribozavr
> Date: Thu Jan 10 20:23:13 2013
> New Revision: 172161
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=172161&view=rev
> Log:
> Replace more usages of __func__ with LLVM_FUNCTION_NAME
> 
> Modified:
>    cfe/trunk/tools/libclang/CIndexHigh.cpp
>    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=172161&r1=172160&r2=172161&view=diff
> ==============================================================================
> --- cfe/trunk/tools/libclang/CIndexHigh.cpp (original)
> +++ cfe/trunk/tools/libclang/CIndexHigh.cpp Thu Jan 10 20:23:13 2013
> @@ -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 @@
> 
> 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)
> 
> Modified: cfe/trunk/tools/libclang/CXSourceLocation.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXSourceLocation.cpp?rev=172161&r1=172160&r2=172161&view=diff
> ==============================================================================
> --- cfe/trunk/tools/libclang/CXSourceLocation.cpp (original)
> +++ cfe/trunk/tools/libclang/CXSourceLocation.cpp Thu Jan 10 20:23:13 2013
> @@ -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 @@
>   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);
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits





More information about the cfe-commits mailing list