diff options
| author | bloodstalker <thabogre@gmail.com> | 2017-01-13 16:40:50 +0000 | 
|---|---|---|
| committer | bloodstalker <thabogre@gmail.com> | 2017-01-13 16:40:50 +0000 | 
| commit | 2ca6d4495d5e834dff347fb503263511f3b9fdf8 (patch) | |
| tree | 0af30260a87c74372cd2b798e0cecbefaafe9f11 | |
| parent | added 6.1 and 6.2. the current implementation is quite smplistic. tdds were a... (diff) | |
| download | mutator-2ca6d4495d5e834dff347fb503263511f3b9fdf8.tar.gz mutator-2ca6d4495d5e834dff347fb503263511f3b9fdf8.zip | |
for 6.1 and 6.2, the check is against CanonicalType now, not Type.
| -rw-r--r-- | mutator-lvl0.cpp | 8 | 
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)          { | 
