Convert C comments to C++
authorChris Lattner <sabre@nondot.org>
Thu, 28 Aug 2003 14:43:36 +0000 (14:43 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 28 Aug 2003 14:43:36 +0000 (14:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8172 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/GCCLibraries/crtend/C++-Exception.h
runtime/GCCLibraries/libexception/C++-Exception.h

index 30d40aad26b7ba74b302b00b239454b98150becf..2a16ad053125c6c0c4526734e49327d96857370c 100644 (file)
 #include <cassert>
 
 struct llvm_cxx_exception {
-  /* TypeInfo - A pointer to the C++ std::type_info object for this exception
-   * class.  This is required because the class may not be polymorphic.
-   */
+  // TypeInfo - A pointer to the C++ std::type_info object for this exception
+  // class.  This is required because the class may not be polymorphic.
+  //
   const std::type_info *TypeInfo;
 
-  /* ExceptionObjectDestructor - A pointer to the function which destroys the
-   * object represented by this exception.  This is required because the class
-   * may not be polymorphic.  This may be null if there is no cleanup required.
-   */
+  // ExceptionObjectDestructor - A pointer to the function which destroys the
+  // object represented by this exception.  This is required because the class
+  // may not be polymorphic.  This may be null if there is no cleanup required.
+  //
   void (*ExceptionObjectDestructor)(void *);
 
-  /* UnexpectedHandler - This contains a pointer to the "unexpected" handler
-   * which may be registered by the user program with set_unexpected.  Calls to
-   * unexpected which are a result of an exception throw are supposed to use the
-   * value of the handler at the time of the throw, not the currently set value.
-   */
+  // UnexpectedHandler - This contains a pointer to the "unexpected" handler
+  // which may be registered by the user program with set_unexpected.  Calls to
+  // unexpected which are a result of an exception throw are supposed to use the
+  // value of the handler at the time of the throw, not the currently set value.
+  //
   void (*UnexpectedHandler)();
 
-  /* TerminateHandler - This contains a pointer to the "terminate" handler which
-   * may be registered by the user program with set_terminate.  Calls to
-   * unexpected which are a result of an exception throw are supposed to use the
-   * value of the handler at the time of the throw, not the currently set value.
-   */
+  // TerminateHandler - This contains a pointer to the "terminate" handler which
+  // may be registered by the user program with set_terminate.  Calls to
+  // unexpected which are a result of an exception throw are supposed to use the
+  // value of the handler at the time of the throw, not the currently set value.
+  //
   void (*TerminateHandler)();
 
-  /* BaseException - The language independent portion of the exception state.
-   * This is at the end of the record so that we can add additional members to
-   * this structure without breaking binary compatibility.
-   */
+  // BaseException - The language independent portion of the exception state.
+  // This is at the end of the record so that we can add additional members to
+  // this structure without breaking binary compatibility.
+  //
   llvm_exception BaseException;
 };
 
index 30d40aad26b7ba74b302b00b239454b98150becf..2a16ad053125c6c0c4526734e49327d96857370c 100644 (file)
 #include <cassert>
 
 struct llvm_cxx_exception {
-  /* TypeInfo - A pointer to the C++ std::type_info object for this exception
-   * class.  This is required because the class may not be polymorphic.
-   */
+  // TypeInfo - A pointer to the C++ std::type_info object for this exception
+  // class.  This is required because the class may not be polymorphic.
+  //
   const std::type_info *TypeInfo;
 
-  /* ExceptionObjectDestructor - A pointer to the function which destroys the
-   * object represented by this exception.  This is required because the class
-   * may not be polymorphic.  This may be null if there is no cleanup required.
-   */
+  // ExceptionObjectDestructor - A pointer to the function which destroys the
+  // object represented by this exception.  This is required because the class
+  // may not be polymorphic.  This may be null if there is no cleanup required.
+  //
   void (*ExceptionObjectDestructor)(void *);
 
-  /* UnexpectedHandler - This contains a pointer to the "unexpected" handler
-   * which may be registered by the user program with set_unexpected.  Calls to
-   * unexpected which are a result of an exception throw are supposed to use the
-   * value of the handler at the time of the throw, not the currently set value.
-   */
+  // UnexpectedHandler - This contains a pointer to the "unexpected" handler
+  // which may be registered by the user program with set_unexpected.  Calls to
+  // unexpected which are a result of an exception throw are supposed to use the
+  // value of the handler at the time of the throw, not the currently set value.
+  //
   void (*UnexpectedHandler)();
 
-  /* TerminateHandler - This contains a pointer to the "terminate" handler which
-   * may be registered by the user program with set_terminate.  Calls to
-   * unexpected which are a result of an exception throw are supposed to use the
-   * value of the handler at the time of the throw, not the currently set value.
-   */
+  // TerminateHandler - This contains a pointer to the "terminate" handler which
+  // may be registered by the user program with set_terminate.  Calls to
+  // unexpected which are a result of an exception throw are supposed to use the
+  // value of the handler at the time of the throw, not the currently set value.
+  //
   void (*TerminateHandler)();
 
-  /* BaseException - The language independent portion of the exception state.
-   * This is at the end of the record so that we can add additional members to
-   * this structure without breaking binary compatibility.
-   */
+  // BaseException - The language independent portion of the exception state.
+  // This is at the end of the record so that we can add additional members to
+  // this structure without breaking binary compatibility.
+  //
   llvm_exception BaseException;
 };