r194638 - Work around a bug in old gcc on the FreeBSD bot, which complains about

Dmitri Gribenko gribozavr at gmail.com
Wed Nov 13 16:36:24 PST 2013


Author: gribozavr
Date: Wed Nov 13 18:36:24 2013
New Revision: 194638

URL: http://llvm.org/viewvc/llvm-project?rev=194638&view=rev
Log:
Work around a bug in old gcc on the FreeBSD bot, which complains about
ambiguity between index() function and clang::index namespace.

Modified:
    cfe/trunk/tools/libclang/CXComment.cpp

Modified: cfe/trunk/tools/libclang/CXComment.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXComment.cpp?rev=194638&r1=194637&r2=194638&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CXComment.cpp (original)
+++ cfe/trunk/tools/libclang/CXComment.cpp Wed Nov 13 18:36:24 2013
@@ -355,7 +355,7 @@ CXString clang_HTMLTagComment_getAsStrin
 
   CXTranslationUnit TU = CXC.TranslationUnit;
   if (!TU->CommentToXML)
-    TU->CommentToXML = new index::CommentToXMLConverter();
+    TU->CommentToXML = new clang::index::CommentToXMLConverter();
 
   SmallString<128> Text;
   TU->CommentToXML->convertHTMLTagNodeToText(
@@ -370,7 +370,7 @@ CXString clang_FullComment_getAsHTML(CXC
 
   CXTranslationUnit TU = CXC.TranslationUnit;
   if (!TU->CommentToXML)
-    TU->CommentToXML = new index::CommentToXMLConverter();
+    TU->CommentToXML = new clang::index::CommentToXMLConverter();
 
   SmallString<1024> HTML;
   TU->CommentToXML
@@ -385,7 +385,7 @@ CXString clang_FullComment_getAsXML(CXCo
 
   CXTranslationUnit TU = CXC.TranslationUnit;
   if (!TU->CommentToXML)
-    TU->CommentToXML = new index::CommentToXMLConverter();
+    TU->CommentToXML = new clang::index::CommentToXMLConverter();
 
   SmallString<1024> XML;
   TU->CommentToXML





More information about the cfe-commits mailing list