switched CPPCompile::Canonicalize() to take std::string instead of const char*

This commit is contained in:
Vern Paxson 2024-11-04 08:22:37 -08:00
parent 84d8e74884
commit 519fec2592
6 changed files with 11 additions and 13 deletions

View file

@ -47,7 +47,7 @@ std::string CaptureName(const IDPtr& l) const { return CaptureName(l.get()); }
// Returns a canonicalized name, with various non-alphanumeric characters
// stripped or transformed, and guaranteed not to conflict with C++ keywords.
std::string Canonicalize(const char* name) const;
std::string Canonicalize(const std::string& name) const;
// Returns the name of the global corresponding to an expression (which must
// be a EXPR_NAME).