mirror of https://github.com/libAthena/athena.git
Disable underscore truncation on property key strings
This commit is contained in:
parent
3d59b56a48
commit
08f0dc652a
|
@ -152,11 +152,14 @@ class ATDNAEmitVisitor : public clang::RecursiveASTVisitor<ATDNAEmitVisitor> {
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string GetFieldString(const std::string& fieldName) {
|
static std::string GetFieldString(const std::string& fieldName) {
|
||||||
|
#if 0
|
||||||
size_t underscorePos = fieldName.find('_');
|
size_t underscorePos = fieldName.find('_');
|
||||||
std::string idString = fieldName;
|
std::string idString = fieldName;
|
||||||
if (underscorePos != std::string::npos && underscorePos != fieldName.size() - 1)
|
if (underscorePos != std::string::npos && underscorePos != fieldName.size() - 1)
|
||||||
idString.assign(fieldName.begin() + underscorePos + 1, fieldName.end());
|
idString.assign(fieldName.begin() + underscorePos + 1, fieldName.end());
|
||||||
return idString;
|
return idString;
|
||||||
|
#endif
|
||||||
|
return fieldName;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string GetPropIdExpr(const clang::FieldDecl* field, const std::string& fieldName) {
|
static std::string GetPropIdExpr(const clang::FieldDecl* field, const std::string& fieldName) {
|
||||||
|
|
Loading…
Reference in New Issue