summaryrefslogtreecommitdiff
path: root/CIAO/CIDLC/CxxNamePrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/CIDLC/CxxNamePrinter.cpp')
-rw-r--r--CIAO/CIDLC/CxxNamePrinter.cpp103
1 files changed, 0 insertions, 103 deletions
diff --git a/CIAO/CIDLC/CxxNamePrinter.cpp b/CIAO/CIDLC/CxxNamePrinter.cpp
deleted file mode 100644
index 027889791ec..00000000000
--- a/CIAO/CIDLC/CxxNamePrinter.cpp
+++ /dev/null
@@ -1,103 +0,0 @@
-// file : CIDLC/CxxNamePrinter.cpp
-// author : Boris Kolpackov <boris@codesynthesis.com>
-// cvs-id : $Id: Collectors.hpp 55138 2004-01-05 07:53:05Z parsons $
-
-#include "CIDLC/CxxNamePrinter.hpp"
-
-#include <ostream>
-#include <algorithm>
-
-namespace
-{
- // Sorted C++ keywords.
- //
- char* keywords[] = {
- "and",
- "asm",
- "auto",
- "bitand",
- "bitor",
- "bool",
- "break",
- "case",
- "catch",
- "char",
- "class",
- "compl",
- "const",
- "const_cast",
- "continue",
- "default",
- "delete",
- "do",
- "double",
- "dynamic_cast",
- "else",
- "end_eq",
- "enum",
- "explicit",
- "export",
- "extern",
- "false",
- "float",
- "for",
- "friend",
- "goto",
- "if",
- "inline",
- "int",
- "long",
- "mutable",
- "namespace",
- "new",
- "not",
- "not_eq",
- "operator",
- "or",
- "or_eq",
- "private",
- "protected",
- "public",
- "register",
- "reinterpret_cast",
- "return",
- "short",
- "signed",
- "sizeof",
- "static",
- "static_cast",
- "struct",
- "switch",
- "template",
- "this",
- "throw",
- "true",
- "try",
- "typedef",
- "typeid",
- "typename",
- "union",
- "unsigned",
- "using",
- "virtual",
- "void",
- "volatile",
- "wchar_t",
- "while",
- "xor",
- "xor_eq"
- };
-}
-
-void CxxNamePrinter::
-print (std::ostream& os, CCF::IDL2::SemanticGraph::SimpleName const& n)
-{
- std::size_t const size (sizeof (keywords) / sizeof (char*));
- std::string const& str (n.unescaped_str ());
-
- if (std::binary_search (keywords, keywords + size, str))
- os << "_cxx_";
-
- os << str;
-}
-