Any tutorial on libclang?

10,184

I've written this tutorial on using the Python bindings to libclang, a while ago. Since the Python bindings are very lightweight, this tutorial can definitely be used to learn about the "vanilla" C libclang as well.

Share:
10,184
user1307957
Author by

user1307957

Updated on June 24, 2022

Comments

  • user1307957
    user1307957 about 2 years

    I've been looking for some easy to understand guide into libclang. I've seen some threads either here or other forums but the only recommended sources of information were libclang source/doxygen doc, clang complete plugin for vim or Thinking Beyond the Compiler presentation. However, none of them provide information on practical usage. I'm interested in implementing code completion/syntax highlighting (maybe some basic refactoring/parsing).

    So my question is, is there any easy to understand tutorial except of those mentioned above ? Maybe some of advanced libclang users can write one :)

    Note : I'm not interested in writing plugins for clang.

  • user1307957
    user1307957 over 11 years
    Yeah, I've already seen it (one of the better ones :). Aren't you planing to write one on syntax coloring/code completion ?
  • Eli Bendersky
    Eli Bendersky over 11 years
    @user1307957: no, not at this point.