aboutsummaryrefslogtreecommitdiffstats
path: root/mutator_aux.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--mutator_aux.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mutator_aux.cpp b/mutator_aux.cpp
index a27878a..e34ec65 100644
--- a/mutator_aux.cpp
+++ b/mutator_aux.cpp
@@ -101,7 +101,7 @@ bool IsTheMatchInMainFile(bool MainFileFlag, const ast_matchers::MatchFinder::Ma
ASTContext *const ASTC = MR.Context;
const SourceManager &SM = ASTC->getSourceManager();
- if (SM.isInMainFile(SL) && !MainFileFlag)
+ if (SM.isInMainFile(SL) || (!SM.isInMainFile(SL) && !MainFileFlag))
{
return true;
}
@@ -113,7 +113,7 @@ bool IsTheMatchInMainFile(bool MainFileFlag, const ast_matchers::MatchFinder::Ma
bool IsTheMatchInMainFile(bool MainFileFlag, const SourceManager &SM, SourceLocation SL)
{
- if (SM.isInMainFile(SL) && !MainFileFlag)
+ if (SM.isInMainFile(SL) || (!SM.isInMainFile(SL) && !MainFileFlag))
{
return true;
}
@@ -125,7 +125,7 @@ bool IsTheMatchInMainFile(bool MainFileFlag, const SourceManager &SM, SourceLoca
bool IsTheMatchInMainFile(bool MainFileFlag, bool MainFile, SourceLocation SL)
{
- if (MainFile && !MainFileFlag)
+ if (MainFile || (!MainFile && !MainFileFlag))
{
return true;
}