Author: dpolukhin Date: Wed Mar 9 13:39:16 2016 New Revision: 263052 URL: http://llvm.org/viewvc/llvm-project?rev=263052&view=rev Log: NFC fix documentation build by rL263015
This time I hope it will fix the build for real. Modified: cfe/trunk/docs/ItaniumMangleAbiTags.rst cfe/trunk/docs/index.rst Modified: cfe/trunk/docs/ItaniumMangleAbiTags.rst URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ItaniumMangleAbiTags.rst?rev=263052&r1=263051&r2=263052&view=diff ============================================================================== --- cfe/trunk/docs/ItaniumMangleAbiTags.rst (original) +++ cfe/trunk/docs/ItaniumMangleAbiTags.rst Wed Mar 9 13:39:16 2016 @@ -33,15 +33,18 @@ the same <substitution> the <unqualified They are mangled as: +.. code-block:: none + <abi-tags> ::= <abi-tag>* # sort by name <abi-tag> ::= B <tag source-name> Example: +.. code-block:: c++ + __attribute__((abi_tag("test"))) void Func(); - - gets mangled as: _Z4FuncB4testv (prettified as `Func[abi:test]()`) + // gets mangled as: _Z4FuncB4testv (prettified as `Func[abi:test]()`) Active tags =========== @@ -52,6 +55,8 @@ enum), the explicit tags are the active For variables and functions, the active tags are the explicit tags plus any "required tags" which are not in the "available tags" set: +.. code-block:: none + derived-tags := (required-tags - available-tags) active-tags := explicit-tags + derived-tags @@ -68,15 +73,16 @@ Otherwise the function requires any impl for the return type. Example: + +.. code-block:: c++ + namespace A { inline namespace B __attribute__((abi_tag)) { struct C { int x; }; } } - A::C foo(); - - gets mangled as: _Z3fooB1Bv (prettified as `foo[abi:B]()`) + A::C foo(); // gets mangled as: _Z3fooB1Bv (prettified as `foo[abi:B]()`) Required tags for a variable ============================ @@ -99,4 +105,3 @@ in the type of a cast operator) are NOT Example: a cast operator to std::string (which is std::__cxx11::basic_string<...>) will use 'cxx11' as an active tag, as it is required from the return type `std::string` but not available. - Modified: cfe/trunk/docs/index.rst URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/index.rst?rev=263052&r1=263051&r2=263052&view=diff ============================================================================== --- cfe/trunk/docs/index.rst (original) +++ cfe/trunk/docs/index.rst Wed Mar 9 13:39:16 2016 @@ -76,6 +76,7 @@ Design Documents DriverInternals PTHInternals PCHInternals + ItaniumMangleAbiTags Indices and tables _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits