Home
last modified time | relevance | path

Searched refs:name_stack_ (Results 1 – 1 of 1) sorted by relevance

/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_helpers.h719 int len = std::min(name_stack_.size(), new_stack_.size()); in ChangeTo()
722 if (name_stack_[common_idx] != new_stack_[common_idx]) break; in ChangeTo()
725 for (int i = name_stack_.size() - 1; i >= common_idx; i--) { in ChangeTo()
726 if (name_stack_[i] == "PROTOBUF_NAMESPACE_ID") { in ChangeTo()
729 printer_->Print("} // namespace $ns$\n", "ns", name_stack_[i]); in ChangeTo()
732 name_stack_.swap(new_stack_); in ChangeTo()
733 for (int i = common_idx; i < name_stack_.size(); i++) { in ChangeTo()
734 if (name_stack_[i] == "PROTOBUF_NAMESPACE_ID") { in ChangeTo()
737 printer_->Print("namespace $ns$ {\n", "ns", name_stack_[i]); in ChangeTo()
744 std::vector<std::string> name_stack_; variable