| 45 | } |
| 46 | |
| 47 | bool Standards::setC(std::string str) |
| 48 | { |
| 49 | if (str.empty()) |
| 50 | return false; |
| 51 | const simplecpp::cstd_t c_new = simplecpp::getCStd(str); |
| 52 | const bool b = (c_new != simplecpp::CUnknown); |
| 53 | if (b) { |
| 54 | c = mapC(c_new); |
| 55 | stdValueC = std::move(str); |
| 56 | } |
| 57 | return b; |
| 58 | } |
| 59 | |
| 60 | std::string Standards::getC() const |
| 61 | { |