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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212735 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Frontend/VerifyDiagnosticConsumer.h 8 additions, 4 deletionsinclude/clang/Frontend/VerifyDiagnosticConsumer.h
- lib/Frontend/VerifyDiagnosticConsumer.cpp 30 additions, 15 deletionslib/Frontend/VerifyDiagnosticConsumer.cpp
- test/Frontend/verify.c 10 additions, 1 deletiontest/Frontend/verify.c
- test/Frontend/verify2.c 20 additions, 1 deletiontest/Frontend/verify2.c
- test/Frontend/verify2.h 2 additions, 2 deletionstest/Frontend/verify2.h
Loading
Please register or sign in to comment