Skip to content

Pretty self-explanatory. Took a bunch of code from a Clang code completion example ( https://gist.github.com/Rip-Rip/758615 ) and the "Custom Completer" example that comes with Qt. Tried to keep it short and sweet by skipping lots of unnecessary bits in the custom completer example.

License

Notifications You must be signed in to change notification settings

venkatmakam/Text-Edit-With-Clang-Code-Completion

 
 

Repository files navigation

Text Edit with Clang Code Completion

Pretty self-explanatory. Took a bunch of code from a Clang code completion example ( https://gist.github.com/Rip-Rip/758615 ) and the "Custom Completer" example that comes with Qt. Tried to keep it short and sweet by skipping lots of unnecessary bits in the custom completer example.

Qt + Clang = <3


Tested on Debian Wheezy

PREREQUISITES

Of course you need Qt dev packages installed. For libclang, even though the target is Debian Wheezy, you need the Jessie (3.4 at time of writing) build of LLVM/Clang, so put the following line in your /etc/apt/sources.list

deb http://http.debian.net/debian/ jessie main

Then:

# apt-get update
# apt-get install -t jessie libclang-3.4-dev llvm-3.4-dev

BUILD INSTRUCTIONS

Clone this repo and cd into it as normal user, then:

$ qmake
$ make

About

Pretty self-explanatory. Took a bunch of code from a Clang code completion example ( https://gist.github.com/Rip-Rip/758615 ) and the "Custom Completer" example that comes with Qt. Tried to keep it short and sweet by skipping lots of unnecessary bits in the custom completer example.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 91.4%
  • QMake 8.6%