From 6156438d623bc933ba77e9114d174494ba109972 Mon Sep 17 00:00:00 2001 From: Fred Hornsey Date: Wed, 12 Jun 2019 13:31:46 -0500 Subject: Apply suggestions from by @mitza-oci Co-Authored-By: Adam Mitz --- TAO/TAO_IDL/ast/ast_annotation_decl.cpp | 2 +- TAO/TAO_IDL/docs/annotations.md | 4 ++-- TAO/TAO_IDL/fe/idl.ypp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/TAO/TAO_IDL/ast/ast_annotation_decl.cpp b/TAO/TAO_IDL/ast/ast_annotation_decl.cpp index 0f16cdf962c..45eab38d7d6 100644 --- a/TAO/TAO_IDL/ast/ast_annotation_decl.cpp +++ b/TAO/TAO_IDL/ast/ast_annotation_decl.cpp @@ -46,7 +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 + 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) diff --git a/TAO/TAO_IDL/docs/annotations.md b/TAO/TAO_IDL/docs/annotations.md index 5e7cc6c9857..052c5aabc50 100644 --- a/TAO/TAO_IDL/docs/annotations.md +++ b/TAO/TAO_IDL/docs/annotations.md @@ -292,7 +292,7 @@ To get the annotations for most nodes types, use `AST_Annotation_Decl` object or its canonical internal TAO IDL name (see next paragraph). This will return the last `AST_Annotation_Appl*` of that type on the node or `NULL` if there no annotation of that type. Because -`AST_Annotation_Appls::find` can take a `AST_Annotation_Decl`, they can looked +`AST_Annotation_Appls::find` can take a `AST_Annotation_Decl`, they can be looked up after `idl_eval` creates them and cached for a slightly faster `find`. @@ -313,7 +313,7 @@ TAO\_IDL. There are examples below but see `AST_Expression::AST_ExprValue` for how values can be accessed. See `include/ast_expression.h` and `ast/ast_expression.cpp` for how -`AST_Expression` ultimately works. +to use `AST_Expression`. ### Reading `@document` Annotations diff --git a/TAO/TAO_IDL/fe/idl.ypp b/TAO/TAO_IDL/fe/idl.ypp index f7884d5a3c3..87715d364ec 100644 --- a/TAO/TAO_IDL/fe/idl.ypp +++ b/TAO/TAO_IDL/fe/idl.ypp @@ -2323,7 +2323,7 @@ annotation_member AST_Expression::ExprType type = $1; Identifier *name = $2; - // Annotation Member Names Can't Clash with C++ keywords + // Annotation member names can't clash with C++ keywords FE_Utils::original_local_name (name); UTL_ScopedName *scoped_name = new UTL_ScopedName (name, 0); AST_Expression *default_value = $3; -- cgit v1.2.1