[cfe-dev] PATCH: Enable checking of notes

Nico Weber nicolasweber at gmx.de
Tue Sep 9 00:09:18 PDT 2008


> This little patch enables checking of notes in the Clang driver's
> "-verify" mode using, e.g.,
>
>  // expected-note {{ this is a note }}
>

+
+      // Find all expected warnings
+      FindDiagnostics(Comment, ExpectedNotes, PP.getSourceManager(),
+                      Tok.getLocation(), ExpectedNoteStr);

Looks like a copy-and-paste error in the comment (s/warnings/notes/).

Nico



More information about the cfe-dev mailing list