Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions semantics/cpp/language/common/dynamic.k
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,10 @@ module CPP-DYNAMIC-OTHER

rule showCPPType(pointerType(T::CPPType)) => showCPPType("", pointerType(T))

rule showCPPType(lvRefType(T::CPPType)) => showCPPType("", lvRefType(T))

rule showCPPType(rvRefType(T::CPPType)) => showCPPType("", rvRefType(T))

rule showCPPType(classType(N:Namespace :: Class(_, X::CId, .TemplateArgs)))
=> showNamespace(N) +String showCId(X)

Expand All @@ -909,6 +913,12 @@ module CPP-DYNAMIC-OTHER
rule showCPPType(DDL::String, pointerType(T::CPPType))
=> showCPPType(parens(T, "*" +String DDL), simpleType(T))

rule showCPPType(DDL::String, lvRefType(T::CPPType))
=> showCPPType(parens(T, "&" +String DDL), simpleType(T))

rule showCPPType(DDL::String, rvRefType(T::CPPType))
=> showCPPType(parens(T, "&&" +String DDL), simpleType(T))

rule showCPPType(DDL::String, T::CPPSimpleType)
=> showCPPType(T) +String " " +String DDL [owise]

Expand Down