[cfe-commits] r126887 - in /cfe/trunk: include/clang/AST/Stmt.h lib/Sema/SemaDecl.cpp test/Index/annotate-tokens.c

Benjamin Kramer benny.kra at googlemail.com
Wed Mar 2 13:59:08 PST 2011


On 02.03.2011, at 22:45, Douglas Gregor wrote:

> Author: dgregor
> Date: Wed Mar  2 15:45:00 2011
> New Revision: 126887
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=126887&view=rev
> Log:
> Force CaseStmt to store its child statements in source-code order,
> which is important for libclang's token-annotation and
> where's-my-cursor functionality. Fixes <rdar://problem/9004439>.
> 
> Modified:
>    cfe/trunk/include/clang/AST/Stmt.h
>    cfe/trunk/lib/Sema/SemaDecl.cpp
>    cfe/trunk/test/Index/annotate-tokens.c
> 
> Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=126887&r1=126886&r2=126887&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
> +++ cfe/trunk/lib/Sema/SemaDecl.cpp Wed Mar  2 15:45:00 2011
> @@ -1,3 +1,12 @@
> +template<typename T>
> +struct vector {
> +
> +};
> +
> +void f() {
> +  vector<int> v;
> +}
> +
> //===--- SemaDecl.cpp - Semantic Analysis for Declarations ----------------===//
> //
> //                     The LLVM Compiler Infrastructure

Where does this vector come from?



More information about the cfe-commits mailing list