Merge pull request #13953 from lemenkov/gcc_12_strings_recognition

Type recognition workaround for some GCC compilers
This commit is contained in:
Daniel 2023-02-08 19:36:02 +01:00 committed by GitHub
commit 7b35f44622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -45,6 +45,7 @@
#include <range/v3/view/map.hpp>
using namespace std;
using namespace std::string_literals;
using namespace solidity::langutil;
namespace
@ -138,7 +139,7 @@ Json::Value ASTJsonExporter::sourceLocationsToJson(vector<SourceLocation> const&
string ASTJsonExporter::namePathToString(std::vector<ASTString> const& _namePath)
{
return boost::algorithm::join(_namePath, ".");
return boost::algorithm::join(_namePath, "."s);
}
Json::Value ASTJsonExporter::typePointerToJson(Type const* _tp, bool _withoutDataLocation)

View File

@ -179,7 +179,7 @@ private:
else
{
solAssert(!IRVariable{*varDecl}.hasPart("offset"));
value = "0";
value = "0"s;
}
}
else if (varDecl->type()->dataStoredIn(DataLocation::CallData))