Home
last modified time | relevance | path

Searched refs:errorMsg (Results 1 – 4 of 4) sorted by relevance

/system/tools/hidl/
Dhidl-gen_y.yy64 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 "
[all …]
DAST.cpp536 std::string errorMsg; in lookupLocalIdentifier() local
537 EnumValue* enumValue = lookupEnumValue(fqName, &errorMsg, scope); in lookupLocalIdentifier()
539 std::cerr << "ERROR: " << errorMsg << " at " << ref.location() << "\n"; in lookupLocalIdentifier()
546 EnumValue* AST::lookupEnumValue(const FQName& fqName, std::string* errorMsg, const Scope* scope) { in lookupEnumValue() argument
554 *errorMsg = "Cannot find type " + enumTypeName.string(); in lookupEnumValue()
559 *errorMsg = "Type " + enumTypeName.string() + " is not an enum type"; in lookupEnumValue()
566 *errorMsg = "Enum type " + enumTypeName.string() + " does not have " + enumValueName; in lookupEnumValue()
DAST.h81 EnumValue* lookupEnumValue(const FQName& fqName, std::string* errorMsg, const Scope* scope);
/system/tools/hidl/lint/test/
Dmain.cpp78 #define EXPECT_LINT(interface, errorMsg) \ argument
84 EXPECT_THAT(errors[0].getMessage(), ContainsRegex(errorMsg)); \
87 #define EXPECT_A_LINT(interface, errorMsg) \ argument
93 EXPECT_THAT(errors, Contains(Property(&Lint::getMessage, ContainsRegex(errorMsg)))); \