[umbrello-devel] [umbrello] [Bug 338649] Extend C++ import for C++11

Ralf Habacker via KDE Bugzilla bugzilla_noreply at kde.org
Tue Jan 19 08:03:25 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=338649

--- Comment #11 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to Patric Schmitz from comment #10)
> >> If this is a basic limitation to using clang, is this really the way the project should go? 
> >> Maybe it is possible to separate only the parser parts without the whole semantics and error checking from clang? 
> > I don' know yet; it need to be evaluated
> 
> It seems that clang itself has no means of parsing incomplete code fragments
> and will fail to produce a syntax tree at all if not all types and symbols
> can be resolved. This is at least what I get out of this post from Clang
> Developers:
> > http://clang-developers.42468.n3.nabble.com/Lenient-lexing-parsing-of-code-snippets-td4042786.html
> There is a GSoC 2014 project mentioned where someone has a similar
> requirement (for syntax highlighting). Maybe we could look into that, it
> seems a fuzzy parser has been developed for that project. 
here is the related git repo https://github.com/kapf/clang-highlight
and a test case
https://github.com/kapf/clang-highlight/blob/master/unittests/FuzzyParseTest.cpp

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list