[clang-tidy] Fix invalid fixit for readability-static-accessed-through-instance ...
authorMatthias Gehre <M.Gehre@gmx.de>
Tue, 14 May 2019 18:23:10 +0000 (18:23 +0000)
committerMatthias Gehre <M.Gehre@gmx.de>
Tue, 14 May 2019 18:23:10 +0000 (18:23 +0000)
commit094584cd522b119444a05019189f2065ad1d215c
tree497bdbd96c247c0f6e6982b381e55751b9a47519
parent80c6e79602f396f9f7b6ce6117e868230b17aca0
[clang-tidy] Fix invalid fixit for readability-static-accessed-through-instance (bug 40544)

Summary:
Fixed https://bugs.llvm.org/show_bug.cgi?id=40544
Before, we would generate a fixit like `(anonymous namespace)::Foo::fun();` for
the added test case.

Reviewers: aaron.ballman, alexfh, xazax.hun

Subscribers: rnkovacs, cfe-commits

Tags: #clang, #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D61874

llvm-svn: 360698
clang-tools-extra/clang-tidy/readability/StaticAccessedThroughInstanceCheck.cpp
clang-tools-extra/test/clang-tidy/readability-static-accessed-through-instance.cpp