Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12: Convert to using a sanitizer as a clang plugin #18

Draft
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

cz4rs
Copy link
Contributor

@cz4rs cz4rs commented Feb 2, 2021

fixes #12

@cz4rs
Copy link
Contributor Author

cz4rs commented Feb 2, 2021

a916a58 adds a simple plugin to experiment with vt integration

it can be run with:

clang++ tests/test-inner-class.cpp -Xclang -load -Xclang build/libsanitizer-plugin.so -Xclang -plugin -Xclang sanitizer -c

@cz4rs cz4rs force-pushed the 12-clang-plugin branch 2 times, most recently from 4ac556a to d344858 Compare February 9, 2021 00:05
command:
/bin/bash -c "
pushd /vt &&
sed -i '/# Primary VT build/i add_definitions( \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just inserting the necessary options with sed seems hackish, but it has big advantage of not requiring changes in vt

@cz4rs cz4rs force-pushed the 12-clang-plugin branch 2 times, most recently from d87dfce to 05868f8 Compare February 9, 2021 01:03
@cz4rs cz4rs force-pushed the 12-clang-plugin branch 3 times, most recently from 69d8d50 to 1ab0567 Compare February 24, 2021 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert to using a sanitizer as a clang plugin
1 participant