diff options
author | Kaelyn Uhrain <rikka@google.com> | 2012-04-26 23:36:17 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2012-04-26 23:36:17 +0000 |
commit | aec2ac67e7190bdb88abb1d427b82ae3284ea756 (patch) | |
tree | d835e2740d0381136393c75b45ebb3c8fab28ce1 /test/FixIt/fixit.cpp | |
parent | 65a7c685b78c18dc158399d2cc688a611d5e2553 (diff) |
Add note to help explain why a tag such as 'struct' is needed to refer
to a given type, when the reason is that there is a non-type decl with
the same name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt/fixit.cpp')
-rw-r--r-- | test/FixIt/fixit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/FixIt/fixit.cpp b/test/FixIt/fixit.cpp index e6609d8a6c..9a2acd33e0 100644 --- a/test/FixIt/fixit.cpp +++ b/test/FixIt/fixit.cpp @@ -211,7 +211,7 @@ class Foo { public: enum Bar { X, Y }; void SetBar(Bar bar); - Bar Bar(); + Bar Bar(); // expected-note 2 {{non-type 'Bar' shadowing enum 'Bar' declared here}} private: Bar bar_; // expected-error {{must use 'enum' tag to refer to type 'Bar' in this scope}} }; |