Home
last modified time | relevance | path

Searched refs:Lint (Results 1 – 17 of 17) sorted by relevance

/system/tools/hidl/lint/
DLint.h31 struct Lint { struct
32 Lint(LintLevel level, const Location& location, const std::string& message = "");
34 Lint(Lint&& other) = default;
35 Lint& operator=(Lint&& other) = default; argument
37 Lint(const Lint&) = delete;
38 Lint& operator=(const Lint&) = delete; argument
40 Lint&& operator<<(const std::string& message);
48 bool operator<(const Lint& other) const;
56 std::ostream& operator<<(std::ostream& os, const Lint&); argument
DLint.cpp27 Lint::Lint(LintLevel level, const Location& location, const std::string& message) in Lint() function in android::Lint
30 LintLevel Lint::getLevel() const { in getLevel()
34 std::string Lint::getLevelString() const { in getLevelString()
45 const Location& Lint::getLocation() const { in getLocation()
49 const std::string& Lint::getMessage() const { in getMessage()
53 bool Lint::operator<(const Lint& other) const { in operator <()
58 Lint&& Lint::operator<<(const std::string& in) { in operator <<()
64 Json::Value Lint::asJson() const { in asJson()
93 std::ostream& operator<<(std::ostream& os, const Lint& lint) { in operator <<()
DLintRegistry.h24 struct Lint;
26 using LintFunction = std::function<void(const AST&, std::vector<Lint>*)>;
40 void runAllLintFunctions(const AST& ast, std::vector<Lint>* errors);
Dmain.cpp128 std::vector<Lint> lints; in main()
144 for (const Lint& lint : lints) { in main()
152 for (const Lint& lint : lints) { in main()
DLintRegistry.cpp26 void LintRegistry::runAllLintFunctions(const AST& ast, std::vector<Lint>* errors) { in runAllLintFunctions()
DAndroid.bp31 "Lint.cpp",
/system/tools/hidl/lint/lints/
DmethodDocComment.cpp79 static void methodDocComments(const AST& ast, std::vector<Lint>* errors) { in methodDocComments()
102 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments()
109 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments()
117 Lint(WARNING, docComment->location()) in methodDocComments()
131 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments()
137 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments()
144 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments()
151 Lint(WARNING, docComment->location()) in methodDocComments()
162 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments()
167 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments()
Dsafeunion.cpp35 std::vector<Lint>* errors) { in lintUnionRecursively()
54 errors->push_back(Lint(ERROR, compoundType->location()) in lintUnionRecursively()
76 errors->push_back(Lint(ERROR, nextRef->location()) in lintUnionRecursively()
102 errors->push_back(Lint(ERROR, nextRef->location()) in lintUnionRecursively()
111 static void safeunionLint(const AST& ast, std::vector<Lint>* errors) { in safeunionLint()
DimportTypes.cpp26 static void importTypes(const AST& ast, std::vector<Lint>* errors) { in importTypes()
32 errors->push_back(Lint(ERROR, import.location) in importTypes()
36 errors->push_back(Lint(WARNING, import.location) in importTypes()
DemptyStructs.cpp28 static void checkSmallStructs(const AST& ast, std::vector<Lint>* errors) { in checkSmallStructs()
46 Lint(ERROR, compoundType->location()) in checkSmallStructs()
50 errors->push_back(Lint(ERROR, compoundType->location()) in checkSmallStructs()
DnamingConventions.cpp33 static void namingConventions(const AST& ast, std::vector<Lint>* errors) { in namingConventions()
56 errors->push_back(Lint(WARNING, namedType->location()) in namingConventions()
68 errors->push_back(Lint(WARNING, (*ref).location()) in namingConventions()
80 errors->push_back(Lint(WARNING, ev->location()) in namingConventions()
DunhandledComments.cpp26 static void unhandledComments(const AST& ast, std::vector<Lint>* errors) { in unhandledComments()
29 Lint(WARNING, docComment->location()) in unhandledComments()
DmethodVersions.cpp89 static void methodVersions(const AST& ast, std::vector<Lint>* errors) { in methodVersions()
99 errors->push_back(Lint(WARNING, method->location(), in methodVersions()
125 errors->push_back(Lint(WARNING, method->location()) in methodVersions()
132 errors->push_back(Lint(WARNING, method->location()) << errorString << "\n"); in methodVersions()
Doneway.cpp72 static void onewayLint(const AST& ast, std::vector<Lint>* errors) { in onewayLint()
92 errors->push_back(Lint(WARNING, iface->location()) in onewayLint()
108 errors->push_back(Lint(WARNING, iface->location()) in onewayLint()
DenumMaxAndAll.cpp33 static void enumValueNames(const AST& ast, std::vector<Lint>* errors) { in enumValueNames()
62 errors->push_back(Lint(WARNING, ev->location(), errorString)); in enumValueNames()
/system/tools/hidl/lint/test/
Dmain.cpp43 void getLintsForHal(const std::string& name, std::vector<Lint>* errors) { in getLintsForHal()
73 std::vector<Lint> errors; \
80 std::vector<Lint> errors; \
89 std::vector<Lint> errors; \
93 EXPECT_THAT(errors, Contains(Property(&Lint::getMessage, ContainsRegex(errorMsg)))); \
/system/media/camera/docs/
DREADME.md15 * XML Lint - Validates XML against XSD schema.