diff options
author | Diego Astiazaran <diegoaat97@gmail.com> | 2019-08-14 20:19:33 +0000 |
---|---|---|
committer | Diego Astiazaran <diegoaat97@gmail.com> | 2019-08-14 20:19:33 +0000 |
commit | 6169a730886b64c7b7aa069a019fd1dc032b61d8 (patch) | |
tree | 5b48d5d2ca6f43896f8e9c627679f63a0777efb9 /clang-tools-extra/unittests/clang-doc/SerializeTest.cpp | |
parent | b4aebff4f1a6891c31f4f3bb54cdd42c00d5112a (diff) | |
download | bcm5719-llvm-6169a730886b64c7b7aa069a019fd1dc032b61d8.tar.gz bcm5719-llvm-6169a730886b64c7b7aa069a019fd1dc032b61d8.zip |
[clang-doc] Add missing check in tests
Path is now checked when comparing two Infos in the unit tests.
Differential Revision: https://reviews.llvm.org/D66124
llvm-svn: 368912
Diffstat (limited to 'clang-tools-extra/unittests/clang-doc/SerializeTest.cpp')
-rw-r--r-- | clang-tools-extra/unittests/clang-doc/SerializeTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/unittests/clang-doc/SerializeTest.cpp b/clang-tools-extra/unittests/clang-doc/SerializeTest.cpp index f9feaf9e074..0dd85215fe2 100644 --- a/clang-tools-extra/unittests/clang-doc/SerializeTest.cpp +++ b/clang-tools-extra/unittests/clang-doc/SerializeTest.cpp @@ -91,7 +91,7 @@ TEST(SerializeTest, emitNamespaceInfo) { CheckNamespaceInfo(&ExpectedA, A); NamespaceInfo *B = InfoAsNamespace(Infos[2].get()); - NamespaceInfo ExpectedB(EmptySID, "B"); + NamespaceInfo ExpectedB(EmptySID, /*Name=*/"B", /*Path=*/"A"); ExpectedB.Namespace.emplace_back(EmptySID, "A", InfoType::IT_namespace); CheckNamespaceInfo(&ExpectedB, B); @@ -276,7 +276,7 @@ TEST(SerializeTest, emitInternalRecordInfo) { CheckRecordInfo(&ExpectedE, E); RecordInfo *G = InfoAsRecord(Infos[2].get()); - RecordInfo ExpectedG(EmptySID, "G"); + RecordInfo ExpectedG(EmptySID, /*Name=*/"G", /*Path=*/"E"); ExpectedG.DefLoc = Location(0, llvm::SmallString<16>{"test.cpp"}); ExpectedG.TagType = TagTypeKind::TTK_Class; ExpectedG.Namespace.emplace_back(EmptySID, "E", InfoType::IT_record); |