]> granicus.if.org Git - clang/commit
Lex: Add some unit tests for corrupt header maps
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 20 Feb 2016 20:39:51 +0000 (20:39 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 20 Feb 2016 20:39:51 +0000 (20:39 +0000)
commit7dca0f623a823830c19d5d37b9ffa663deb611bf
tree98a29fd3a9fe456e5ec6806a332627462800cda8
parentc34c0ec7b6023ede466f51b558fbd8f5f2257a30
Lex: Add some unit tests for corrupt header maps

Split the implementation of `HeaderMap` into `HeaderMapImpl` so that we
can write unit tests that don't depend on the `FileManager`, and then
write a few tests that cover the types of corrupt header maps already
detected.

This also moves type and constant definitions from HeaderMap.cpp to
HeaderMapTypes.h so that the test can access them.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261446 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/HeaderMap.h
include/clang/Lex/HeaderMapTypes.h [new file with mode: 0644]
lib/Lex/HeaderMap.cpp
unittests/Lex/CMakeLists.txt
unittests/Lex/HeaderMapTest.cpp [new file with mode: 0644]