diff options
author | Neel Mehta <mneel@google.com> | 2019-07-03 11:49:59 -0700 |
---|---|---|
committer | Neel Mehta <mneel@google.com> | 2019-07-09 11:56:58 -0700 |
commit | 49e7b2d1e00e8ecb46e8404eb4361201cd32ba0d (patch) | |
tree | 334a0d840d482637f7f8880534132915a18d681a /DocComment.h | |
parent | c091d8d404ad668babe60ed304c538efaa59bcaa (diff) | |
download | hidl-49e7b2d1e00e8ecb46e8404eb4361201cd32ba0d.tar.gz |
Remove trailing whitespace from DocComments
Whenever there was a empty line in a DocComment it would be emitted as a
trailing whitespace. This is against code conventions and is used in the
formatter.
Bug: N/A
Test: TH
Change-Id: I93f0ea136cb28caf5c22987391c8b4e5c80f63f6
Diffstat (limited to 'DocComment.h')
-rw-r--r-- | DocComment.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/DocComment.h b/DocComment.h index 3503abe5..58c8e17a 100644 --- a/DocComment.h +++ b/DocComment.h @@ -21,6 +21,7 @@ #include <hidl-util/Formatter.h> #include <string> +#include <vector> #include "Location.h" @@ -33,12 +34,12 @@ struct DocComment { void emit(Formatter& out) const; - const std::string& string() const { return mComment; } + const std::vector<std::string>& lines() const { return mLines; } const Location& location() const { return mLocation; } private: - std::string mComment; + std::vector<std::string> mLines; Location mLocation; }; |