Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (33 sloc) 1.64 KB
amazon_s3_presentation_url amazon_s3_video_url author categories comments date image layout session_id session_track slideshare_presentation_url speakers title youtube_video_url tag
connect
yvr18
true
2018-09-16 09:00:00+00:00
featured file_name path
true
YVR18-223.png
/assets/images/featured-images/YVR18-223.png
resource-post
YVR18-223
Training, Tools
None
biography company job-title name speaker-image
""
Arm
Principal Engineer
Peter Smith
PeterSmith.gif
YVR18-223:How to build a C processing tool using the Clang libraries
session

The difficulty of parsing C++ has presented a high barrier to entry for developers wanting to write tools that process C++ code. The Clang libraries such as libclang and libtooling provide access to standalone tools, the syntactic and semantic information available to a C++ compiler. While these libraries make writing your own tool possible, there are still many details to be worked out, this presentation will run through the process of building simple standalone tools with libtooling. We will cover:

  • The compilation database.
  • Building the Clang libraries and integrating them with your tool.
  • Navigating the Clang abstract syntax tree.
  • Adding an error message to clang via a plugin.
  • Making edits to the C++ source code.

The intended audience is C/C++ developers wanting to build their own tools that more structural information about C++ than regular expressions can provide.

You can’t perform that action at this time.