summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/ast/ast_annotation_decl.cpp
diff options
context:
space:
mode:
authorFred Hornsey <hornseyf@objectcomputing.com>2019-06-06 19:07:23 -0500
committerFred Hornsey <hornseyf@objectcomputing.com>2019-06-06 19:07:23 -0500
commit7a28f35fdb3c9fd0213ae4e13386c9238478f08c (patch)
treeafc26d247510aeb86e792693576edb1e138dc609 /TAO/TAO_IDL/ast/ast_annotation_decl.cpp
parent2b5481c0a5aa1d51b5fcd0470f0b32b8fa98696c (diff)
downloadATCD-7a28f35fdb3c9fd0213ae4e13386c9238478f08c.tar.gz
tao_idl: Annotations cant class with C++ Keywords
Diffstat (limited to 'TAO/TAO_IDL/ast/ast_annotation_decl.cpp')
-rw-r--r--TAO/TAO_IDL/ast/ast_annotation_decl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/ast/ast_annotation_decl.cpp b/TAO/TAO_IDL/ast/ast_annotation_decl.cpp
index 5ccaba059f2..0f16cdf962c 100644
--- a/TAO/TAO_IDL/ast/ast_annotation_decl.cpp
+++ b/TAO/TAO_IDL/ast/ast_annotation_decl.cpp
@@ -46,6 +46,7 @@ IMPL_NARROW_FROM_SCOPE (AST_Annotation_Decl)
void
AST_Annotation_Decl::escape_name (Identifier *name)
{
+ FE_Utils::original_local_name (name); // Annotations can't class with C++ Keywords
char *old_name = name->get_string ();
char *new_name = new char [ACE_OS::strlen (old_name) + 2]; // '@' and '\0'
if (new_name)