factory.h:4: public: should be indented +1 space inside class Object [whitespace/indent] [3]
factory.h:10: public: should be indented +1 space inside class Smth1 [whitespace/indent] [3]
factory.h:11: Single-parameter constructors should be marked explicit. [runtime/explicit] [5]
factory.h:18: private: should be indented +1 space inside class Smth1 [whitespace/indent] [3]
factory.h:30: public: should be indented +1 space inside class Factory [whitespace/indent] [3]
factory.h:31: Missing space before { [whitespace/braces] [5]
factory.h:35: Lines should be <= 80 characters long [whitespace/line_length] [2]
factory.h:38: An else should appear on the same line as the preceding } [whitespace/newline] [4]
factory.h:38: If an else has a brace on one side, it should have it on both [readability/braces] [5]
factory.h:34: Add #include <string> for string [build/include_what_you_use] [4]
factory.h:42: Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
Done processing factory.h
Total errors found: 11
|