From a6366f5c7e92466ebad0042afa55c2e5952ebe61 Mon Sep 17 00:00:00 2001 From: James Dennett Date: Wed, 20 Jun 2012 21:55:51 +0000 Subject: [PATCH] Documentation cleanup: * Escape < characters in Doxygen comments as needed; * Add \code...\endcode around code examples; * Remove an incorrect use of Doxygen's \arg command. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158859 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Frontend/VerifyDiagnosticConsumer.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/clang/Frontend/VerifyDiagnosticConsumer.h b/include/clang/Frontend/VerifyDiagnosticConsumer.h index 2fc6ccc36d..357246c1ce 100644 --- a/include/clang/Frontend/VerifyDiagnosticConsumer.h +++ b/include/clang/Frontend/VerifyDiagnosticConsumer.h @@ -35,18 +35,22 @@ class TextDiagnosticBuffer; /// /// Here's an example: /// +/// \code /// int A = B; // expected-error {{use of undeclared identifier 'B'}} +/// \endcode /// /// You can place as many diagnostics on one line as you wish. To make the code /// more readable, you can use slash-newline to separate out the diagnostics. /// /// The simple syntax above allows each specification to match exactly one /// error. You can use the extended syntax to customize this. The extended -/// syntax is "expected- {{diag text}}", where is one of -/// "error", "warning" or "note", and is a positive integer. This allows the -/// diagnostic to appear as many times as specified. Example: +/// syntax is "expected- {{diag text}}", where \ is one of +/// "error", "warning" or "note", and \ is a positive integer. This allows +/// the diagnostic to appear as many times as specified. Example: /// +/// \code /// void f(); // expected-note 2 {{previous declaration is here}} +/// \endcode /// /// Regex matching mode may be selected by appending '-re' to type. Example: /// @@ -75,7 +79,7 @@ private: void CheckDiagnostics(); public: - /// Create a new verifying diagnostic client, which will issue errors to \arg + /// Create a new verifying diagnostic client, which will issue errors to /// the currently-attached diagnostic client when a diagnostic does not match /// what is expected (as indicated in the source file). VerifyDiagnosticConsumer(DiagnosticsEngine &Diags); -- 2.40.0