From 69746a148be36654ad3a24d9d5e8a501e7074e60 Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Mon, 31 Jan 2022 18:06:52 -0500 Subject: [PATCH] Use isInMainFile instead of isWrittenInMainFile in example Signed-off-by: Daniel Beer --- examples/remove_ye_olde_feature_toggle/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/remove_ye_olde_feature_toggle/src/main.cpp b/examples/remove_ye_olde_feature_toggle/src/main.cpp index f93ddf1..ee4563c 100644 --- a/examples/remove_ye_olde_feature_toggle/src/main.cpp +++ b/examples/remove_ye_olde_feature_toggle/src/main.cpp @@ -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;