From 08f0dc652a60617a4e0b98c48bd2f3f68b358736 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 16 Dec 2018 13:15:55 -1000 Subject: [PATCH] Disable underscore truncation on property key strings --- atdna/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atdna/main.cpp b/atdna/main.cpp index 0d1d69a..ac88b63 100644 --- a/atdna/main.cpp +++ b/atdna/main.cpp @@ -152,11 +152,14 @@ class ATDNAEmitVisitor : public clang::RecursiveASTVisitor { } static std::string GetFieldString(const std::string& fieldName) { +#if 0 size_t underscorePos = fieldName.find('_'); std::string idString = fieldName; if (underscorePos != std::string::npos && underscorePos != fieldName.size() - 1) idString.assign(fieldName.begin() + underscorePos + 1, fieldName.end()); return idString; +#endif + return fieldName; } static std::string GetPropIdExpr(const clang::FieldDecl* field, const std::string& fieldName) {