Lines Matching refs:name
31 if (!p.name.empty()) stream << " " << p.name;
87 stream << "class " << p.name;
89 stream << p.type << " " << p.name;
91 scope += p.name;
105 if (!p.name.empty()) stream << " " << p.name;
120 void File::BeginIncludeGuard(const std::string& name) {
121 s() << "#ifndef " << name
124 << name << "\n\n";
127 void File::EndIncludeGuard(const std::string& name) {
128 s() << "#endif // " << name << "\n";
131 void File::BeginNamespace(std::string name) {
132 DCHECK(!name.empty());
133 DCHECK_EQ(name.find(':'), std::string::npos);
134 s() << "namespace " << name << " {\n";
135 namespaces_.push(std::move(name));
143 void File::EndNamespace(const std::string& name) {
145 DCHECK_EQ(namespaces_.top(), name);