[clang] 9053574 - Don't use end-of-line comments for the DebugInfoKind enum, NFC

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 15 14:18:15 PST 2019


Author: Reid Kleckner
Date: 2019-11-15T14:06:23-08:00
New Revision: 905357440c98ae06aac692d7adbccc70f1ce9d28

URL: https://github.com/llvm/llvm-project/commit/905357440c98ae06aac692d7adbccc70f1ce9d28
DIFF: https://github.com/llvm/llvm-project/commit/905357440c98ae06aac692d7adbccc70f1ce9d28.diff

LOG: Don't use end-of-line comments for the DebugInfoKind enum, NFC

These are long comments, and I find the new structure easier to read.

Added: 
    

Modified: 
    clang/include/clang/Basic/DebugInfoOptions.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/DebugInfoOptions.h b/clang/include/clang/Basic/DebugInfoOptions.h
index 91d3332103e9..ac18a3a4796c 100644
--- a/clang/include/clang/Basic/DebugInfoOptions.h
+++ b/clang/include/clang/Basic/DebugInfoOptions.h
@@ -18,24 +18,30 @@ enum DebugInfoFormat {
 };
 
 enum DebugInfoKind {
-  NoDebugInfo,         /// Don't generate debug info.
-  LocTrackingOnly,     /// Emit location information but do not generate
-                       /// debug info in the output. This is useful in
-                       /// cases where the backend wants to track source
-                       /// locations for instructions without actually
-                       /// emitting debug info for them (e.g., when -Rpass
-                       /// is used).
-  DebugDirectivesOnly, /// Emit only debug directives with the line numbers data
-  DebugLineTablesOnly, /// Emit only debug info necessary for generating
-                       /// line number tables (-gline-tables-only).
-  LimitedDebugInfo,    /// Limit generated debug info to reduce size
-                       /// (-fno-standalone-debug). This emits
-                       /// forward decls for types that could be
-                       /// replaced with forward decls in the source
-                       /// code. For dynamic C++ classes type info
-                       /// is only emitted into the module that
-                       /// contains the classe's vtable.
-  FullDebugInfo        /// Generate complete debug info.
+  /// Don't generate debug info.
+  NoDebugInfo,
+
+  /// Emit location information but do not generate debug info in the output.
+  /// This is useful in cases where the backend wants to track source
+  /// locations for instructions without actually emitting debug info for them
+  /// (e.g., when -Rpass is used).
+  LocTrackingOnly,
+
+  /// Emit only debug directives with the line numbers data
+  DebugDirectivesOnly,
+
+  /// Emit only debug info necessary for generating line number tables
+  /// (-gline-tables-only).
+  DebugLineTablesOnly,
+
+  /// Limit generated debug info to reduce size (-fno-standalone-debug). This
+  /// emits forward decls for types that could be replaced with forward decls in
+  /// the source code. For dynamic C++ classes type info is only emitted into
+  /// the module that contains the classe's vtable.
+  LimitedDebugInfo,
+
+  /// Generate complete debug info.
+  FullDebugInfo
 };
 
 } // end namespace codegenoptions


        


More information about the cfe-commits mailing list