Adjust formatting of SdfPathExpression documentation to annotate
authorjmk <jmk@users.noreply.github.com>
Mon, 22 Jan 2024 22:36:26 +0000 (14:36 -0800)
committerpixar-oss <pixar-oss@users.noreply.github.com>
Mon, 22 Jan 2024 23:03:27 +0000 (15:03 -0800)
syntactic elements as inline code.

Also corrected the formatting of an example expression which resulted
in odd output in the generated HTML. This required the manual use of
<code> tags to get around some unexpected Doxygen behavior.

(Internal change: 2312036)

pxr/usd/sdf/pathExpression.h

index 39c4382af0a1f8938f77bf16e97341ed4e8fe94f..2a08ae663c7bd4aa0bd762a310d04e28bfd60d13 100644 (file)
@@ -42,8 +42,8 @@ PXR_NAMESPACE_OPEN_SCOPE
 ///
 /// Objects of this class represent a logical expression syntax tree consisting
 /// of SdfPath matching patterns (with optionally embedded predicate
-/// expressions) joined by the set-algebraic operators '+' (union), '&'
-/// (intersection), '-' (difference), '~' (complement) and an implied-union
+/// expressions) joined by the set-algebraic operators `+` (union), `&`
+/// (intersection), `-` (difference), `~` (complement) and an implied-union
 /// operator represented by two subexpressions joined by whitespace.
 ///
 /// An SdfPathExpression can be constructed from a string, which will parse the
@@ -53,20 +53,21 @@ PXR_NAMESPACE_OPEN_SCOPE
 /// The fundamental building blocks are path patterns and expression references.
 /// A path pattern is similar to an SdfPath, but it may contain glob-style
 /// wild-card characters, embedded brace-enclosed predicate expressions (see
-/// SdfPredicateExpression) and '//' elements indicating arbitrary levels of
-/// prim hierarchy.  For example, consider "/foo//bar*/baz{active:false}".  This
-/// pattern matches absolute paths whose first component is 'foo', that also
-/// have some descendant prim whose name begins with 'bar', which in turn has a
-/// child named 'baz' where the predicate "active:false" evaluates to true.
+/// SdfPredicateExpression) and `//` elements indicating arbitrary levels of
+/// prim hierarchy.  For example, consider
+/// <code>/foo//bar*/baz{active:false}</code>.  This pattern matches absolute
+/// paths whose first component is `foo`, that also have some descendant prim
+/// whose name begins with `bar`, which in turn has a child named `baz` where
+/// the predicate `active:false` evaluates to true.
 ///
-/// An expression reference starts with '%' followed by a prim path, a ':', and
-/// a name.  There is also one "special" expression reference, "%_" which means
+/// An expression reference starts with `%` followed by a prim path, a `:`, and
+/// a name.  There is also one "special" expression reference, `%_` which means
 /// "the weaker" expression when composing expressions together.  See
 /// ComposeOver() and ResolveReferences() for more information.
 ///
-/// These building blocks may be joined as mentioned above, with '+', '-', '&',
-/// or whitespace, and may be complemented with '~', and grouped with '(' and
-/// ')'.
+/// These building blocks may be joined as mentioned above, with `+`, `-`, `&`,
+/// or whitespace, and may be complemented with `~`, and grouped with `(` and
+/// `)`.
 class SdfPathExpression
 {
 public:
@@ -162,7 +163,7 @@ public:
             return _prefix;
         }
 
-        /// \overload.
+        /// \overload
         SdfPath GetPrefix() && {
             return std::move(_prefix);
         }