summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/ast/ast_annotation_decl.cpp
diff options
context:
space:
mode:
authorAdam Mitz <mitza@objectcomputing.com>2019-06-13 13:55:01 -0500
committerGitHub <noreply@github.com>2019-06-13 13:55:01 -0500
commitedc04eea14d97c29a91167b8ec5ff08f9f6e1e9e (patch)
tree6d009a507ec3b5cea184239ba7164c325c0e2b27 /TAO/TAO_IDL/ast/ast_annotation_decl.cpp
parent83076677f70c367c48ad70804c249f0ca2c8cd38 (diff)
parent6156438d623bc933ba77e9114d174494ba109972 (diff)
downloadATCD-edc04eea14d97c29a91167b8ec5ff08f9f6e1e9e.tar.gz
Merge pull request #918 from iguessthislldo/igtd/tao_idl_fixes
TAO_IDL: Minor Annotation Fixes
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..45eab38d7d6 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 clash 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)