Skip to content

Commit 022cc81

Browse files
committed
BUG: Allow restrict qualifier on reference types (but not const or volatile).
1 parent ac462d9 commit 022cc81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cable/Parsers/cableXMLSourceParser.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,10 @@ Type* XMLSourceParser::GetTypeFromId(const char* tid)
879879
if(cv.find('c') != String::npos) { isConst = true; }
880880
if(cv.find('v') != String::npos) { isVolatile = true; }
881881

882+
// If the desired result type is not const- or volatile-qualified,
883+
// we are done (we do not care about restrict-qualification).
884+
if(!(isConst || isVolatile)) { return type; }
885+
882886
// Add the type with these cv qualifiers.
883887
Type::Pointer newType;
884888
switch (type->GetTypeId())

0 commit comments

Comments
 (0)