This allows specifying * for the filename to match any file. For example:
// expected-note@*:* {{Match this note in any file at any line.}}
Paths
| Differential D72100
Allow matching "any file" in `VerifyDiagnosticConsumer`. ClosedPublic Authored by arames on Jan 2 2020, 12:54 PM.
Details Summary This allows specifying * for the filename to match any file. For example: // expected-note@*:* {{Match this note in any file at any line.}}
Diff Detail
Event TimelineComment Actions This is for example useful to add a catch-all clause like // expected-note-re@*:* 1+ {{candidate function {{.+}}}} jkorous added inline comments.
arames added inline comments.
Comment Actions We should either simplify the implementation to reflect that we don't support e. g. *:42 (seems preferable to me) or have the codepaths that are currently not accessible through -fverify tested by other means.
Comment Actions
That makes sense. I have updated the naming and added a comment to reflect that. PTAL.
This revision is now accepted and ready to land.May 14 2020, 12:44 PM Closed by commit rG05eedf1f5b44: [clang][VerifyDiagnosticConsumer] Support filename wildcards (authored by arames, committed by jkorous). · Explain WhyMay 14 2020, 3:16 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 264115 clang/include/clang/Frontend/VerifyDiagnosticConsumer.h
clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
clang/test/Frontend/verify-any-file.c
|
Should we rename it to MatchAnyFileAndLine?