summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-04-30 10:57:37 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-04-30 10:57:37 +0000
commit655f341a43b511f158ff9ae5d11d95c3ac641854 (patch)
tree726e0fe4ff248db4030a4e19604a29f7c1f09026
parentf8cb6c3418c7171f4d726d69ba302b7e0f2d23f6 (diff)
Fix gcc "-Wdangling-else" warning. NFCI.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359551 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--unittests/Tooling/LookupTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/Tooling/LookupTest.cpp b/unittests/Tooling/LookupTest.cpp
index d79e1746a0..372cbbf62b 100644
--- a/unittests/Tooling/LookupTest.cpp
+++ b/unittests/Tooling/LookupTest.cpp
@@ -217,8 +217,9 @@ TEST(LookupTest, replaceNestedClassName) {
// `x::y::Foo` in c.cc [1], it should not make "Foo" at [0] ambiguous because
// it's not visible at [0].
Visitor.OnRecordTypeLoc = [&](RecordTypeLoc Type) {
- if (Type.getDecl()->getQualifiedNameAsString() == "x::y::Old")
+ if (Type.getDecl()->getQualifiedNameAsString() == "x::y::Old") {
EXPECT_EQ("Foo", replaceRecordTypeLoc(Type, "::x::Foo"));
+ }
};
Visitor.runOver(R"(
// a.h