diff options
| author | bloodstalker <thabogre@gmail.com> | 2017-01-03 01:57:23 +0000 | 
|---|---|---|
| committer | bloodstalker <thabogre@gmail.com> | 2017-01-03 01:57:23 +0000 | 
| commit | 850c7d8f5e29b2cad6bf677669adde7ec064971c (patch) | |
| tree | 4de639a4756356e04cea2204832c9f1056fbf968 | |
| parent | added twitter account for mutator (diff) | |
| download | mutator-850c7d8f5e29b2cad6bf677669adde7ec064971c.tar.gz mutator-850c7d8f5e29b2cad6bf677669adde7ec064971c.zip | |
finally fixed the MainOnly option
| -rw-r--r-- | mutator_aux.cpp | 6 | 
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;    } | 
