diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-05-07 23:58:18 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-05-07 23:58:18 +0000 |
commit | 9b79fc9c57dc9d541c2a5737c3e2c24cc68d485d (patch) | |
tree | ef1106603d82a8c98672f7b6986a2054ed60e8e5 /test/Index/complete-with-annotations.cpp | |
parent | ca11510d399ae0493bcb3daf24e3c1df399d75f2 (diff) |
Process attributes in the order they appear in the source code. This make clang
match gcc behavior for two conflicting visibilities in the same decl. It also
makes handling of dllimport/dllexport more natural.
As a bonus we now warn on the dllimport in
void __attribute__((dllimport)) foo13();
void __attribute__((dllexport)) foo13();
as does gcc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156343 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/complete-with-annotations.cpp')
-rw-r--r-- | test/Index/complete-with-annotations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Index/complete-with-annotations.cpp b/test/Index/complete-with-annotations.cpp index afa8d9ed66..3b37e380f3 100644 --- a/test/Index/complete-with-annotations.cpp +++ b/test/Index/complete-with-annotations.cpp @@ -14,7 +14,7 @@ void X::doSomething() { } // CHECK: CXXMethod:{ResultType void}{TypedText doSomething}{LeftParen (}{RightParen )} (34) -// CHECK: FieldDecl:{ResultType int}{TypedText field} (35) ("three", "two", "one") +// CHECK: FieldDecl:{ResultType int}{TypedText field} (35) ("one", "two", "three") // CHECK: CXXMethod:{ResultType void}{TypedText func2}{LeftParen (}{RightParen )} (34) ("some annotation") // CHECK: FieldDecl:{ResultType int}{TypedText member2} (35) ("another annotation", "some annotation") // CHECK: CXXMethod:{ResultType X &}{TypedText operator=}{LeftParen (}{Placeholder const X &}{RightParen )} (34) |