THRIFT-2729: C++ - .clang-format created and applied
Client: C++
Patch: Konrad Grochowski
make style command added
diff --git a/compiler/cpp/src/parse/t_doc.h b/compiler/cpp/src/parse/t_doc.h
index 2c63b5a..9d310b7 100644
--- a/compiler/cpp/src/parse/t_doc.h
+++ b/compiler/cpp/src/parse/t_doc.h
@@ -29,30 +29,26 @@
*/
class t_doc {
- public:
+public:
t_doc() : has_doc_(false) {}
void set_doc(const std::string& doc) {
doc_ = doc;
has_doc_ = true;
- if( (g_program_doctext_lineno == g_doctext_lineno) && (g_program_doctext_status == STILL_CANDIDATE)) {
+ if ((g_program_doctext_lineno == g_doctext_lineno)
+ && (g_program_doctext_status == STILL_CANDIDATE)) {
g_program_doctext_status = ALREADY_PROCESSED;
- pdebug("%s","program doctext set to ALREADY_PROCESSED");
+ pdebug("%s", "program doctext set to ALREADY_PROCESSED");
}
}
- const std::string& get_doc() const {
- return doc_;
- }
+ const std::string& get_doc() const { return doc_; }
- bool has_doc() {
- return has_doc_;
- }
+ bool has_doc() { return has_doc_; }
- private:
+private:
std::string doc_;
bool has_doc_;
-
};
#endif