[PATCH] Add diagnostic capabilities in LLVM (frontend part)

Dmitri Gribenko gribozavr at gmail.com
Thu Feb 6 01:44:04 PST 2014



================
Comment at: include/clang/Basic/DiagnosticFrontendKinds.td:25
@@ -22,2 +24,3 @@
 
-
+def warn_fe_backend_frame_larger_than: Warning<"stack size exceeded (%0) in %1">, CatBackend, InGroup<BackendFrameLargerThan>;
+def err_fe_backend_frame_larger_than: Error<"%0">, CatBackend;
----------------
80 cols?

================
Comment at: test/Frontend/backend-diagnostic.c:17
@@ +16,3 @@
+// them for the -verify test for now.
+// RUN: %clang_cc1 %s -S -o - -triple=i386-apple-darwin -verify
+
----------------
Does this still pass despite other warnings being emitted?  I thought we would have to #ifdef the rest of the test, so that the other code (except inlineAsmError()) does not emit warnings.


http://llvm-reviews.chandlerc.com/D2430



More information about the cfe-commits mailing list