Lines Matching refs:errorMsg

64 bool isValidInterfaceField(const std::string& identifier, std::string *errorMsg) {
93 *errorMsg = identifier + " cannot be a name inside an interface";
99 bool isValidStructField(const std::string& identifier, std::string *errorMsg) {
106 *errorMsg = identifier + " cannot be a name inside an struct or union";
113 std::string *errorMsg) {
118 return isValidStructField(identifier, errorMsg);;
121 bool isValidIdentifier(const std::string& identifier, std::string *errorMsg) {
157 *errorMsg = identifier + " is a HIDL keyword "
162 *errorMsg = identifier + " is a C++ keyword "
167 *errorMsg = identifier + " is a Java keyword "
172 *errorMsg = identifier + " collides with reserved names in C++ code "
177 *errorMsg = identifier + " starts with _hidl_ "
182 *errorMsg = identifier + " starts with hidl_ "
187 *errorMsg = identifier + " ends with _cb "
196 bool isValidTypeName(const std::string& identifier, std::string *errorMsg) {
197 if (!isValidIdentifier(identifier, errorMsg)) {
202 *errorMsg = identifier + " is not a valid type name";
374 std::string errorMsg;
375 if (!isValidIdentifier($1, &errorMsg)) {
376 std::cerr << "ERROR: " << errorMsg << " at " << @1 << "\n";
386 std::string errorMsg;
387 if (!isValidTypeName($1, &errorMsg)) {
388 std::cerr << "ERROR: " << errorMsg << " at " << @1 << "\n";
570 std::string errorMsg;
573 &errorMsg)) {
574 std::cerr << "ERROR: " << errorMsg << " at "
583 std::string errorMsg;
585 !isValidInterfaceField($2->name().c_str(), &errorMsg)) {
586 std::cerr << "ERROR: " << errorMsg << " at "
967 std::string errorMsg;
971 if (!isValidCompoundTypeField(style, $2, &errorMsg)) {
972 std::cerr << "ERROR: " << errorMsg << " at "
985 std::string errorMsg;
990 $1)->definedName().c_str(), &errorMsg)) {
991 std::cerr << "ERROR: " << errorMsg << " at "