summaryrefslogtreecommitdiff
path: root/cpp/src/slice2confluence/Gen.cpp
diff options
context:
space:
mode:
authorShawn Hussey <shawn@zeroc.com>2013-02-15 15:39:00 -0330
committerShawn Hussey <shawn@zeroc.com>2013-02-15 15:39:00 -0330
commit3474e3dc0a970ba2ed8199b21503e5bc1cfe3879 (patch)
tree7668e539c245f86b98df12ae80e6bb305098db24 /cpp/src/slice2confluence/Gen.cpp
parentFixed ICE-5241: bogus release notes link (diff)
downloadice-3474e3dc0a970ba2ed8199b21503e5bc1cfe3879.tar.bz2
ice-3474e3dc0a970ba2ed8199b21503e5bc1cfe3879.tar.xz
ice-3474e3dc0a970ba2ed8199b21503e5bc1cfe3879.zip
ICE-5158 Print all metadata for operations (other than deprecated, which causes seperate formatting)
Diffstat (limited to 'cpp/src/slice2confluence/Gen.cpp')
-rw-r--r--cpp/src/slice2confluence/Gen.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/cpp/src/slice2confluence/Gen.cpp b/cpp/src/slice2confluence/Gen.cpp
index 6a6d13c7170..468753a491b 100644
--- a/cpp/src/slice2confluence/Gen.cpp
+++ b/cpp/src/slice2confluence/Gen.cpp
@@ -696,22 +696,22 @@ Slice::GeneratorBase::printMetaData(const ContainedPtr& p)
if(!metaData.empty())
{
- string metaP;
- if (p->findMetaData(DEP_MARKER, metaP)) {
- //don't print metadata if deprecated is the only tag
- return;
- }
string outString = "";
list<string>::const_iterator q = metaData.begin();
while(q != metaData.end())
{
+ cout << "LOOP:" << q->c_str() << endl;
if (strncmp(q->c_str(), DEP_MARKER.c_str(), strlen(DEP_MARKER.c_str()))) {
//if not deprecated
- outString += " \"" + removeNewlines(*q) + "\"";
+ string stripped = removeNewlines(*q);
+ cout << "METADATA: " << stripped << endl;
+ outString += " \"" + stripped + "\"";
if(++q != metaData.end())
{
outString += ",";
}
+ } else {
+ ++q;
}
}
if (!outString.empty()) {
@@ -2896,6 +2896,7 @@ Slice::ClassGenerator::generate(const ClassDefPtr& c)
for(OperationList::const_iterator q = operations.begin(); q != operations.end(); ++q)
{
start("h3", "Synopsis");
+ printMetaData(*q);
TypePtr returnType = (*q)->returnType();
_out << (returnType ? toString(returnType, c, false) : string("void"))
<< " " << trim(toString(*q, c)) << "(";