As suggested in the review for D62949, this patch pre-normalizes the
reference expected output plist files by removing lines containing
fields for which we expect differences that should be ignored.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362877
91177308-0d34-0410-b5e6-
96231b3b80d8
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/NewDelete-path-notes.cpp</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/conditional-path-notes.c</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/cxx-for-range.cpp</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/generics.m</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/inline-plist.c</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/inline-unique-reports.c</string>
</array>
</dict>
</plist>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/lambda-notes.cpp</string>
</array>
</dict>
</plist>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/malloc-plist.c</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/method-call-path-notes.cpp</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/model-file.cpp</string>
- <string>/clang/test/Analysis/Inputs/Models/notzero.model</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/null-deref-path-notes.m</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/nullability-notes.m</string>
</array>
</dict>
</plist>
</array>
<key>files</key>
<array>
- <string>/home/szelethus/Documents/macro_expansion/clang/test/Analysis/plist-macros-with-expansion.cpp</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/plist-macros.cpp</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 9.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/retain-release.m</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 9.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/retain-release.m</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0</string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/home/szelethus/Documents/analyzer_opts/clang/test/Analysis/unix-fns.c</string>
</array>
</dict>
</plist>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/MismatchedDeallocator-path-notes.cpp</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/copypaste/plist-diagnostics-notes-as-events.cpp</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/copypaste/plist-diagnostics.cpp</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/diagnostics/deref-track-symbolic-region.c</string>
</array>
</dict>
</plist>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/diagnostics/plist-diagnostics-include-check.cpp</string>
- <string>/clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.h</string>
- <string>/clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.def</string>
</array>
</dict>
</plist>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/diagnostics/plist-multi-file.c</string>
- <string>/clang/test/Analysis/diagnostics/plist-multi-file.h</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/diagnostics/report-issues-within-main-file.cpp</string>
- <string>/clang/test/Analysis/diagnostics/Inputs/include/report-issues-within-main-file.h</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/diagnostics/undef-value-caller.c</string>
- <string>/clang/test/Analysis/diagnostics/undef-value-callee.h</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/diagnostics/undef-value-param.c</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/diagnostics/undef-value-param.m</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/inlining/eager-reclamation-path-notes.c</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/inlining/path-notes.c</string>
</array>
</dict>
</plist>
<plist version="1.0">
<dict>
<key>clang_version</key>
-<string>clang version 8.0.0 </string>
<key>diagnostics</key>
<array>
<dict>
</array>
<key>files</key>
<array>
- <string>/clang/test/Analysis/inlining/path-notes.cpp</string>
</array>
</dict>
</plist>