Commit 227d9d23 authored by rmrf's avatar rmrf
Browse files

Use clang-query via this script to assess SystemC programs.

The main use of this will be in developing AST matchers instead of
writing dedicated code to find/match in the AST.
parent 3e32ffbc
#!/bin/bash
################################################################################
# Script to allow running clang-query on SystemC programs.
################################################################################
if [ -z "$1" ]; then
echo [sa-clang-query] Error: You must specify a filename;
exit;
fi
if [ -z "$SYSTEMC" ]; then
echo [sa-clang-query] Error: Environment variable SYSTEMC is not set or empty;
exit;
fi
# Execute clang query.
clang-query $1 -extra-arg=-I$SYSTEMC/include
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment