[clang] [clang-tools-extra] [clang] Extend diagnose_if to accept more detailed warning information (PR #70976)
    Erich Keane via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed Sep 11 07:02:53 PDT 2024
    
    
  
================
@@ -82,7 +83,7 @@ namespace clang {
     /// to either Ignore (nothing), Remark (emit a remark), Warning
     /// (emit a warning) or Error (emit as an error).  It allows clients to
     /// map ERRORs to Error or Fatal (stop emitting diagnostics after this one).
-    enum class Severity {
+    enum class Severity : uint8_t {
       // NOTE: 0 means "uncomputed".
----------------
erichkeane wrote:
Nothing to do here, but this note annoys me... Sounds like we should actually HAVE an enum for 'uncomputed' instead.
https://github.com/llvm/llvm-project/pull/70976
    
    
More information about the cfe-commits
mailing list