Skip to content

Commit

Permalink
#12: enable Werror for the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Feb 8, 2021
1 parent f899001 commit a907606
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,15 @@ add_library(
)

target_include_directories(
sanitizer-plugin PUBLIC
sanitizer-plugin PRIVATE
"${LLVM_INCLUDE_DIRS};${CLANG_INCLUDE_DIRS}"
)

target_compile_options(
sanitizer-plugin PRIVATE
-Wall -Werror
)

add_library(vt::lib::sanitizer_rt ALIAS sanitizer_rt)

target_compile_definitions(
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void printWarning(FieldDecl const* field_decl) {

void SanitizerMatcher::run(const MatchFinder::MatchResult &result) {
auto record = result.Nodes.getNodeAs<CXXRecordDecl>("record");
auto method = result.Nodes.getNodeAs<FunctionTemplateDecl>("method");
// auto method = result.Nodes.getNodeAs<FunctionTemplateDecl>("method");
auto binary_op = result.Nodes.getNodeAs<BinaryOperator>("binary");

// llvm::errs() << "\nProcessing serialized fields [" << record->getQualifiedNameAsString() << "]\n";
Expand Down

0 comments on commit a907606

Please sign in to comment.