Skip to content

Demonstrate building Clang tools outside the LLVM tree

Notifications You must be signed in to change notification settings

gkrls/clang-tool-out-of-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clang-tool-out-of-tree

The Syntax-Checker Tool from here but built out-of-tree!

Requires $LLVM_HOME to be defined and point to a valid LLVM install directory wit the following structure:

$LLVM_HOME
|_bin
|_include
|_lib
  |_clang
  |_10.0.0
    |_include
    |_lib
    |_share
|_libexec
|_share

Tested on LLVM 10.

Usage:

Clone anywhere:

$ git clone https://github.com/gkarlos/clang-tool-out-of-tree

Build:

cd clang-tool-out-of-tree
mkdir build
cd build
cmake ..
make

Run:

./simple-clang-check <your-source-file.cpp>

Example:

$ ./simple-clang-check ../src/SimpleClangCheck.cpp
Clang Tool Starting...
Syntax OK

About

Demonstrate building Clang tools outside the LLVM tree

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published