Provide -verify support to match "any" line for diagnostics in included files.
authorAndy Gibbs <andyg1001@hotmail.co.uk>
Thu, 10 Jul 2014 16:43:29 +0000 (16:43 +0000)
committerAndy Gibbs <andyg1001@hotmail.co.uk>
Thu, 10 Jul 2014 16:43:29 +0000 (16:43 +0000)
commitc1f152ee6c5163cd19a4f695bbb4321da2a0149b
treec23601cf7fbe24fb9eeecbf30b3c256d2d8c96cd
parentf4eba98853dbb8fa1adbd29a2e697f94818c5a7a
Provide -verify support to match "any" line for diagnostics in included files.

Allow diagnostic checks that originate in included files to be matched without necessarily determining the line number that the diagnostic occurs on.  The new syntax replaces the line number with '*'.  This extension is limited to diagnostics in included files and may be used where the include file is not part of the test-suite itself.

Expected uses are for diagnostics originating in system headers, or for users who use -verify in testing 3rd-party library code where the location of diagnostics in header files may change from revision to revision and their precise location is not important to the success of the test-case.

llvm-svn: 212735
clang/include/clang/Frontend/VerifyDiagnosticConsumer.h
clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
clang/test/Frontend/verify.c
clang/test/Frontend/verify2.c
clang/test/Frontend/verify2.h