git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
C++: use '$' prefix in '__unused' renames
commit1bb1a3effa95ab26de1937b5da3e876a468e1c1b authorAndy Arvanitis <andyarvanitis@gmail.com> dateThu 11 Aug 2016, 22:56 (10 years ago) parente9c4b3e
1 file changed+2−2
src/Language/PureScript/Pretty/Cpp.hs+2−2
src/Language/PureScript/Pretty/Cpp.hs+2−2
@@ -238,11 +238,11 @@ literals = mkPattern' match
238238 val' | '(' `elem` vstr || '[' `elem` vstr = parens vstr
239239 | otherwise = vstr
240240
241− match (CppVar ident) | ident == C.__unused = match (CppVar $ '_':ident)
241+ match (CppVar ident) | ident == C.__unused = match (CppVar $ '$':ident)
242242 match (CppVar ident) = return ident
243243 match (CppApp v [CppNoOp]) = return (prettyPrintCpp1 v)
244244 match (CppVariableIntroduction (ident, typ) qs value)
245− | ident == C.__unused = match (CppVariableIntroduction ('_':ident, typ) qs value)
245+ | ident == C.__unused = match (CppVariableIntroduction ('$':ident, typ) qs value)
246246 match (CppVariableIntroduction (ident, typ) qs value) =
247247 fmap concat $ sequence
248248 [ return . concatMap (++ " ") . filter (not . null) $ runValueQual <$> qs