MCPcopy Create free account
hub / github.com/Kitware/CMake / EndElement

Method EndElement

Source/cmXMLWriter.cxx:43–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void cmXMLWriter::EndElement()
44{
45 assert(this->Indent > 0);
46 --this->Indent;
47 if (this->ElementOpen) {
48 this->Output << "/>";
49 } else {
50 this->ConditionalLineBreak(!this->IsContent);
51 this->IsContent = false;
52 this->Output << "</" << this->Elements.top() << '>';
53 }
54 this->Elements.pop();
55 this->ElementOpen = false;
56}
57
58void cmXMLWriter::Element(char const* name)
59{

Callers 1

ElementMethod · 0.95

Calls 1

ConditionalLineBreakMethod · 0.95

Tested by

no test coverage detected