aboutsummaryrefslogtreecommitdiffstats
path: root/mutator-lvl0.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-01-13 16:40:50 +0000
committerbloodstalker <thabogre@gmail.com>2017-01-13 16:40:50 +0000
commit2ca6d4495d5e834dff347fb503263511f3b9fdf8 (patch)
tree0af30260a87c74372cd2b798e0cecbefaafe9f11 /mutator-lvl0.cpp
parentadded 6.1 and 6.2. the current implementation is quite smplistic. tdds were a... (diff)
downloadmutator-2ca6d4495d5e834dff347fb503263511f3b9fdf8.tar.gz
mutator-2ca6d4495d5e834dff347fb503263511f3b9fdf8.zip
for 6.1 and 6.2, the check is against CanonicalType now, not Type.
Diffstat (limited to '')
-rw-r--r--mutator-lvl0.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp
index 9234c87..4f816fb 100644
--- a/mutator-lvl0.cpp
+++ b/mutator-lvl0.cpp
@@ -4525,8 +4525,12 @@ public:
QualType QT = LHS->getType();
const clang::Type* TP = QT.getTypePtr();
+ ASTContext *const ASTC = MR.Context;
+
+ const clang::Type* CanonTP = ASTC->getCanonicalType(TP);
+
/*checking whether the unqualified type is simple char*/
- if (TP->isSpecificBuiltinType(BuiltinType::Kind::Char_U) || TP->isSpecificBuiltinType(BuiltinType::Kind::Char_S))
+ if (CanonTP->isSpecificBuiltinType(BuiltinType::Kind::Char_U) || CanonTP->isSpecificBuiltinType(BuiltinType::Kind::Char_S))
{
if (RHSIsIntLit)
{
@@ -4538,7 +4542,7 @@ public:
}
}
- if (TP->isSpecificBuiltinType(BuiltinType::Kind::UChar) || TP->isSpecificBuiltinType(BuiltinType::Kind::SChar))
+ if (CanonTP->isSpecificBuiltinType(BuiltinType::Kind::UChar) || CanonTP->isSpecificBuiltinType(BuiltinType::Kind::SChar))
{
if (RHSIsCharLit)
{