diff options
author | Aaron Puchert <aaron.puchert@sap.com> | 2021-03-16 15:17:43 +0100 |
---|---|---|
committer | Aaron Puchert <aaron.puchert@sap.com> | 2021-03-16 15:17:45 +0100 |
commit | 1cb15b10ea370178871769929ff9690f461191fc (patch) | |
tree | 7788324aa729aa6dea6496e12ccbd99a014c0d3d /clang/lib/Sema/SemaDeclAttr.cpp | |
parent | 70aa319ee729227d036806fbfd00860db4565aec (diff) | |
download | llvm-1cb15b10ea370178871769929ff9690f461191fc.zip llvm-1cb15b10ea370178871769929ff9690f461191fc.tar.gz llvm-1cb15b10ea370178871769929ff9690f461191fc.tar.bz2 |
Correct Doxygen syntax for inline code
There is no syntax like {@code ...} in Doxygen, @code is a block command
that ends with @endcode, and generally these are not enclosed in braces.
The correct syntax for inline code snippets is @c <code>.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D98665
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index 4593436..d713c1f 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -390,10 +390,10 @@ appendDiagnostics(const Sema::SemaDiagnosticBuilder &Bldr, T &&ExtraArg, std::forward<DiagnosticArgs>(ExtraArgs)...); } -/// Add an attribute {@code AttrType} to declaration {@code D}, provided that -/// {@code PassesCheck} is true. -/// Otherwise, emit diagnostic {@code DiagID}, passing in all parameters -/// specified in {@code ExtraArgs}. +/// Add an attribute @c AttrType to declaration @c D, provided that +/// @c PassesCheck is true. +/// Otherwise, emit diagnostic @c DiagID, passing in all parameters +/// specified in @c ExtraArgs. template <typename AttrType, typename... DiagnosticArgs> static void handleSimpleAttributeOrDiagnose(Sema &S, Decl *D, const AttributeCommonInfo &CI, |