Displaying 6 results from an estimated 6 matches for "clang_parsetranslationunit".
2020 Oct 05
2
Clang API: any way to use a virtual filesystem ?
Hello,
I am shipping my app (https://ossia.io) with an embedded clang to allow
people to write extensions in C++ at run-time.
For that to work I also ship a SDK with all the required headers, libc++,
etc... which is downloaded & extracted in some folder.
Problem is: while on my linux dev. machine this operation is fast,
apparently on Windows and mac extracting a .zip with a few thousand
2012 Aug 16
2
[LLVMdev] libclang parsing bug
Hey everyone,
first of all I just wanted to say thanks :) I've been using libclang for
building my own C/C++ IDE and its great. I have, however discovered a bug
(which I already submitted on llvm bugzilla but I got the impression that
no one reads that :)). If I try to use clang_parseTranslationUnit on this
code below:
int main() { return reinterpret_cast
libclang crashes.
This is the code I used to parse the code above:
#include <clang-c/Index.h>
int main(int argc, char** argv)
{
CXIndex index = clang_createIndex(0, 0);
CXTranslationUnit translationUnit = clang_parseTransla...
2012 Aug 20
1
[LLVMdev] Optimal settings for parsing and reparsing the translation unit in libclang
Nope, I parse the first time, and then reparse everytime something changes
in my text buffer (because I syntax color based on what libclang gives me).
And it worked fine (and fast)
with clang_defaultEditingTranslationUnitOptions for
clang_parseTranslationUnit and clang_defaultReparseOptions for
clang_reparseTranslationUnit. Until I saw that clang_codeCompleteAt doesnt
work with anything else than CXTranslationUnit_None.
On Mon, Aug 20, 2012 at 2:01 AM, don hinton <don.hinton at gmx.com> wrote:
> On Aug 19, 2012, at 18:11, Klemen Forstneric &...
2012 Aug 16
0
[LLVMdev] libclang parsing bug
...> >
> > first of all I just wanted to say thanks :) I've been using libclang for
> building my own C/C++ IDE and its great. I have, however discovered a bug
> (which I already submitted on llvm bugzilla but I got the impression that
> no one reads that :)). If I try to use clang_parseTranslationUnit on this
> code below:
> >
> > int main() { return reinterpret_cast
> >
> > libclang crashes.
>
> I can confirm that Apple's released clang will crash as well; and same
> with TOT.
>
> What's the bug #?
>
> -- Marshall
>
> Marshall Clow...
2012 Aug 20
0
[LLVMdev] Optimal settings for parsing and reparsing the translation unit in libclang
On Aug 19, 2012, at 18:11, Klemen Forstneric <brucewayne97 at gmail.com> wrote:
> Hey everyone!
>
> I'm having trouble finding the optimal performance settings for parsing/reparsing the translation unit. At this moment I'm using CXTranslationUnit_None for both parsing and reparsing the translation unit, because it seems that as soon as I turn on default settings for
2012 Aug 19
2
[LLVMdev] Optimal settings for parsing and reparsing the translation unit in libclang
Hey everyone!
I'm having trouble finding the optimal performance settings for
parsing/reparsing the translation unit. At this moment I'm using
CXTranslationUnit_None for both parsing and reparsing the translation unit,
because it seems that as soon as I turn on default settings for
parse/reparse (clang_defaultEditingTranslationUnitOptions
and clang_defaultReparseOptions respectively) code