[cfe-commits] r169030 - /cfe/trunk/lib/Lex/Pragma.cpp

Dmitri Gribenko gribozavr at gmail.com
Fri Nov 30 12:04:39 PST 2012


Author: gribozavr
Date: Fri Nov 30 14:04:39 2012
New Revision: 169030

URL: http://llvm.org/viewvc/llvm-project?rev=169030&view=rev
Log:
Comments: no need to escape any characters in \code ... \endcode.

Modified:
    cfe/trunk/lib/Lex/Pragma.cpp

Modified: cfe/trunk/lib/Lex/Pragma.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Pragma.cpp?rev=169030&r1=169029&r2=169030&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Pragma.cpp (original)
+++ cfe/trunk/lib/Lex/Pragma.cpp Fri Nov 30 14:04:39 2012
@@ -470,7 +470,7 @@
 ///
 /// The syntax is:
 /// \code
-///   \#pragma comment(linker, "foo")
+///   #pragma comment(linker, "foo")
 /// \endcode
 /// 'linker' is one of five identifiers: compiler, exestr, lib, linker, user.
 /// "foo" is a string, which is fully macro expanded, and permits string
@@ -532,11 +532,11 @@
 /// HandlePragmaMessage - Handle the microsoft and gcc \#pragma message
 /// extension.  The syntax is:
 /// \code
-///   \#pragma message(string)
+///   #pragma message(string)
 /// \endcode
 /// OR, in GCC mode:
 /// \code
-///   \#pragma message string
+///   #pragma message string
 /// \endcode
 /// string is a string, which is fully macro expanded, and permits string
 /// concatenation, embedded escape characters, etc... See MSDN for more details.
@@ -640,7 +640,7 @@
 ///
 /// The syntax is:
 /// \code
-///   \#pragma push_macro("macro")
+///   #pragma push_macro("macro")
 /// \endcode
 void Preprocessor::HandlePragmaPushMacro(Token &PushMacroTok) {
   // Parse the pragma directive and get the macro IdentifierInfo*.
@@ -1207,8 +1207,8 @@
   ///
   /// The syntax is
   /// \code
-  ///   \#pragma region [optional name]
-  ///   \#pragma endregion [optional comment]
+  ///   #pragma region [optional name]
+  ///   #pragma endregion [optional comment]
   /// \endcode
   /// 
   /// \note This is 





More information about the cfe-commits mailing list