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_map.h b/compiler/cpp/src/parse/t_map.h
index c4e358f..4795147 100644
--- a/compiler/cpp/src/parse/t_map.h
+++ b/compiler/cpp/src/parse/t_map.h
@@ -28,26 +28,18 @@
*
*/
class t_map : public t_container {
- public:
- t_map(t_type* key_type, t_type* val_type) :
- key_type_(key_type),
- val_type_(val_type) {}
+public:
+ t_map(t_type* key_type, t_type* val_type) : key_type_(key_type), val_type_(val_type) {}
- t_type* get_key_type() const {
- return key_type_;
- }
+ t_type* get_key_type() const { return key_type_; }
- t_type* get_val_type() const {
- return val_type_;
- }
+ t_type* get_val_type() const { return val_type_; }
- bool is_map() const {
- return true;
- }
+ bool is_map() const { return true; }
virtual std::string get_fingerprint_material() const {
- return "map<" + key_type_->get_fingerprint_material() +
- "," + val_type_->get_fingerprint_material() + ">";
+ return "map<" + key_type_->get_fingerprint_material() + ","
+ + val_type_->get_fingerprint_material() + ">";
}
virtual void generate_fingerprint() {
@@ -56,7 +48,7 @@
val_type_->generate_fingerprint();
}
- private:
+private:
t_type* key_type_;
t_type* val_type_;
};