| 110 | } |
| 111 | |
| 112 | bool Standards::setCPP(std::string str) |
| 113 | { |
| 114 | if (str.empty()) |
| 115 | return false; |
| 116 | const simplecpp::cppstd_t cpp_new = simplecpp::getCppStd(str); |
| 117 | const bool b = (cpp_new != simplecpp::CPPUnknown); |
| 118 | if (b) { |
| 119 | cpp = mapCPP(cpp_new); |
| 120 | stdValueCPP = std::move(str); |
| 121 | } |
| 122 | return b; |
| 123 | } |
| 124 | |
| 125 | std::string Standards::getCPP() const |
| 126 | { |