| 351 | } |
| 352 | |
| 353 | bool gsoner::check_use_namespace(void) |
| 354 | { |
| 355 | //using namespace xxx; |
| 356 | int pos = pos_; |
| 357 | std::string token = codes_.substr(pos_, strlen("using")); |
| 358 | if (token == "using") { |
| 359 | pos_ += (int)strlen("using"); |
| 360 | if(next_token(default_delimiters_) == "namespace") { |
| 361 | token = next_token(default_delimiters_ + ";"); |
| 362 | pos_++;//skip ; |
| 363 | std::cout << "find:using namespace " << token << std::endl;; |
| 364 | return true; |
| 365 | } |
| 366 | } |
| 367 | pos_ = pos; |
| 368 | return false; |
| 369 | } |
| 370 | |
| 371 | bool gsoner::check_namespace(void) |
| 372 | { |
nothing calls this directly
no test coverage detected