[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-commits
Subject:    Re: [cfe-commits] r159484 - in /cfe/trunk: include/clang-c/CXCompilationDatabase.h
From:       Arnaud de Grandmaison <arnaud.adegm () gmail ! com>
Date:       2012-06-30 11:57:52
Message-ID: 8437814.u9NNNpnGXj () fario
[Download RAW message or body]

Thanks Takumi for pointing me to the error. For some reasons, I can not 
connect to lab.llvm.org to see the failure.

I will fix it asap.

Cheers,
Arnaud de Grandmaison
 
On Saturday 30 June 2012 20:47:14 NAKAMURA Takumi wrote:
> 2012/6/30 Arnaud A. de Grandmaison <arnaud.adegm@gmail.com>:
> > Author: aadg
> > Date: Sat Jun 30 06:27:57 2012
> > New Revision: 159484
> > 
> > URL: http://llvm.org/viewvc/llvm-project?rev=159484&view=rev
> > Log:
> > [libclang] add CompilationDatabase support
> > 
> > --- cfe/trunk/tools/c-index-test/c-index-test.c (original)
> > +++ cfe/trunk/tools/c-index-test/c-index-test.c Sat Jun 30 06:27:57 2012
> > @@ -1,6 +1,7 @@
> >  /* c-index-test.c */
> > 
> >  #include "clang-c/Index.h"
> > +#include "clang-c/CXCompilationDatabase.h"
> >  #include <ctype.h>
> >  #include <stdlib.h>
> >  #include <stdio.h>
> > @@ -25,8 +26,25 @@
> > 
> >     return((char*)path);
> >  }
> > +char *dirname(char* path)
> > +{
> > +    char* base1 = (char*)strrchr(path, '/');
> > +    char* base2 = (char*)strrchr(path, '\\');
> > +    if (base1 && base2)
> > +        if (base1 > base2)
> > +          *base1 = 0;
> > +        else
> > +          *base2 = 0;
> > +    else if (base1)
> > +        *base1 = 0
> > +    else if (base2)
> > +        *base2 = 0
> > +
> > +    return path;
> > +}
> 
> Oh no, why only msvc complains missing semicolons? :(
_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic