Skip to content

Commit

Permalink
Use isInMainFile instead of isWrittenInMainFile in example
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Beer <[email protected]>
  • Loading branch information
dbeer1 committed Jul 1, 2022
1 parent df6179b commit 69746a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/remove_ye_olde_feature_toggle/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class MyTool {
clangmetatool::collectors::FindCallsData *fcdata = fc.getData();
for (auto call_ctx : fcdata->call_context) {
const clang::CallExpr *call = call_ctx.second;
if (!sm.isWrittenInMainFile(call->getBeginLoc()))
if (!sm.isInMainFile(call->getBeginLoc()))
continue;
if (sm.isMacroBodyExpansion(call->getBeginLoc()))
continue;
Expand Down

0 comments on commit 69746a1

Please sign in to comment.