[PATCH] D72100: Allow matching "any file" in `VerifyDiagnosticConsumer`.

Alexandre Rames via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 23 10:36:47 PST 2020


arames marked 3 inline comments as done.
arames added inline comments.


================
Comment at: clang/test/Frontend/verify-any-file.c:4
+#include "verify-any-file.h"
+// expected-error@*:1 {{unknown type name 'unexpected'}}
+#include "verify-any-file.h"
----------------
While testing, I realized this cannot be handled reliably, so will require the line number to be `*` when the filename is `*`.

I was using the current file and specified line for the `SourceLocation` in this case. But this fails if the specified line number is greater than the number of lines in the current file.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72100/new/

https://reviews.llvm.org/D72100





More information about the cfe-commits mailing list