aboutsummaryrefslogtreecommitdiffstats
path: root/mutator_aux.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--mutator_aux.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/mutator_aux.cpp b/mutator_aux.cpp
index 9eac0dd..d6400f2 100644
--- a/mutator_aux.cpp
+++ b/mutator_aux.cpp
@@ -77,6 +77,12 @@ SourceLocation SourceLocationHasMacro(SourceLocation __sl, Rewriter &__rewrite)
return __sl;
}
}
+
+SourceLocation getSLSpellingLoc(SourceLocation __sl, Rewriter &__rewrite)
+{
+ if (__sl.isMacroID()) {return __rewrite.getSourceMgr().getSpellingLoc(__sl);}
+ else {return __sl;}
+}
/*********************************************************************************************************************/
/*********************************************************************************************************************/
/*********************************************************************************************************************/