rm trailing newlines for *all* comments

This will make it easier to fix newlines consistently.
This commit is contained in:
Christopher Dunn
2015-01-25 14:16:13 -06:00
parent 7312b1022d
commit 1e3149ab75
3 changed files with 19 additions and 11 deletions

View File

@@ -432,9 +432,11 @@ Json::Value obj_value(Json::objectValue); // {}
// EnumValues enumValues() const;
//# endif
/// Comments must be //... or /* ... */
/// \deprecated Always pass len.
void setComment(const char* comment, CommentPlacement placement);
/// Comments must be //... or /* ... */
void setComment(const char* comment, size_t len, CommentPlacement placement);
/// Comments must be //... or /* ... */
void setComment(const std::string& comment, CommentPlacement placement);
bool hasComment(CommentPlacement placement) const;
/// Include delimiters and embedded newlines.
@@ -477,7 +479,7 @@ private:
CommentInfo();
~CommentInfo();
void setComment(const char* text);
void setComment(const char* text, size_t len);
char* comment_;
};