Unnamed: 0
int64 0
0
| repo_id
stringlengths 5
186
| file_path
stringlengths 15
223
| content
stringlengths 1
32.8M
⌀ |
---|---|---|---|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/print-type-size.cpp
|
// from SemaCXX/class-layout.cpp
// RUN: c-index-test -test-print-type-size %s -target x86_64-pc-linux-gnu | FileCheck -check-prefix=CHECK64 %s
// RUN: c-index-test -test-print-type-size %s -target i386-apple-darwin9 | FileCheck -check-prefix=CHECK32 %s
namespace basic {
// CHECK64: VarDecl=v:[[@LINE+2]]:6 (Definition) [type=void] [typekind=Void]
// CHECK32: VarDecl=v:[[@LINE+1]]:6 (Definition) [type=void] [typekind=Void]
void v;
// CHECK64: VarDecl=v1:[[@LINE+2]]:7 (Definition) [type=void *] [typekind=Pointer] [sizeof=8] [alignof=8]
// CHECK32: VarDecl=v1:[[@LINE+1]]:7 (Definition) [type=void *] [typekind=Pointer] [sizeof=4] [alignof=4]
void *v1;
// offsetof
// CHECK64: StructDecl=simple:[[@LINE+2]]:8 (Definition) [type=basic::simple] [typekind=Record] [sizeof=48] [alignof=8]
// CHECK32: StructDecl=simple:[[@LINE+1]]:8 (Definition) [type=basic::simple] [typekind=Record] [sizeof=36] [alignof=4]
struct simple {
int a;
char b;
// CHECK64: FieldDecl=c:[[@LINE+1]]:7 (Definition) [type=int] [typekind=Int] [sizeof=4] [alignof=4] [offsetof=40] [BitFieldSize=3]
int c:3;
long d;
int e:5;
// CHECK64: FieldDecl=f:[[@LINE+1]]:7 (Definition) [type=int] [typekind=Int] [sizeof=4] [alignof=4] [offsetof=133] [BitFieldSize=4]
int f:4;
// CHECK64: FieldDecl=g:[[@LINE+2]]:13 (Definition) [type=long long] [typekind=LongLong] [sizeof=8] [alignof=8] [offsetof=192]
// CHECK32: FieldDecl=g:[[@LINE+1]]:13 (Definition) [type=long long] [typekind=LongLong] [sizeof=8] [alignof=4] [offsetof=128]
long long g;
// CHECK64: FieldDecl=h:[[@LINE+1]]:8 (Definition) [type=char] [typekind=Char_S] [sizeof=1] [alignof=1] [offsetof=256] [BitFieldSize=3]
char h:3;
char i:3;
float j;
// CHECK64: FieldDecl=k:[[@LINE+2]]:10 (Definition) [type=char *] [typekind=Pointer] [sizeof=8] [alignof=8] [offsetof=320]
// CHECK32: FieldDecl=k:[[@LINE+1]]:10 (Definition) [type=char *] [typekind=Pointer] [sizeof=4] [alignof=4] [offsetof=256]
char * k;
};
// CHECK64: UnionDecl=u:[[@LINE+2]]:7 (Definition) [type=basic::u] [typekind=Record] [sizeof=48] [alignof=8]
// CHECK32: UnionDecl=u:[[@LINE+1]]:7 (Definition) [type=basic::u] [typekind=Record] [sizeof=36] [alignof=4]
union u {
int u1;
long long u2;
struct simple s1;
};
// CHECK64: VarDecl=s1:[[@LINE+2]]:8 (Definition) [type=basic::simple] [typekind=Record] [sizeof=48] [alignof=8]
// CHECK32: VarDecl=s1:[[@LINE+1]]:8 (Definition) [type=basic::simple] [typekind=Record] [sizeof=36] [alignof=4]
simple s1;
struct Test {
struct {
union {
//CHECK64: FieldDecl=foo:[[@LINE+1]]:11 (Definition) [type=int] [typekind=Int] [sizeof=4] [alignof=4] [offsetof=0]
int foo;
};
};
};
struct Test2 {
struct {
struct {
//CHECK64: FieldDecl=foo:[[@LINE+1]]:11 (Definition) [type=int] [typekind=Int] [sizeof=4] [alignof=4] [offsetof=0]
int foo;
};
struct {
//CHECK64: FieldDecl=bar:[[@LINE+1]]:11 (Definition) [type=int] [typekind=Int] [sizeof=4] [alignof=4] [offsetof=32/0]
int bar;
};
struct {
struct {
//CHECK64: FieldDecl=foobar:[[@LINE+1]]:15 (Definition) [type=int] [typekind=Int] [sizeof=4] [alignof=4] [offsetof=64/0]
int foobar;
};
};
};
};
}
// these are test crash. Offsetof return values are not important.
namespace Incomplete {
// test that fields in incomplete named record do not crash
union named {
struct forward_decl f1;
int f2;
struct x {
int g1;
} f3;
struct forward_decl f4;
struct x2{
int g2;
struct forward_decl g3;
} f5;
};
// test that fields in incomplete anonymous record do not crash
union f {
struct forward_decl f1;
int f2;
struct {
int e1;
struct {
struct forward_decl2 g1;
};
int e3;
};
};
// incomplete not in root level, in named record
struct s1 {
struct {
struct forward_decl2 s1_g1;
int s1_e1;
} s1_x; // named record shows in s1->field_iterator
int s1_e3;
};
// incomplete not in root level, in anonymous record
struct s1b {
struct {
struct forward_decl2 s1b_g1;
}; // erroneous anonymous record does not show in s1b->field_iterator
int s1b_e2;
};
struct s2 {
struct {
struct forward_decl2 s2_g1;
int s2_e1;
}; // erroneous anonymous record does not show in s1b->field_iterator
int s2_e3;
};
//deep anonymous with deep level incomplete
struct s3 {
struct {
int s3_e1;
struct {
struct {
struct {
struct {
struct forward_decl2 s3_g1;
};
};
};
};
int s3_e3;
};
};
//deep anonymous with first level incomplete
struct s4a {
struct forward_decl2 g1;
struct {
struct forward_decl2 g2;
struct {
struct {
struct {
struct {
//CHECK64: FieldDecl=s4_e1:[[@LINE+1]]:17 (Definition) [type=int] [typekind=Int] [sizeof=4] [alignof=4] [offsetof=-1/0]
int s4_e1;
};
};
};
};
int s4_e3;
};
};
//deep anonymous with sub-first-level incomplete
struct s4b {
struct {
struct forward_decl2 g1;
struct {
struct {
struct {
struct {
int s4b_e1;
};
};
};
};
int s4b_e3;
};
};
//named struct within anonymous struct
struct s5 {
struct {
struct x {
int i;
};
};
};
// CHECK64: StructDecl=As:[[@LINE+1]]:8 [type=Incomplete::As] [typekind=Record]
struct As;
// undefined class. Should not crash
// CHECK64: ClassDecl=A:[[@LINE+1]]:7 [type=Incomplete::A] [typekind=Record]
class A;
class B {
A* a1;
A& a2;
};
}
namespace Sizes {
// CHECK64: StructDecl=A:[[@LINE+2]]:8 (Definition) [type=Sizes::A] [typekind=Record] [sizeof=8] [alignof=4]
// CHECK32: StructDecl=A:[[@LINE+1]]:8 (Definition) [type=Sizes::A] [typekind=Record] [sizeof=8] [alignof=4]
struct A {
int a;
char b;
};
// CHECK64: StructDecl=B:[[@LINE+2]]:8 (Definition) [type=Sizes::B] [typekind=Record] [sizeof=12] [alignof=4]
// CHECK32: StructDecl=B:[[@LINE+1]]:8 (Definition) [type=Sizes::B] [typekind=Record] [sizeof=12] [alignof=4]
struct B : A {
char c;
};
// CHECK64: StructDecl=C:[[@LINE+2]]:8 (Definition) [type=Sizes::C] [typekind=Record] [sizeof=8] [alignof=4]
// CHECK32: StructDecl=C:[[@LINE+1]]:8 (Definition) [type=Sizes::C] [typekind=Record] [sizeof=8] [alignof=4]
struct C {
// Make fields private so C won't be a POD type.
private:
int a;
char b;
};
// CHECK64: StructDecl=D:[[@LINE+2]]:8 (Definition) [type=Sizes::D] [typekind=Record] [sizeof=8] [alignof=4]
// CHECK32: StructDecl=D:[[@LINE+1]]:8 (Definition) [type=Sizes::D] [typekind=Record] [sizeof=8] [alignof=4]
struct D : C {
char c;
};
// CHECK64: StructDecl=E:[[@LINE+2]]:32 (Definition) [type=Sizes::E] [typekind=Record] [sizeof=5] [alignof=1]
// CHECK32: StructDecl=E:[[@LINE+1]]:32 (Definition) [type=Sizes::E] [typekind=Record] [sizeof=5] [alignof=1]
struct __attribute__((packed)) E {
char b;
int a;
};
// CHECK64: StructDecl=F:[[@LINE+2]]:32 (Definition) [type=Sizes::F] [typekind=Record] [sizeof=6] [alignof=1]
// CHECK32: StructDecl=F:[[@LINE+1]]:32 (Definition) [type=Sizes::F] [typekind=Record] [sizeof=6] [alignof=1]
struct __attribute__((packed)) F : E {
char d;
};
struct G { G(); };
// CHECK64: StructDecl=H:[[@LINE+2]]:8 (Definition) [type=Sizes::H] [typekind=Record] [sizeof=1] [alignof=1]
// CHECK32: StructDecl=H:[[@LINE+1]]:8 (Definition) [type=Sizes::H] [typekind=Record] [sizeof=1] [alignof=1]
struct H : G { };
// CHECK64: StructDecl=I:[[@LINE+2]]:8 (Definition) [type=Sizes::I] [typekind=Record] [sizeof=5] [alignof=1]
// CHECK32: StructDecl=I:[[@LINE+1]]:8 (Definition) [type=Sizes::I] [typekind=Record] [sizeof=5] [alignof=1]
struct I {
char b;
int a;
} __attribute__((packed));
}
namespace Test1 {
// Test complex class hierarchy
struct A { };
struct B : A { virtual void b(); };
class C : virtual A { int c; };
struct D : virtual B { };
struct E : C, virtual D { };
class F : virtual E { };
// CHECK64: StructDecl=G:[[@LINE+2]]:8 (Definition) [type=Test1::G] [typekind=Record] [sizeof=24] [alignof=8]
// CHECK32: StructDecl=G:[[@LINE+1]]:8 (Definition) [type=Test1::G] [typekind=Record] [sizeof=16] [alignof=4]
struct G : virtual E, F { };
}
namespace Test2 {
// Test that this somewhat complex class structure is laid out correctly.
struct A { };
struct B : A { virtual void b(); };
struct C : virtual B { };
struct D : virtual A { };
struct E : virtual B, D { };
struct F : E, virtual C { };
struct G : virtual F, A { };
// CHECK64: StructDecl=H:[[@LINE+2]]:8 (Definition) [type=Test2::H] [typekind=Record] [sizeof=24] [alignof=8]
// CHECK32: StructDecl=H:[[@LINE+1]]:8 (Definition) [type=Test2::H] [typekind=Record] [sizeof=12] [alignof=4]
struct H { G g; };
}
namespace Test3 {
// CHECK64: ClassDecl=B:[[@LINE+2]]:7 (Definition) [type=Test3::B] [typekind=Record] [sizeof=16] [alignof=8]
// CHECK32: ClassDecl=B:[[@LINE+1]]:7 (Definition) [type=Test3::B] [typekind=Record] [sizeof=8] [alignof=4]
class B {
public:
virtual void b(){}
// CHECK64: FieldDecl=b_field:[[@LINE+2]]:8 (Definition) [type=long] [typekind=Long] [sizeof=8] [alignof=8] [offsetof=64]
// CHECK32: FieldDecl=b_field:[[@LINE+1]]:8 (Definition) [type=long] [typekind=Long] [sizeof=4] [alignof=4] [offsetof=32]
long b_field;
protected:
private:
};
// CHECK32: ClassDecl=A:[[@LINE+1]]:7 (Definition) [type=Test3::A] [typekind=Record] [sizeof=16] [alignof=4]
class A : public B {
public:
// CHECK64: FieldDecl=a_field:[[@LINE+2]]:7 (Definition) [type=int] [typekind=Int] [sizeof=4] [alignof=4] [offsetof=128]
// CHECK32: FieldDecl=a_field:[[@LINE+1]]:7 (Definition) [type=int] [typekind=Int] [sizeof=4] [alignof=4] [offsetof=64]
int a_field;
virtual void a(){}
// CHECK64: FieldDecl=one:[[@LINE+2]]:8 (Definition) [type=char] [typekind=Char_S] [sizeof=1] [alignof=1] [offsetof=160]
// CHECK32: FieldDecl=one:[[@LINE+1]]:8 (Definition) [type=char] [typekind=Char_S] [sizeof=1] [alignof=1] [offsetof=96]
char one;
protected:
private:
};
// CHECK64: ClassDecl=D:[[@LINE+2]]:7 (Definition) [type=Test3::D] [typekind=Record] [sizeof=16] [alignof=8]
// CHECK32: ClassDecl=D:[[@LINE+1]]:7 (Definition) [type=Test3::D] [typekind=Record] [sizeof=12] [alignof=4]
class D {
public:
virtual void b(){}
// CHECK64: FieldDecl=a:[[@LINE+2]]:10 (Definition) [type=double] [typekind=Double] [sizeof=8] [alignof=8] [offsetof=64]
// CHECK32: FieldDecl=a:[[@LINE+1]]:10 (Definition) [type=double] [typekind=Double] [sizeof=8] [alignof=4] [offsetof=32]
double a;
};
// CHECK64: ClassDecl=C:[[@LINE+2]]:7 (Definition) [type=Test3::C] [typekind=Record] [sizeof=88] [alignof=8]
// CHECK32: ClassDecl=C:[[@LINE+1]]:7 (Definition) [type=Test3::C] [typekind=Record] [sizeof=60] [alignof=4]
class C : public virtual A,
public D, public B {
public:
double c1_field;
int c2_field;
double c3_field;
int c4_field;
virtual void foo(){}
virtual void bar(){}
protected:
private:
};
struct BaseStruct
{
BaseStruct(){}
double v0;
float v1;
// CHECK64: FieldDecl=fg:[[@LINE+2]]:7 (Definition) [type=Test3::C] [typekind=Record] [sizeof=88] [alignof=8] [offsetof=128]
// CHECK32: FieldDecl=fg:[[@LINE+1]]:7 (Definition) [type=Test3::C] [typekind=Record] [sizeof=60] [alignof=4] [offsetof=96]
C fg;
// CHECK64: FieldDecl=rg:[[@LINE+2]]:8 (Definition) [type=Test3::C &] [typekind=LValueReference] [sizeof=88] [alignof=8] [offsetof=832]
// CHECK32: FieldDecl=rg:[[@LINE+1]]:8 (Definition) [type=Test3::C &] [typekind=LValueReference] [sizeof=60] [alignof=4] [offsetof=576]
C &rg;
int x;
};
}
namespace NotConstantSize {
void f(int i) {
// CHECK32: VarDecl=v2:[[@LINE+1]]:8 (Definition) [type=int [i]] [typekind=VariableArray] [sizeof=-4] [alignof=4]
int v2[i];
{
struct CS1 {
int f1[i];
float f2;
};
}
}
}
namespace CrashTest {
// test crash scenarios on dependent types.
template<typename T>
struct Foo {
T t;
int a;
};
Foo<Sizes::A> t1;
Foo<Sizes::I> t2;
void c;
plopplop;
// CHECK64: StructDecl=lastValid:[[@LINE+2]]:8 (Definition) [type=CrashTest::lastValid] [typekind=Record] [sizeof=1] [alignof=1]
// CHECK32: StructDecl=lastValid:[[@LINE+1]]:8 (Definition) [type=CrashTest::lastValid] [typekind=Record] [sizeof=1] [alignof=1]
struct lastValid {
};
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/annotate-tokens-include.c
|
#include "annotate-tokens-include.h"
// RUN: c-index-test -test-annotate-tokens=%s:1:1:2:1 %s | FileCheck %s
// CHECK: Punctuation: "#" [1:1 - 1:2] inclusion directive=annotate-tokens-include.h
// CHECK: Identifier: "include" [1:2 - 1:9] inclusion directive=annotate-tokens-include.h
// CHECK: Literal: ""annotate-tokens-include.h"" [1:10 - 1:37] inclusion directive=annotate-tokens-include.h
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/annotate-deep-statements.cpp
|
// RUN: c-index-test -test-annotate-tokens=%s:1:1:1000:1 %s | FileCheck %s
// rdar://11979525
// Check that we don't get stack overflow trying to annotate an extremely deep AST.
// AddressSanitizer and UndefinedBehaviorSanitizer increases stack usage.
// REQUIRES: not_asan, not_ubsan
struct S {
S &operator()();
};
// CHECK: Identifier: "foo" {{\[}}[[@LINE+1]]:6 - [[@LINE+1]]:9] FunctionDecl=foo:[[@LINE+1]]:6 (Definition)
void foo() {
S s;
s()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
;
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/blocks.c
|
// RUN: c-index-test -test-load-source local -fblocks %s | FileCheck %s
typedef int int_t;
struct foo { long x; };
void test() {
static struct foo _foo;
__block i = 0;
^ int_t(struct foo *foo) { return (int_t) foo->x + i; }(&_foo);
}
// CHECK: blocks.c:6:6: FunctionDecl=test:6:6 (Definition) Extent=[6:1 - 10:2]
// CHECK: blocks.c:6:13: CompoundStmt= Extent=[6:13 - 10:2]
// CHECK: blocks.c:7:3: DeclStmt= Extent=[7:3 - 7:26]
// CHECK: blocks.c:7:21: VarDecl=_foo:7:21 (Definition) Extent=[7:3 - 7:25]
// CHECK: blocks.c:7:17: TypeRef=struct foo:4:8 Extent=[7:17 - 7:20]
// CHECK: blocks.c:8:11: VarDecl=i:8:11 (Definition) Extent=[8:3 - 8:16]
// CHECK: blocks.c:8:15: IntegerLiteral= Extent=[8:15 - 8:16]
// CHECK: blocks.c:9:3: CallExpr= Extent=[9:3 - 9:65]
// CHECK: blocks.c:9:3: BlockExpr= Extent=[9:3 - 9:58]
// CHECK: blocks.c:9:5: TypeRef=int_t:3:13 Extent=[9:5 - 9:10]
// CHECK: blocks.c:9:23: ParmDecl=foo:9:23 (Definition) Extent=[9:11 - 9:26]
// CHECK: blocks.c:9:18: TypeRef=struct foo:4:8 Extent=[9:18 - 9:21]
// CHECK: blocks.c:9:28: CompoundStmt= Extent=[9:28 - 9:58]
// CHECK: blocks.c:9:30: ReturnStmt= Extent=[9:30 - 9:55]
// CHECK: blocks.c:9:37: BinaryOperator= Extent=[9:37 - 9:55]
// CHECK: blocks.c:9:37: CStyleCastExpr= Extent=[9:37 - 9:51]
// CHECK: blocks.c:9:38: TypeRef=int_t:3:13 Extent=[9:38 - 9:43]
// CHECK: blocks.c:9:50: MemberRefExpr=x:4:19 SingleRefName=[9:50 - 9:51] RefName=[9:50 - 9:51] Extent=[9:45 - 9:51]
// CHECK: blocks.c:9:45: DeclRefExpr=foo:9:23 Extent=[9:45 - 9:48]
// CHECK: blocks.c:9:54: DeclRefExpr=i:8:11 Extent=[9:54 - 9:55]
// CHECK: blocks.c:9:59: UnaryOperator= Extent=[9:59 - 9:64]
// CHECK: blocks.c:9:60: DeclRefExpr=_foo:7:21 Extent=[9:60 - 9:64]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/targeted-nested1.h
|
extern int NestedVar1;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/annotate-tokens.cpp
|
struct bonk { };
void test(bonk X) {
X = X;
__is_base_of(bonk, bonk);
}
struct X {
X operator++();
X operator++(int);
};
void test2(X x) {
++(x);
(x)++;
}
struct S1 { void f(); };
struct S2 { S1 *operator->(); };
void test3(S2 s2) {
s2->f();
X foo;
}
template <bool (*tfn)(X*)>
struct TS {
void foo();
};
template <bool (*tfn)(X*)>
void TS<tfn>::foo() {}
void test4() {
if (int p = 0)
return;
}
class C {
~C();
};
// RUN: c-index-test -test-annotate-tokens=%s:1:1:38:1 %s -fno-delayed-template-parsing | FileCheck %s
// CHECK: Keyword: "struct" [1:1 - 1:7] StructDecl=bonk:1:8 (Definition)
// CHECK: Identifier: "bonk" [1:8 - 1:12] StructDecl=bonk:1:8 (Definition)
// CHECK: Punctuation: "{" [1:13 - 1:14] StructDecl=bonk:1:8 (Definition)
// CHECK: Punctuation: "}" [1:15 - 1:16] StructDecl=bonk:1:8 (Definition)
// CHECK: Punctuation: ";" [1:16 - 1:17]
// CHECK: Keyword: "void" [2:1 - 2:5] FunctionDecl=test:2:6 (Definition)
// CHECK: Identifier: "test" [2:6 - 2:10] FunctionDecl=test:2:6 (Definition)
// CHECK: Punctuation: "(" [2:10 - 2:11] FunctionDecl=test:2:6 (Definition)
// CHECK: Identifier: "bonk" [2:11 - 2:15] TypeRef=struct bonk:1:8
// CHECK: Identifier: "X" [2:16 - 2:17] ParmDecl=X:2:16 (Definition)
// CHECK: Punctuation: ")" [2:17 - 2:18] FunctionDecl=test:2:6 (Definition)
// CHECK: Punctuation: "{" [2:19 - 2:20] CompoundStmt=
// CHECK: Identifier: "X" [3:5 - 3:6] DeclRefExpr=X:2:16
// CHECK: Punctuation: "=" [3:7 - 3:8] DeclRefExpr=operator=:1:8
// CHECK: Identifier: "X" [3:9 - 3:10] DeclRefExpr=X:2:16
// CHECK: Punctuation: ";" [3:10 - 3:11] CompoundStmt=
// CHECK: Keyword: "__is_base_of" [4:5 - 4:17] UnexposedExpr=
// CHECK: Punctuation: "(" [4:17 - 4:18] UnexposedExpr=
// CHECK: Identifier: "bonk" [4:18 - 4:22] TypeRef=struct bonk:1:8
// CHECK: Punctuation: "," [4:22 - 4:23] UnexposedExpr=
// CHECK: Identifier: "bonk" [4:24 - 4:28] TypeRef=struct bonk:1:8
// CHECK: Punctuation: ")" [4:28 - 4:29] UnexposedExpr=
// CHECK: Punctuation: ";" [4:29 - 4:30] CompoundStmt=
// CHECK: Punctuation: "}" [5:1 - 5:2] CompoundStmt=
// CHECK: Keyword: "struct" [7:1 - 7:7] StructDecl=X:7:8 (Definition)
// CHECK: Identifier: "X" [7:8 - 7:9] StructDecl=X:7:8 (Definition)
// CHECK: Punctuation: "{" [7:10 - 7:11] StructDecl=X:7:8 (Definition)
// CHECK: Identifier: "X" [8:3 - 8:4] TypeRef=struct X:7:8
// CHECK: Keyword: "operator" [8:5 - 8:13] CXXMethod=operator++:8:5
// CHECK: Punctuation: "++" [8:13 - 8:15] CXXMethod=operator++:8:5
// CHECK: Punctuation: "(" [8:15 - 8:16] CXXMethod=operator++:8:5
// CHECK: Punctuation: ")" [8:16 - 8:17] CXXMethod=operator++:8:5
// CHECK: Punctuation: ";" [8:17 - 8:18] StructDecl=X:7:8 (Definition)
// CHECK: Identifier: "X" [9:3 - 9:4] TypeRef=struct X:7:8
// CHECK: Keyword: "operator" [9:5 - 9:13] CXXMethod=operator++:9:5
// CHECK: Punctuation: "++" [9:13 - 9:15] CXXMethod=operator++:9:5
// CHECK: Punctuation: "(" [9:15 - 9:16] CXXMethod=operator++:9:5
// CHECK: Keyword: "int" [9:16 - 9:19] ParmDecl=:9:19 (Definition
// CHECK: Punctuation: ")" [9:19 - 9:20] CXXMethod=operator++:9:5
// CHECK: Punctuation: ";" [9:20 - 9:21] StructDecl=X:7:8 (Definition)
// CHECK: Punctuation: "}" [10:1 - 10:2] StructDecl=X:7:8 (Definition)
// CHECK: Punctuation: ";" [10:2 - 10:3]
// CHECK: Keyword: "void" [11:1 - 11:5] FunctionDecl=test2:11:6 (Definition)
// CHECK: Identifier: "test2" [11:6 - 11:11] FunctionDecl=test2:11:6 (Definition)
// CHECK: Punctuation: "(" [11:11 - 11:12] FunctionDecl=test2:11:6 (Definition)
// CHECK: Identifier: "X" [11:12 - 11:13] TypeRef=struct X:7:8
// CHECK: Identifier: "x" [11:14 - 11:15] ParmDecl=x:11:14 (Definition)
// CHECK: Punctuation: ")" [11:15 - 11:16] FunctionDecl=test2:11:6 (Definition)
// CHECK: Punctuation: "{" [11:17 - 11:18] CompoundStmt=
// CHECK: Punctuation: "++" [12:3 - 12:5] CallExpr=operator++:8:5
// CHECK: Punctuation: "(" [12:5 - 12:6] ParenExpr=
// CHECK: Identifier: "x" [12:6 - 12:7] DeclRefExpr=x:11:14
// CHECK: Punctuation: ")" [12:7 - 12:8] ParenExpr=
// CHECK: Punctuation: ";" [12:8 - 12:9] CompoundStmt=
// CHECK: Punctuation: "(" [13:3 - 13:4] ParenExpr=
// CHECK: Identifier: "x" [13:4 - 13:5] DeclRefExpr=x:11:14
// CHECK: Punctuation: ")" [13:5 - 13:6] ParenExpr=
// CHECK: Punctuation: "++" [13:6 - 13:8] DeclRefExpr=operator++:9:5
// CHECK: Punctuation: ";" [13:8 - 13:9] CompoundStmt=
// CHECK: Punctuation: "}" [14:1 - 14:2] CompoundStmt=
// CHECK: Keyword: "struct" [16:1 - 16:7] StructDecl=S1:16:8 (Definition)
// CHECK: Identifier: "S1" [16:8 - 16:10] StructDecl=S1:16:8 (Definition)
// CHECK: Punctuation: "{" [16:11 - 16:12] StructDecl=S1:16:8 (Definition)
// CHECK: Keyword: "void" [16:13 - 16:17] CXXMethod=f:16:18
// CHECK: Identifier: "f" [16:18 - 16:19] CXXMethod=f:16:18
// CHECK: Punctuation: "(" [16:19 - 16:20] CXXMethod=f:16:18
// CHECK: Punctuation: ")" [16:20 - 16:21] CXXMethod=f:16:18
// CHECK: Punctuation: ";" [16:21 - 16:22] StructDecl=S1:16:8 (Definition)
// CHECK: Punctuation: "}" [16:23 - 16:24] StructDecl=S1:16:8 (Definition)
// CHECK: Punctuation: ";" [16:24 - 16:25]
// CHECK: Keyword: "struct" [17:1 - 17:7] StructDecl=S2:17:8 (Definition)
// CHECK: Identifier: "S2" [17:8 - 17:10] StructDecl=S2:17:8 (Definition)
// CHECK: Punctuation: "{" [17:11 - 17:12] StructDecl=S2:17:8 (Definition)
// CHECK: Identifier: "S1" [17:13 - 17:15] TypeRef=struct S1:16:8
// CHECK: Punctuation: "*" [17:16 - 17:17] CXXMethod=operator->:17:17
// CHECK: Keyword: "operator" [17:17 - 17:25] CXXMethod=operator->:17:17
// CHECK: Punctuation: "->" [17:25 - 17:27] CXXMethod=operator->:17:17
// CHECK: Punctuation: "(" [17:27 - 17:28] CXXMethod=operator->:17:17
// CHECK: Punctuation: ")" [17:28 - 17:29] CXXMethod=operator->:17:17
// CHECK: Punctuation: ";" [17:29 - 17:30] StructDecl=S2:17:8 (Definition)
// CHECK: Punctuation: "}" [17:31 - 17:32] StructDecl=S2:17:8 (Definition)
// CHECK: Punctuation: ";" [17:32 - 17:33]
// CHECK: Keyword: "void" [18:1 - 18:5] FunctionDecl=test3:18:6 (Definition)
// CHECK: Identifier: "test3" [18:6 - 18:11] FunctionDecl=test3:18:6 (Definition)
// CHECK: Punctuation: "(" [18:11 - 18:12] FunctionDecl=test3:18:6 (Definition)
// CHECK: Identifier: "S2" [18:12 - 18:14] TypeRef=struct S2:17:8
// CHECK: Identifier: "s2" [18:15 - 18:17] ParmDecl=s2:18:15 (Definition)
// CHECK: Punctuation: ")" [18:17 - 18:18] FunctionDecl=test3:18:6 (Definition)
// CHECK: Punctuation: "{" [18:19 - 18:20] CompoundStmt=
// CHECK: Identifier: "s2" [19:3 - 19:5] DeclRefExpr=s2:18:15
// CHECK: Punctuation: "->" [19:5 - 19:7] DeclRefExpr=operator->:17:17
// CHECK: Identifier: "f" [19:7 - 19:8] MemberRefExpr=f:16:18
// CHECK: Punctuation: "(" [19:8 - 19:9] CallExpr=f:16:18
// CHECK: Punctuation: ")" [19:9 - 19:10] CallExpr=f:16:18
// CHECK: Punctuation: ";" [19:10 - 19:11] CompoundStmt=
// CHECK: Identifier: "X" [20:3 - 20:4] TypeRef=struct X:7:8
// CHECK: Identifier: "foo" [20:5 - 20:8] VarDecl=foo:20:5 (Definition)
// CHECK: Punctuation: ";" [20:8 - 20:9] DeclStmt=
// CHECK: Punctuation: "}" [21:1 - 21:2] CompoundStmt=
// CHECK: Keyword: "template" [23:1 - 23:9] ClassTemplate=TS:24:8 (Definition)
// CHECK: Punctuation: "<" [23:10 - 23:11] ClassTemplate=TS:24:8 (Definition)
// CHECK: Keyword: "bool" [23:11 - 23:15] NonTypeTemplateParameter=tfn:23:18 (Definition)
// CHECK: Punctuation: "(" [23:16 - 23:17] NonTypeTemplateParameter=tfn:23:18 (Definition)
// CHECK: Punctuation: "*" [23:17 - 23:18] NonTypeTemplateParameter=tfn:23:18 (Definition)
// CHECK: Identifier: "tfn" [23:18 - 23:21] NonTypeTemplateParameter=tfn:23:18 (Definition)
// CHECK: Punctuation: ")" [23:21 - 23:22] NonTypeTemplateParameter=tfn:23:18 (Definition)
// CHECK: Punctuation: "(" [23:22 - 23:23] NonTypeTemplateParameter=tfn:23:18 (Definition)
// CHECK: Identifier: "X" [23:23 - 23:24] TypeRef=struct X:7:8
// CHECK: Punctuation: "*" [23:24 - 23:25] ParmDecl=:23:25 (Definition)
// CHECK: Punctuation: ")" [23:25 - 23:26] NonTypeTemplateParameter=tfn:23:18 (Definition)
// CHECK: Punctuation: ">" [23:26 - 23:27] ClassTemplate=TS:24:8 (Definition)
// CHECK: Keyword: "struct" [24:1 - 24:7] ClassTemplate=TS:24:8 (Definition)
// CHECK: Identifier: "TS" [24:8 - 24:10] ClassTemplate=TS:24:8 (Definition)
// CHECK: Punctuation: "{" [24:11 - 24:12] ClassTemplate=TS:24:8 (Definition)
// CHECK: Keyword: "void" [25:3 - 25:7] CXXMethod=foo:25:8
// CHECK: Identifier: "foo" [25:8 - 25:11] CXXMethod=foo:25:8
// CHECK: Punctuation: "(" [25:11 - 25:12] CXXMethod=foo:25:8
// CHECK: Punctuation: ")" [25:12 - 25:13] CXXMethod=foo:25:8
// CHECK: Punctuation: ";" [25:13 - 25:14] ClassTemplate=TS:24:8 (Definition)
// CHECK: Punctuation: "}" [26:1 - 26:2] ClassTemplate=TS:24:8 (Definition)
// CHECK: Punctuation: ";" [26:2 - 26:3]
// CHECK: Keyword: "template" [28:1 - 28:9] CXXMethod=foo:29:15 (Definition)
// CHECK: Punctuation: "<" [28:10 - 28:11] CXXMethod=foo:29:15 (Definition)
// CHECK: Keyword: "bool" [28:11 - 28:15] NonTypeTemplateParameter=tfn:28:18 (Definition)
// CHECK: Punctuation: "(" [28:16 - 28:17] NonTypeTemplateParameter=tfn:28:18 (Definition)
// CHECK: Punctuation: "*" [28:17 - 28:18] NonTypeTemplateParameter=tfn:28:18 (Definition)
// CHECK: Identifier: "tfn" [28:18 - 28:21] NonTypeTemplateParameter=tfn:28:18 (Definition)
// CHECK: Punctuation: ")" [28:21 - 28:22] NonTypeTemplateParameter=tfn:28:18 (Definition)
// CHECK: Punctuation: "(" [28:22 - 28:23] NonTypeTemplateParameter=tfn:28:18 (Definition)
// CHECK: Identifier: "X" [28:23 - 28:24] TypeRef=struct X:7:8
// CHECK: Punctuation: "*" [28:24 - 28:25] ParmDecl=:28:25 (Definition)
// CHECK: Punctuation: ")" [28:25 - 28:26] NonTypeTemplateParameter=tfn:28:18 (Definition)
// CHECK: Punctuation: ">" [28:26 - 28:27] CXXMethod=foo:29:15 (Definition)
// CHECK: Keyword: "void" [29:1 - 29:5] CXXMethod=foo:29:15 (Definition)
// CHECK: Identifier: "TS" [29:6 - 29:8] TemplateRef=TS:24:8
// CHECK: Punctuation: "<" [29:8 - 29:9] CXXMethod=foo:29:15 (Definition)
// CHECK: Identifier: "tfn" [29:9 - 29:12] DeclRefExpr=tfn:28:18
// CHECK: Punctuation: ">" [29:12 - 29:13] CXXMethod=foo:29:15 (Definition)
// CHECK: Punctuation: "::" [29:13 - 29:15] CXXMethod=foo:29:15 (Definition)
// CHECK: Identifier: "foo" [29:15 - 29:18] CXXMethod=foo:29:15 (Definition)
// CHECK: Punctuation: "(" [29:18 - 29:19] CXXMethod=foo:29:15 (Definition)
// CHECK: Punctuation: ")" [29:19 - 29:20] CXXMethod=foo:29:15 (Definition)
// CHECK: Punctuation: "{" [29:21 - 29:22] CompoundStmt=
// CHECK: Punctuation: "}" [29:22 - 29:23] CompoundStmt=
// CHECK: Punctuation: "~" [37:3 - 37:4] CXXDestructor=~C:37:3
// CHECK: Identifier: "C" [37:4 - 37:5] CXXDestructor=~C:37:3
// RUN: env LIBCLANG_DISABLE_CRASH_RECOVERY=1 c-index-test -test-annotate-tokens=%s:32:1:32:13 %s | FileCheck %s -check-prefix=CHECK2
// CHECK2: Keyword: "if" [32:3 - 32:5] IfStmt=
// CHECK2: Punctuation: "(" [32:6 - 32:7] IfStmt=
// CHECK2: Keyword: "int" [32:7 - 32:10] VarDecl=p:32:11 (Definition)
// CHECK2: Identifier: "p" [32:11 - 32:12] VarDecl=p:32:11 (Definition)
// CHECK2: Punctuation: "=" [32:13 - 32:14] VarDecl=p:32:11 (Definition)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/werror.c
|
inline int *get_int_ptr(float *fp) {
return fp;
}
#ifdef FATAL
void fatal(int);
void fatal(float);
#endif
// RUN: c-index-test -write-pch %t.pch -Werror %s
// RUN: c-index-test -write-pch %t.pch -DFATAL -Werror %s
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/load-decls.c
|
enum Color {
Red,
Green,
Blue,
Rouge = Red
};
void PR17970(void (*)(int), float);
// RUN: c-index-test -test-load-source all %s | FileCheck %s
// CHECK: load-decls.c:1:6: EnumDecl=Color:1:6 (Definition) Extent=[1:1 - 7:2]
// CHECK: load-decls.c:2:3: EnumConstantDecl=Red:2:3 (Definition) Extent=[2:3 - 2:6]
// CHECK: load-decls.c:3:3: EnumConstantDecl=Green:3:3 (Definition) Extent=[3:3 - 3:8]
// CHECK: load-decls.c:4:3: EnumConstantDecl=Blue:4:3 (Definition) Extent=[4:3 - 4:7]
// CHECK: load-decls.c:6:3: EnumConstantDecl=Rouge:6:3 (Definition) Extent=[6:3 - 6:14]
// CHECK: load-decls.c:6:11: DeclRefExpr=Red:2:3 Extent=[6:11 - 6:14]
//
// CHECK: load-decls.c:9:6: FunctionDecl=PR17970:9:6 Extent=[9:1 - 9:35]
// CHECK: load-decls.c:9:21: ParmDecl=:9:21 (Definition) Extent=[9:14 - 9:27]
// CHECK: load-decls.c:9:26: ParmDecl=:9:26 (Definition) Extent=[9:23 - 9:26]
// CHECK: load-decls.c:9:34: ParmDecl=:9:34 (Definition) Extent=[9:29 - 9:34]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/in-class-init.cpp
|
struct S {
int field = 2;
};
// RUN: c-index-test -test-load-source all -std=c++11 %s | FileCheck %s
// CHECK: 2:7: FieldDecl=field:2:7 (Definition) Extent=[2:3 - 2:16]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/print-type.cpp
|
namespace outer {
template<typename T>
struct Foo {
T t;
};
template <typename T, unsigned U, template<typename> class W>
struct Baz { };
template <typename... T>
struct Qux { };
namespace inner {
struct Bar {
Bar(outer::Foo<bool>* foo) { }
typedef int FooType;
int *p;
int *f(int *p, char *x, FooType z) {
const FooType w = z;
return p + z;
}
typedef double OtherType;
typedef int ArrayType[5];
Baz<int, 1, Foo> baz;
Qux<int, char*, Foo<int>> qux;
};
}
}
template <typename T>
T tbar(int);
template <typename T>
T tbar(int[5]);
template <typename T, int size>
T tbar(int[size]);
void foo(int i, int incomplete_array[]) { int variable_array[i]; }
struct Blob {
int i;
int j;
};
int Blob::*member_pointer;
// RUN: c-index-test -test-print-type %s -std=c++11 | FileCheck %s
// CHECK: Namespace=outer:1:11 (Definition) [type=] [typekind=Invalid] [isPOD=0]
// CHECK: ClassTemplate=Foo:4:8 (Definition) [type=] [typekind=Invalid] [isPOD=0]
// CHECK: TemplateTypeParameter=T:3:19 (Definition) [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0]
// CHECK: FieldDecl=t:5:5 (Definition) [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0]
// CHECK: TypeRef=T:3:19 [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0]
// CHECK: ClassTemplate=Baz:9:8 (Definition) [type=] [typekind=Invalid] [isPOD=0]
// CHECK: TemplateTypeParameter=T:8:20 (Definition) [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0]
// CHECK: NonTypeTemplateParameter=U:8:32 (Definition) [type=unsigned int] [typekind=UInt] [isPOD=1]
// CHECK: TemplateTemplateParameter=W:8:60 (Definition) [type=] [typekind=Invalid] [isPOD=0]
// CHECK: Namespace=inner:14:11 (Definition) [type=] [typekind=Invalid] [isPOD=0]
// CHECK: StructDecl=Bar:16:8 (Definition) [type=outer::inner::Bar] [typekind=Record] [isPOD=0] [nbFields=3]
// CHECK: CXXConstructor=Bar:17:3 (Definition) [type=void (outer::Foo<bool> *){{.*}}] [typekind=FunctionProto] [canonicaltype=void (outer::Foo<bool> *){{.*}}] [canonicaltypekind=FunctionProto] [resulttype=void] [resulttypekind=Void] [args= [outer::Foo<bool> *] [Pointer]] [isPOD=0]
// CHECK: ParmDecl=foo:17:25 (Definition) [type=outer::Foo<bool> *] [typekind=Pointer] [canonicaltype=outer::Foo<bool> *] [canonicaltypekind=Pointer] [isPOD=1] [pointeetype=outer::Foo<bool>] [pointeekind=Unexposed]
// CHECK: NamespaceRef=outer:1:11 [type=] [typekind=Invalid] [isPOD=0]
// CHECK: TemplateRef=Foo:4:8 [type=] [typekind=Invalid] [isPOD=0]
// CHECK: CompoundStmt= [type=] [typekind=Invalid] [isPOD=0]
// CHECK: TypedefDecl=FooType:19:15 (Definition) [type=FooType] [typekind=Typedef] [canonicaltype=int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: FieldDecl=p:20:8 (Definition) [type=int *] [typekind=Pointer] [isPOD=1] [pointeetype=int] [pointeekind=Int]
// CHECK: CXXMethod=f:21:8 (Definition) [type=int *(int *, char *, FooType){{.*}}] [typekind=FunctionProto] [canonicaltype=int *(int *, char *, int){{.*}}] [canonicaltypekind=FunctionProto] [resulttype=int *] [resulttypekind=Pointer] [args= [int *] [Pointer] [char *] [Pointer] [FooType] [Typedef]] [isPOD=0]
// CHECK: ParmDecl=p:21:15 (Definition) [type=int *] [typekind=Pointer] [isPOD=1] [pointeetype=int] [pointeekind=Int]
// CHECK: ParmDecl=x:21:24 (Definition) [type=char *] [typekind=Pointer] [isPOD=1] [pointeetype=char] [pointeekind=Char_{{[US]}}]
// CHECK: ParmDecl=z:21:35 (Definition) [type=FooType] [typekind=Typedef] [canonicaltype=int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: TypeRef=FooType:19:15 [type=FooType] [typekind=Typedef] [canonicaltype=int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: CompoundStmt= [type=] [typekind=Invalid] [isPOD=0]
// CHECK: DeclStmt= [type=] [typekind=Invalid] [isPOD=0]
// CHECK: VarDecl=w:22:19 (Definition) [type=const FooType] [typekind=Typedef] const [canonicaltype=const int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: TypeRef=FooType:19:15 [type=FooType] [typekind=Typedef] [canonicaltype=int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: UnexposedExpr=z:21:35 [type=FooType] [typekind=Typedef] [canonicaltype=int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: DeclRefExpr=z:21:35 [type=FooType] [typekind=Typedef] [canonicaltype=int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: ReturnStmt= [type=] [typekind=Invalid] [isPOD=0]
// CHECK: BinaryOperator= [type=int *] [typekind=Pointer] [isPOD=1] [pointeetype=int] [pointeekind=Int]
// CHECK: UnexposedExpr=p:21:15 [type=int *] [typekind=Pointer] [isPOD=1] [pointeetype=int] [pointeekind=Int]
// CHECK: DeclRefExpr=p:21:15 [type=int *] [typekind=Pointer] [isPOD=1] [pointeetype=int] [pointeekind=Int]
// CHECK: UnexposedExpr=z:21:35 [type=FooType] [typekind=Typedef] [canonicaltype=int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: DeclRefExpr=z:21:35 [type=FooType] [typekind=Typedef] [canonicaltype=int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: TypedefDecl=OtherType:25:18 (Definition) [type=OtherType] [typekind=Typedef] [canonicaltype=double] [canonicaltypekind=Double] [isPOD=1]
// CHECK: TypedefDecl=ArrayType:26:15 (Definition) [type=ArrayType] [typekind=Typedef] [canonicaltype=int [5]] [canonicaltypekind=ConstantArray] [isPOD=1]
// CHECK: IntegerLiteral= [type=int] [typekind=Int] [isPOD=1]
// CHECK: FieldDecl=baz:27:20 (Definition) [type=Baz<int, 1, Foo>] [typekind=Unexposed] [canonicaltype=outer::Baz<int, 1, Foo>] [canonicaltypekind=Record] [templateargs/3= [type=int] [typekind=Int]] [isPOD=1]
// CHECK: TemplateRef=Baz:9:8 [type=] [typekind=Invalid] [isPOD=0]
// CHECK: IntegerLiteral= [type=int] [typekind=Int] [isPOD=1]
// CHECK: TemplateRef=Foo:4:8 [type=] [typekind=Invalid] [isPOD=0]
// CHECK: FieldDecl=qux:28:29 (Definition) [type=Qux<int, char *, Foo<int> >] [typekind=Unexposed] [canonicaltype=outer::Qux<int, char *, outer::Foo<int> >] [canonicaltypekind=Record] [templateargs/1=] [isPOD=1]
// CHECK: TemplateRef=Qux:12:8 [type=] [typekind=Invalid] [isPOD=0]
// CHECK: TemplateRef=Foo:4:8 [type=] [typekind=Invalid] [isPOD=0]
// CHECK: FunctionTemplate=tbar:35:3 [type=T (int)] [typekind=FunctionProto] [canonicaltype=type-parameter-0-0 (int)] [canonicaltypekind=FunctionProto] [resulttype=T] [resulttypekind=Unexposed] [isPOD=0]
// CHECK: TemplateTypeParameter=T:34:20 (Definition) [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0]
// CHECK: TypeRef=T:34:20 [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0]
// CHECK: ParmDecl=:35:11 (Definition) [type=int] [typekind=Int] [isPOD=1]
// CHECK: FunctionTemplate=tbar:38:3 [type=T (int *)] [typekind=FunctionProto] [canonicaltype=type-parameter-0-0 (int *)] [canonicaltypekind=FunctionProto] [resulttype=T] [resulttypekind=Unexposed] [isPOD=0]
// CHECK: TemplateTypeParameter=T:37:20 (Definition) [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0]
// CHECK: TypeRef=T:37:20 [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0]
// CHECK: ParmDecl=:38:11 (Definition) [type=int [5]] [typekind=ConstantArray] [isPOD=1]
// CHECK: IntegerLiteral= [type=int] [typekind=Int] [isPOD=1]
// CHECK: FunctionTemplate=tbar:41:3 [type=T (int *)] [typekind=FunctionProto] [canonicaltype=type-parameter-0-0 (int *)] [canonicaltypekind=FunctionProto] [resulttype=T] [resulttypekind=Unexposed] [isPOD=0]
// CHECK: TemplateTypeParameter=T:40:20 (Definition) [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0]
// CHECK: NonTypeTemplateParameter=size:40:27 (Definition) [type=int] [typekind=Int] [isPOD=1]
// CHECK: TypeRef=T:40:20 [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0]
// CHECK: ParmDecl=:41:11 (Definition) [type=int [size]] [typekind=DependentSizedArray] [isPOD=0]
// CHECK: DeclRefExpr=size:40:27 [type=int] [typekind=Int] [isPOD=1]
// CHECK: FunctionDecl=foo:43:6 (Definition) [type=void (int, int *)] [typekind=FunctionProto] [canonicaltype=void (int, int *)] [canonicaltypekind=FunctionProto] [resulttype=void] [resulttypekind=Void] [args= [int] [Int] [int []] [IncompleteArray]] [isPOD=0]
// CHECK: ParmDecl=i:43:14 (Definition) [type=int] [typekind=Int] [isPOD=1]
// CHECK: ParmDecl=incomplete_array:43:21 (Definition) [type=int []] [typekind=IncompleteArray] [isPOD=1]
// CHECK: CompoundStmt= [type=] [typekind=Invalid] [isPOD=0]
// CHECK: DeclStmt= [type=] [typekind=Invalid] [isPOD=0]
// CHECK: VarDecl=variable_array:43:47 (Definition) [type=int [i]] [typekind=VariableArray] [isPOD=1]
// CHECK: DeclRefExpr=i:43:14 [type=int] [typekind=Int] [isPOD=1]
// CHECK: StructDecl=Blob:45:8 (Definition) [type=Blob] [typekind=Record] [isPOD=1] [nbFields=2]
// CHECK: FieldDecl=i:46:7 (Definition) [type=int] [typekind=Int] [isPOD=1]
// CHECK: VarDecl=member_pointer:49:12 (Definition) [type=int Blob::*] [typekind=MemberPointer] [isPOD=1]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/file-includes.c
|
#include "targeted-top.h"
#include "targeted-preamble.h"
extern int LocalVar;
int LocalVar;
// RUN: c-index-test -write-pch %t.h.pch %S/targeted-top.h -Xclang -detailed-preprocessing-record
// RUN: c-index-test -file-includes-in=%s %s | FileCheck %s -check-prefix=LOCAL
// RUN: env CINDEXTEST_EDITING=1 c-index-test -file-includes-in=%s %s | FileCheck %s -check-prefix=LOCAL
// RUN: c-index-test -file-includes-in=%s %s -include %t.h | FileCheck %s -check-prefix=LOCAL
// RUN: env CINDEXTEST_EDITING=1 c-index-test -file-includes-in=%s %s -include %t.h | FileCheck %s -check-prefix=LOCAL
// LOCAL: inclusion directive=targeted-top.h ({{.*[/\\]}}test{{[/\\]}}Index{{[/\\]}}targeted-top.h) {{.*}}=[2:1 - 2:2]
// LOCAL: inclusion directive=targeted-preamble.h ({{.*[/\\]}}test{{[/\\]}}Index{{[/\\]}}targeted-preamble.h) =[3:1 - 3:2]
// RUN: c-index-test -file-includes-in=%S/targeted-top.h %s | FileCheck %s -check-prefix=TOP
// RUN: env CINDEXTEST_EDITING=1 c-index-test -file-includes-in=%S/targeted-top.h %s | FileCheck %s -check-prefix=TOP
// RUN: c-index-test -file-includes-in=%S/targeted-top.h %s -include %t.h | FileCheck %s -check-prefix=TOP
// RUN: env CINDEXTEST_EDITING=1 c-index-test -file-includes-in=%S/targeted-top.h %s -include %t.h | FileCheck %s -check-prefix=TOP
// TOP: inclusion directive=targeted-nested1.h ({{.*[/\\]}}test{{[/\\]}}Index{{[/\\]}}targeted-nested1.h) =[5:1 - 5:2]
// TOP: inclusion directive=targeted-fields.h ({{.*[/\\]}}test{{[/\\]}}Index{{[/\\]}}targeted-fields.h) =[16:1 - 16:2]
// rdar://13803893
// RUN: c-index-test -file-includes-in=%S/Inputs/empty.h %S/Inputs/empty.h
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/skipped-ranges.c
|
#define cool
#if defined(cool)
#if defined(really_cool)
#endif // really_cool
#elif defined(hot)
// hot
#endif // trailing comment
#ifndef cool
#ifndef uncool
int probably_hot = 1;
#endif // uncool
#endif // cool
// RUN: env CINDEXTEST_SHOW_SKIPPED_RANGES=1 c-index-test -test-annotate-tokens=%s:1:1:16:1 %s | FileCheck %s
// CHECK: Skipping: [5:2 - 6:7]
// CHECK: Skipping: [8:2 - 12:7]
// CHECK: Skipping: [14:2 - 20:7]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/retain-target-options.c
|
// RUN: c-index-test -test-load-source all -target x86_64-apple-darwin10.0.0 -msse4.1 %s 2>&1 | FileCheck %s
// RUN: c-index-test -test-load-source-reparse 1 all -target x86_64-apple-darwin10.0.0 -msse4.1 %s 2>&1 | FileCheck %s
// RUN: c-index-test -test-load-source-reparse 5 all -target x86_64-apple-darwin10.0.0 -msse4.1 %s 2>&1 | FileCheck %s
// CHECK: error: SSE4_1 used
#if defined(__SSE4_1__)
#error SSE4_1 used
#endif
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/comment-c-decls.c
|
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 %s > %t/out
// RUN: FileCheck %s < %t/out
// Ensure that XML we generate is not invalid.
// RUN: FileCheck %s -check-prefix=WRONG < %t/out
// WRONG-NOT: CommentXMLInvalid
// rdar://12378714
/**
* \brief Aaa.
*/
int global_function();
// CHECK: <Declaration>int global_function()</Declaration>
/**
* \param x1 Aaa.
*/
extern void external_function(int x1);
// CHECK: <Declaration>extern void external_function(int x1)</Declaration>
/**
* \brief global variable;
*/
int global_variable;
// CHECK: <Declaration>int global_variable</Declaration>
/**
* \brief local variable;
*/
static int static_variable;
// CHECK: <Declaration>static int static_variable</Declaration>
/**
* \brief external variable
*/
extern int external_variable;
// CHECK: <Declaration>extern int external_variable</Declaration>
int global_function() {
/**
* \brief a local variable
*/
int local = 10;
return local;
}
// CHECK: <Declaration>int global_function()</Declaration>
// CHECK: <Declaration>int local = 10</Declaration>
/**
* \brief initialized decl.
*/
int initialized_global = 100;
// CHECK: <Declaration>int initialized_global = 100</Declaration>
/**
* \brief typedef example
*/
typedef int INT_T;
// CHECK: <Declaration>typedef int INT_T</Declaration>
/**
* \brief aggregate type example
*/
struct S {
/**
* \brief iS1;
*/
int iS1;
/**
* \brief dS1;
*/
double dS1;
};
// CHECK: <Declaration>struct S {}</Declaration>
// CHECK: <Declaration>int iS1</Declaration>
// CHECK: <Declaration>double dS1</Declaration>
/**
* \brief enum e;
*/
enum e {
One,
/**
* \brief Two;
*/
Two,
Three
};
// CHECK: <Declaration>enum e {}</Declaration>
// CHECK: <Declaration>Two</Declaration>
/**
*\brief block declaration
*/
int (^Block) (int i, int j);
// CHECK: <Declaration>int (^Block)(int, int)</Declaration>
/**
*\brief block declaration
*/
int (^Block1) (int i, int j) = ^(int i, int j) { return i + j; };
// CHECK: <Declaration>int (^Block1)(int, int) = ^(int i, int j) {\n}</Declaration>
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-functor-call.cpp
|
// Note: the run lines follow their respective tests, since line/column
// matter in this test.
template<class V>
struct S {
void operator()(int) const {}
template<class T> void operator()(T) const {}
template<class T> void operator()(V, T, T) const {}
template<class T> const S<T> *operator()(const S<T> &s) const { return &s; }
};
void foo(S<void *> &s) { s(42); }
int main() {
S<void *> s;
s(42);
s(s);
s(0, s, s);
(*S<void *>()(S<int>()))(42, 42, 42);
s(42,);
s(s,);
s(0, 42, 42,);
}
// RUN: c-index-test -code-completion-at=%s:16:5 %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter int}{RightParen )} (1)
// CHECK-CC1: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter T}{RightParen )} (1)
// CHECK-CC1: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter void *}{Comma , }{Placeholder T}{Comma , }{Placeholder T}{RightParen )} (1)
// CHECK-CC1: Completion contexts:
// CHECK-CC1-NEXT: Any type
// CHECK-CC1-NEXT: Any value
// CHECK-CC1-NEXT: Enum tag
// CHECK-CC1-NEXT: Union tag
// CHECK-CC1-NEXT: Struct tag
// CHECK-CC1-NEXT: Class name
// CHECK-CC1-NEXT: Nested name specifier
// CHECK-CC1-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:17:5 %s | FileCheck -check-prefix=CHECK-CC2 %s
// CHECK-CC2: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter int}{RightParen )} (1)
// CHECK-CC2: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter T}{RightParen )} (1)
// CHECK-CC2: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter void *}{Comma , }{Placeholder T}{Comma , }{Placeholder T}{RightParen )} (1)
// CHECK-CC2: Completion contexts:
// CHECK-CC2-NEXT: Any type
// CHECK-CC2-NEXT: Any value
// CHECK-CC2-NEXT: Enum tag
// CHECK-CC2-NEXT: Union tag
// CHECK-CC2-NEXT: Struct tag
// CHECK-CC2-NEXT: Class name
// CHECK-CC2-NEXT: Nested name specifier
// CHECK-CC2-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:18:5 %s | FileCheck -check-prefix=CHECK-CC3 %s
// CHECK-CC3: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter int}{RightParen )} (1)
// CHECK-CC3: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter T}{RightParen )} (1)
// CHECK-CC3: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter void *}{Comma , }{Placeholder T}{Comma , }{Placeholder T}{RightParen )} (1)
// CHECK-CC3: Completion contexts:
// CHECK-CC3-NEXT: Any type
// CHECK-CC3-NEXT: Any value
// CHECK-CC3-NEXT: Enum tag
// CHECK-CC3-NEXT: Union tag
// CHECK-CC3-NEXT: Struct tag
// CHECK-CC3-NEXT: Class name
// CHECK-CC3-NEXT: Nested name specifier
// CHECK-CC3-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:18:7 %s | FileCheck -check-prefix=CHECK-CC4 %s
// CHECK-CC4: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{Placeholder void *}{Comma , }{CurrentParameter T}{Comma , }{Placeholder T}{RightParen )} (1)
// CHECK-CC4: Completion contexts:
// CHECK-CC4-NEXT: Any type
// CHECK-CC4-NEXT: Any value
// CHECK-CC4-NEXT: Enum tag
// CHECK-CC4-NEXT: Union tag
// CHECK-CC4-NEXT: Struct tag
// CHECK-CC4-NEXT: Class name
// CHECK-CC4-NEXT: Nested name specifier
// CHECK-CC4-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:18:10 %s | FileCheck -check-prefix=CHECK-CC5 %s
// CHECK-CC5: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{Placeholder void *}{Comma , }{Placeholder S<void *>}{Comma , }{CurrentParameter S<void *>}{RightParen )} (1)
// CHECK-CC5: Completion contexts:
// CHECK-CC5-NEXT: Any type
// CHECK-CC5-NEXT: Any value
// CHECK-CC5-NEXT: Enum tag
// CHECK-CC5-NEXT: Union tag
// CHECK-CC5-NEXT: Struct tag
// CHECK-CC5-NEXT: Class name
// CHECK-CC5-NEXT: Nested name specifier
// CHECK-CC5-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:19:17 %s | FileCheck -check-prefix=CHECK-CC6 %s
// CHECK-CC6: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter int}{RightParen )} (1)
// CHECK-CC6: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter T}{RightParen )} (1)
// CHECK-CC6: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter void *}{Comma , }{Placeholder T}{Comma , }{Placeholder T}{RightParen )} (1)
// CHECK-CC6: OverloadCandidate:{ResultType const S<T> *}{Text operator()}{LeftParen (}{CurrentParameter const S<T> &s}{RightParen )} (1)
// CHECK-CC6: Completion contexts:
// CHECK-CC6-NEXT: Any type
// CHECK-CC6-NEXT: Any value
// CHECK-CC6-NEXT: Enum tag
// CHECK-CC6-NEXT: Union tag
// CHECK-CC6-NEXT: Struct tag
// CHECK-CC6-NEXT: Class name
// CHECK-CC6-NEXT: Nested name specifier
// CHECK-CC6-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:19:28 %s | FileCheck -check-prefix=CHECK-CC7 %s
// CHECK-CC7: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter int}{RightParen )} (1)
// CHECK-CC7: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter T}{RightParen )} (1)
// CHECK-CC7: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter int}{Comma , }{Placeholder T}{Comma , }{Placeholder T}{RightParen )} (1)
// CHECK-CC7: OverloadCandidate:{ResultType const S<T> *}{Text operator()}{LeftParen (}{CurrentParameter const S<T> &s}{RightParen )} (1)
// CHECK-CC7: Completion contexts:
// CHECK-CC7-NEXT: Any type
// CHECK-CC7-NEXT: Any value
// CHECK-CC7-NEXT: Enum tag
// CHECK-CC7-NEXT: Union tag
// CHECK-CC7-NEXT: Struct tag
// CHECK-CC7-NEXT: Class name
// CHECK-CC7-NEXT: Nested name specifier
// CHECK-CC7-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:19:31 %s | FileCheck -check-prefix=CHECK-CC8 %s
// CHECK-CC8: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{Placeholder int}{Comma , }{CurrentParameter T}{Comma , }{Placeholder T}{RightParen )} (1)
// CHECK-CC8: Completion contexts:
// CHECK-CC8-NEXT: Any type
// CHECK-CC8-NEXT: Any value
// CHECK-CC8-NEXT: Enum tag
// CHECK-CC8-NEXT: Union tag
// CHECK-CC8-NEXT: Struct tag
// CHECK-CC8-NEXT: Class name
// CHECK-CC8-NEXT: Nested name specifier
// CHECK-CC8-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:19:35 %s | FileCheck -check-prefix=CHECK-CC9 %s
// CHECK-CC9: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{Placeholder int}{Comma , }{Placeholder int}{Comma , }{CurrentParameter int}{RightParen )} (1)
// CHECK-CC9: Completion contexts:
// CHECK-CC9-NEXT: Any type
// CHECK-CC9-NEXT: Any value
// CHECK-CC9-NEXT: Enum tag
// CHECK-CC9-NEXT: Union tag
// CHECK-CC9-NEXT: Struct tag
// CHECK-CC9-NEXT: Class name
// CHECK-CC9-NEXT: Nested name specifier
// CHECK-CC9-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:21:8 %s | FileCheck -check-prefix=CHECK-CC10 %s
// CHECK-CC10: Completion contexts:
// CHECK-CC10-NEXT: Any type
// CHECK-CC10-NEXT: Any value
// CHECK-CC10-NEXT: Enum tag
// CHECK-CC10-NEXT: Union tag
// CHECK-CC10-NEXT: Struct tag
// CHECK-CC10-NEXT: Class name
// CHECK-CC10-NEXT: Nested name specifier
// CHECK-CC10-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:22:7 %s | FileCheck -check-prefix=CHECK-CC11 %s
// CHECK-CC11: Completion contexts:
// CHECK-CC11-NEXT: Any type
// CHECK-CC11-NEXT: Any value
// CHECK-CC11-NEXT: Enum tag
// CHECK-CC11-NEXT: Union tag
// CHECK-CC11-NEXT: Struct tag
// CHECK-CC11-NEXT: Class name
// CHECK-CC11-NEXT: Nested name specifier
// CHECK-CC11-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:23:15 %s | FileCheck -check-prefix=CHECK-CC12 %s
// CHECK-CC12: Completion contexts:
// CHECK-CC12-NEXT: Any type
// CHECK-CC12-NEXT: Any value
// CHECK-CC12-NEXT: Enum tag
// CHECK-CC12-NEXT: Union tag
// CHECK-CC12-NEXT: Struct tag
// CHECK-CC12-NEXT: Class name
// CHECK-CC12-NEXT: Nested name specifier
// CHECK-CC12-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:12:28 %s | FileCheck -check-prefix=CHECK-CC13 %s
// CHECK-CC13: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter int}{RightParen )} (1)
// CHECK-CC13: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter T}{RightParen )} (1)
// CHECK-CC13: OverloadCandidate:{ResultType void}{Text operator()}{LeftParen (}{CurrentParameter void *}{Comma , }{Placeholder T}{Comma , }{Placeholder T}{RightParen )} (1)
// CHECK-CC13: Completion contexts:
// CHECK-CC13-NEXT: Any type
// CHECK-CC13-NEXT: Any value
// CHECK-CC13-NEXT: Enum tag
// CHECK-CC13-NEXT: Union tag
// CHECK-CC13-NEXT: Struct tag
// CHECK-CC13-NEXT: Class name
// CHECK-CC13-NEXT: Nested name specifier
// CHECK-CC13-NEXT: Objective-C interface
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/crash-recovery-reparse.c
|
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_PREAMBLE_FILE=%t-preamble.pch \
// RUN: not c-index-test -test-load-source-reparse 1 local \
// RUN: -remap-file="%s,%S/Inputs/crash-recovery-reparse-remap.c" \
// RUN: %s 2> %t.err
// RUN: FileCheck < %t.err -check-prefix=CHECK-REPARSE-SOURCE-CRASH %s
// RUN: test ! -e $t-preamble.pch
// CHECK-REPARSE-SOURCE-CRASH: Unable to reparse translation unit
//
// REQUIRES: crash-recovery
#warning parsing original file
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/nested-binaryoperators.cpp
|
typedef unsigned int uint;
int foo(uint c) {
return ((c >= 0x41 && c <= 0x5a)
|| (c >= 0x61 && c <= 0x7a)
|| (c >= 0xc0 && c <= 0xd6)
|| (c >= 0xd8 && c <= 0xf6)
|| (c >= 0xf8 && c <= 0xff)
|| (c >= 0x100 && c <= 0x131)
|| (c >= 0x134 && c <= 0x13e)
|| (c >= 0x141 && c <= 0x148)
|| (c >= 0x14a && c <= 0x17e)
|| (c >= 0x180 && c <= 0x1c3)
|| (c >= 0x1cd && c <= 0x1f0)
|| (c >= 0x1f4 && c <= 0x1f5)
|| (c >= 0x1fa && c <= 0x217)
|| (c >= 0x250 && c <= 0x2a8)
|| (c >= 0x2bb && c <= 0x2c1)
|| c == 0x386 || (c >= 0x388 && c <= 0x38a)
|| c == 0x38c || (c >= 0x38e && c <= 0x3a1)
|| (c >= 0x3a3 && c <= 0x3ce)
|| (c >= 0x3d0 && c <= 0x3d6)
|| c == 0x3da || c == 0x3dc || c == 0x3de ||
c == 0x3e0 || (c >= 0x3e2 && c <= 0x3f3)
|| (c >= 0x401 && c <= 0x40c)
|| (c >= 0x40e && c <= 0x44f)
|| (c >= 0x451 && c <= 0x45c)
|| (c >= 0x45e && c <= 0x481)
|| (c >= 0x490 && c <= 0x4c4)
|| (c >= 0x4c7 && c <= 0x4c8)
|| (c >= 0x4cb && c <= 0x4cc)
|| (c >= 0x4d0 && c <= 0x4eb)
|| (c >= 0x4ee && c <= 0x4f5)
|| (c >= 0x4f8 && c <= 0x4f9)
|| (c >= 0x531 && c <= 0x556)
|| c == 0x559 || (c >= 0x561 && c <= 0x586)
|| (c >= 0x5d0 && c <= 0x5ea)
|| (c >= 0x5f0 && c <= 0x5f2)
|| (c >= 0x621 && c <= 0x63a)
|| (c >= 0x641 && c <= 0x64a)
|| (c >= 0x671 && c <= 0x6b7)
|| (c >= 0x6ba && c <= 0x6be)
|| (c >= 0x6c0 && c <= 0x6ce)
|| (c >= 0x6d0 && c <= 0x6d3)
|| c == 0x6d5 || (c >= 0x6e5 && c <= 0x6e6)
|| (c >= 0x905 && c <= 0x939)
|| c == 0x93d || (c >= 0x958 && c <= 0x961)
|| (c >= 0x985 && c <= 0x98c)
|| (c >= 0x98f && c <= 0x990)
|| (c >= 0x993 && c <= 0x9a8)
|| (c >= 0x9aa && c <= 0x9b0)
|| c == 0x9b2 || (c >= 0x9b6 && c <= 0x9b9)
|| (c >= 0x9dc && c <= 0x9dd)
|| (c >= 0x9df && c <= 0x9e1)
|| (c >= 0x9f0 && c <= 0x9f1)
|| (c >= 0xa05 && c <= 0xa0a)
|| (c >= 0xa0f && c <= 0xa10)
|| (c >= 0xa13 && c <= 0xa28)
|| (c >= 0xa2a && c <= 0xa30)
|| (c >= 0xa32 && c <= 0xa33)
|| (c >= 0xa35 && c <= 0xa36)
|| (c >= 0xa38 && c <= 0xa39)
|| (c >= 0xa59 && c <= 0xa5c)
|| c == 0xa5e || (c >= 0xa72 && c <= 0xa74)
|| (c >= 0xa85 && c <= 0xa8b)
|| c == 0xa8d || (c >= 0xa8f && c <= 0xa91)
|| (c >= 0xa93 && c <= 0xaa8)
|| (c >= 0xaaa && c <= 0xab0)
|| (c >= 0xab2 && c <= 0xab3)
|| (c >= 0xab5 && c <= 0xab9)
|| c == 0xabd || c == 0xae0 || (c >= 0xb05 && c <= 0xb0c)
|| (c >= 0xb0f && c <= 0xb10)
|| (c >= 0xb13 && c <= 0xb28)
|| (c >= 0xb2a && c <= 0xb30)
|| (c >= 0xb32 && c <= 0xb33)
|| (c >= 0xb36 && c <= 0xb39)
|| c == 0xb3d || (c >= 0xb5c && c <= 0xb5d)
|| (c >= 0xb5f && c <= 0xb61)
|| (c >= 0xb85 && c <= 0xb8a)
|| (c >= 0xb8e && c <= 0xb90)
|| (c >= 0xb92 && c <= 0xb95)
|| (c >= 0xb99 && c <= 0xb9a)
|| c == 0xb9c || (c >= 0xb9e && c <= 0xb9f)
|| (c >= 0xba3 && c <= 0xba4)
|| (c >= 0xba8 && c <= 0xbaa)
|| (c >= 0xbae && c <= 0xbb5)
|| (c >= 0xbb7 && c <= 0xbb9)
|| (c >= 0xc05 && c <= 0xc0c)
|| (c >= 0xc0e && c <= 0xc10)
|| (c >= 0xc12 && c <= 0xc28)
|| (c >= 0xc2a && c <= 0xc33)
|| (c >= 0xc35 && c <= 0xc39)
|| (c >= 0xc60 && c <= 0xc61)
|| (c >= 0xc85 && c <= 0xc8c)
|| (c >= 0xc8e && c <= 0xc90)
|| (c >= 0xc92 && c <= 0xca8)
|| (c >= 0xcaa && c <= 0xcb3)
|| (c >= 0xcb5 && c <= 0xcb9)
|| c == 0xcde || (c >= 0xce0 && c <= 0xce1)
|| (c >= 0xd05 && c <= 0xd0c)
|| (c >= 0xd0e && c <= 0xd10)
|| (c >= 0xd12 && c <= 0xd28)
|| (c >= 0xd2a && c <= 0xd39)
|| (c >= 0xd60 && c <= 0xd61)
|| (c >= 0xe01 && c <= 0xe2e)
|| c == 0xe30 || (c >= 0xe32 && c <= 0xe33)
|| (c >= 0xe40 && c <= 0xe45)
|| (c >= 0xe81 && c <= 0xe82)
|| c == 0xe84 || (c >= 0xe87 && c <= 0xe88)
|| c == 0xe8a || c == 0xe8d || (c >= 0xe94 && c <= 0xe97)
|| (c >= 0xe99 && c <= 0xe9f)
|| (c >= 0xea1 && c <= 0xea3)
|| c == 0xea5 || c == 0xea7 || (c >= 0xeaa && c <= 0xeab)
|| (c >= 0xead && c <= 0xeae)
|| c == 0xeb0 || (c >= 0xeb2 && c <= 0xeb3)
|| c == 0xebd || (c >= 0xec0 && c <= 0xec4)
|| (c >= 0xf40 && c <= 0xf47)
|| (c >= 0xf49 && c <= 0xf69)
|| (c >= 0x10a0 && c <= 0x10c5)
|| (c >= 0x10d0 && c <= 0x10f6)
|| c == 0x1100 || (c >= 0x1102 && c <= 0x1103)
|| (c >= 0x1105 && c <= 0x1107)
|| c == 0x1109 || (c >= 0x110b && c <= 0x110c)
|| (c >= 0x110e && c <= 0x1112)
|| c == 0x113c || c == 0x113e || c == 0x1140 || c == 0x114c ||
c == 0x114e || c == 0x1150 || (c >= 0x1154 && c <= 0x1155)
|| c == 0x1159 || (c >= 0x115f && c <= 0x1161)
|| c == 0x1163 || c == 0x1165 || c == 0x1167 || c == 0x1169 ||
(c >= 0x116d && c <= 0x116e)
|| (c >= 0x1172 && c <= 0x1173)
|| c == 0x1175 || c == 0x119e || c == 0x11a8 || c == 0x11ab ||
(c >= 0x11ae && c <= 0x11af)
|| (c >= 0x11b7 && c <= 0x11b8)
|| c == 0x11ba || (c >= 0x11bc && c <= 0x11c2)
|| c == 0x11eb || c == 0x11f0 || c == 0x11f9 || (c >= 0x1e00 && c <= 0x1e9b)
|| (c >= 0x1ea0 && c <= 0x1ef9)
|| (c >= 0x1f00 && c <= 0x1f15)
|| (c >= 0x1f18 && c <= 0x1f1d)
|| (c >= 0x1f20 && c <= 0x1f45)
|| (c >= 0x1f48 && c <= 0x1f4d)
|| (c >= 0x1f50 && c <= 0x1f57)
|| c == 0x1f59 || c == 0x1f5b || c == 0x1f5d || (c >= 0x1f5f && c <= 0x1f7d)
|| (c >= 0x1f80 && c <= 0x1fb4)
|| (c >= 0x1fb6 && c <= 0x1fbc)
|| c == 0x1fbe || (c >= 0x1fc2 && c <= 0x1fc4)
|| (c >= 0x1fc6 && c <= 0x1fcc)
|| (c >= 0x1fd0 && c <= 0x1fd3)
|| (c >= 0x1fd6 && c <= 0x1fdb)
|| (c >= 0x1fe0 && c <= 0x1fec)
|| (c >= 0x1ff2 && c <= 0x1ff4)
|| (c >= 0x1ff6 && c <= 0x1ffc)
|| c == 0x2126 || (c >= 0x212a && c <= 0x212b)
|| c == 0x212e || (c >= 0x2180 && c <= 0x2182)
|| (c >= 0x3041 && c <= 0x3094)
|| (c >= 0x30a1 && c <= 0x30fa)
|| (c >= 0x3105 && c <= 0x312c)
|| (c >= 0xac00 && c <= 0xd7a3)
|| (c >= 0x4e00 && c <= 0x9fa5)
|| c == 0x3007 || (c >= 0x3021 && c <= 0x3029)
|| (c >= 0x4e00 && c <= 0x9fa5)
|| c == 0x3007 || (c >= 0x3021 && c <= 0x3029));
}
// RUN: c-index-test -test-load-source all %s | FileCheck %s
// CHECK: 1:22: TypedefDecl=uint:1:22 (Definition) Extent=[1:1 - 1:26]
// CHECK: 2:5: FunctionDecl=foo:2:5 (Definition) Extent=[2:1 - 161:2]
// CHECK: 2:14: ParmDecl=c:2:14 (Definition) Extent=[2:9 - 2:15]
// CHECK: 2:9: TypeRef=uint:1:22 Extent=[2:9 - 2:13]
// CHECK: 2:17: CompoundStmt= Extent=[2:17 - 161:2]
// CHECK: 3:3: ReturnStmt= Extent=[3:3 - 160:52]
// CHECK: 3:10: UnexposedExpr= Extent=[3:10 - 160:52]
// CHECK: 3:10: ParenExpr= Extent=[3:10 - 160:52]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 160:51]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 160:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 159:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 158:51]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 158:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 157:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 156:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 155:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 154:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 153:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 152:51]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 152:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 151:51]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 151:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 150:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 149:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 148:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 147:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 146:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 145:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 144:51]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 144:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 143:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 142:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 141:81]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 141:49]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 141:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 141:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 140:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 139:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 138:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 137:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 136:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 135:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 134:81]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 134:49]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 134:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 134:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 133:51]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 133:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 132:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 131:33]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 130:64]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 130:49]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 130:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 130:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 129:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 128:33]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 127:64]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 127:49]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 127:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 127:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 126:51]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 126:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 125:63]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 125:31]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 125:16]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 124:64]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 124:49]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 124:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 124:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 123:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 122:51]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 122:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 121:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 120:51]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 120:19]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 119:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 118:36]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 117:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 116:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 115:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 115:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 114:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 114:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 113:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 112:62]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 112:32]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 112:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 111:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 110:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 109:62]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 109:32]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 109:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 108:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 108:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 107:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 106:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 105:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 105:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 104:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 103:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 102:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 101:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 100:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 99:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 98:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 98:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 97:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 96:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 95:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 94:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 93:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 92:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 91:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 90:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 89:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 88:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 87:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 86:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 85:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 84:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 83:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 82:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 82:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 81:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 80:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 79:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 78:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 77:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 76:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 76:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 75:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 74:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 73:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 72:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 71:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 70:62]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 70:32]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 70:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 69:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 68:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 67:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 66:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 65:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 65:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 64:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 63:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 63:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 62:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 61:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 60:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 59:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 58:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 57:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 56:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 55:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 54:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 53:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 52:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 51:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 51:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 50:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 49:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 48:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 47:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 46:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 46:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 45:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 44:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 44:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 43:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 42:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 41:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 40:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 39:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 38:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 37:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 36:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 35:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 35:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 34:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 33:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 32:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 31:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 30:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 29:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 28:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 27:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 26:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 25:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 24:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 23:45]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 23:15]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 22:46]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 22:32]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 22:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 21:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 20:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 19:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 19:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 18:48]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 18:18]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 17:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 16:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 15:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 14:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 13:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 12:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 11:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 10:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 9:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 8:34]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 7:32]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 6:32]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 5:32]
// CHECK: 3:11: BinaryOperator= Extent=[3:11 - 4:32]
// CHECK: 3:12: BinaryOperator= Extent=[3:12 - 3:34]
// CHECK: 3:12: BinaryOperator= Extent=[3:12 - 3:21]
// CHECK: 3:12: DeclRefExpr=c:2:14 Extent=[3:12 - 3:13]
// CHECK: 3:17: UnexposedExpr= Extent=[3:17 - 3:21]
// CHECK: 3:17: IntegerLiteral= Extent=[3:17 - 3:21]
// CHECK: 3:25: BinaryOperator= Extent=[3:25 - 3:34]
// CHECK: 3:25: DeclRefExpr=c:2:14 Extent=[3:25 - 3:26]
// CHECK: 3:30: UnexposedExpr= Extent=[3:30 - 3:34]
// CHECK: 3:30: IntegerLiteral= Extent=[3:30 - 3:34]
// CHECK: 4:9: BinaryOperator= Extent=[4:9 - 4:31]
// CHECK: 4:9: BinaryOperator= Extent=[4:9 - 4:18]
// CHECK: 4:9: DeclRefExpr=c:2:14 Extent=[4:9 - 4:10]
// CHECK: 4:14: UnexposedExpr= Extent=[4:14 - 4:18]
// CHECK: 4:14: IntegerLiteral= Extent=[4:14 - 4:18]
// CHECK: 4:22: BinaryOperator= Extent=[4:22 - 4:31]
// CHECK: 4:22: DeclRefExpr=c:2:14 Extent=[4:22 - 4:23]
// CHECK: 4:27: UnexposedExpr= Extent=[4:27 - 4:31]
// CHECK: 4:27: IntegerLiteral= Extent=[4:27 - 4:31]
// CHECK: 5:8: ParenExpr= Extent=[5:8 - 5:32]
// CHECK: 5:9: BinaryOperator= Extent=[5:9 - 5:31]
// CHECK: 5:9: BinaryOperator= Extent=[5:9 - 5:18]
// CHECK: 5:9: DeclRefExpr=c:2:14 Extent=[5:9 - 5:10]
// CHECK: 5:14: UnexposedExpr= Extent=[5:14 - 5:18]
// CHECK: 5:14: IntegerLiteral= Extent=[5:14 - 5:18]
// CHECK: 5:22: BinaryOperator= Extent=[5:22 - 5:31]
// CHECK: 5:22: DeclRefExpr=c:2:14 Extent=[5:22 - 5:23]
// CHECK: 5:27: UnexposedExpr= Extent=[5:27 - 5:31]
// CHECK: 5:27: IntegerLiteral= Extent=[5:27 - 5:31]
// CHECK: 6:9: BinaryOperator= Extent=[6:9 - 6:31]
// CHECK: 6:9: BinaryOperator= Extent=[6:9 - 6:18]
// CHECK: 6:9: DeclRefExpr=c:2:14 Extent=[6:9 - 6:10]
// CHECK: 6:14: UnexposedExpr= Extent=[6:14 - 6:18]
// CHECK: 6:14: IntegerLiteral= Extent=[6:14 - 6:18]
// CHECK: 6:22: BinaryOperator= Extent=[6:22 - 6:31]
// CHECK: 6:22: DeclRefExpr=c:2:14 Extent=[6:22 - 6:23]
// CHECK: 6:27: UnexposedExpr= Extent=[6:27 - 6:31]
// CHECK: 6:27: IntegerLiteral= Extent=[6:27 - 6:31]
// CHECK: 7:9: BinaryOperator= Extent=[7:9 - 7:31]
// CHECK: 7:9: BinaryOperator= Extent=[7:9 - 7:18]
// CHECK: 7:9: DeclRefExpr=c:2:14 Extent=[7:9 - 7:10]
// CHECK: 7:14: UnexposedExpr= Extent=[7:14 - 7:18]
// CHECK: 7:14: IntegerLiteral= Extent=[7:14 - 7:18]
// CHECK: 7:22: BinaryOperator= Extent=[7:22 - 7:31]
// CHECK: 7:22: DeclRefExpr=c:2:14 Extent=[7:22 - 7:23]
// CHECK: 7:27: UnexposedExpr= Extent=[7:27 - 7:31]
// CHECK: 7:27: IntegerLiteral= Extent=[7:27 - 7:31]
// CHECK: 8:9: BinaryOperator= Extent=[8:9 - 8:33]
// CHECK: 8:9: BinaryOperator= Extent=[8:9 - 8:19]
// CHECK: 8:9: DeclRefExpr=c:2:14 Extent=[8:9 - 8:10]
// CHECK: 8:14: UnexposedExpr= Extent=[8:14 - 8:19]
// CHECK: 8:14: IntegerLiteral= Extent=[8:14 - 8:19]
// CHECK: 8:23: BinaryOperator= Extent=[8:23 - 8:33]
// CHECK: 8:23: DeclRefExpr=c:2:14 Extent=[8:23 - 8:24]
// CHECK: 8:28: UnexposedExpr= Extent=[8:28 - 8:33]
// CHECK: 8:28: IntegerLiteral= Extent=[8:28 - 8:33]
// CHECK: 9:9: BinaryOperator= Extent=[9:9 - 9:33]
// CHECK: 9:9: BinaryOperator= Extent=[9:9 - 9:19]
// CHECK: 9:9: DeclRefExpr=c:2:14 Extent=[9:9 - 9:10]
// CHECK: 9:14: UnexposedExpr= Extent=[9:14 - 9:19]
// CHECK: 9:14: IntegerLiteral= Extent=[9:14 - 9:19]
// CHECK: 9:23: BinaryOperator= Extent=[9:23 - 9:33]
// CHECK: 9:23: DeclRefExpr=c:2:14 Extent=[9:23 - 9:24]
// CHECK: 9:28: UnexposedExpr= Extent=[9:28 - 9:33]
// CHECK: 9:28: IntegerLiteral= Extent=[9:28 - 9:33]
// CHECK: 10:9: BinaryOperator= Extent=[10:9 - 10:33]
// CHECK: 10:9: BinaryOperator= Extent=[10:9 - 10:19]
// CHECK: 10:9: DeclRefExpr=c:2:14 Extent=[10:9 - 10:10]
// CHECK: 10:14: UnexposedExpr= Extent=[10:14 - 10:19]
// CHECK: 10:14: IntegerLiteral= Extent=[10:14 - 10:19]
// CHECK: 10:23: BinaryOperator= Extent=[10:23 - 10:33]
// CHECK: 10:23: DeclRefExpr=c:2:14 Extent=[10:23 - 10:24]
// CHECK: 10:28: UnexposedExpr= Extent=[10:28 - 10:33]
// CHECK: 10:28: IntegerLiteral= Extent=[10:28 - 10:33]
// CHECK: 11:9: BinaryOperator= Extent=[11:9 - 11:33]
// CHECK: 11:9: BinaryOperator= Extent=[11:9 - 11:19]
// CHECK: 11:9: DeclRefExpr=c:2:14 Extent=[11:9 - 11:10]
// CHECK: 11:14: UnexposedExpr= Extent=[11:14 - 11:19]
// CHECK: 11:14: IntegerLiteral= Extent=[11:14 - 11:19]
// CHECK: 11:23: BinaryOperator= Extent=[11:23 - 11:33]
// CHECK: 11:23: DeclRefExpr=c:2:14 Extent=[11:23 - 11:24]
// CHECK: 11:28: UnexposedExpr= Extent=[11:28 - 11:33]
// CHECK: 11:28: IntegerLiteral= Extent=[11:28 - 11:33]
// CHECK: 12:9: BinaryOperator= Extent=[12:9 - 12:33]
// CHECK: 12:9: BinaryOperator= Extent=[12:9 - 12:19]
// CHECK: 12:9: DeclRefExpr=c:2:14 Extent=[12:9 - 12:10]
// CHECK: 12:14: UnexposedExpr= Extent=[12:14 - 12:19]
// CHECK: 12:14: IntegerLiteral= Extent=[12:14 - 12:19]
// CHECK: 12:23: BinaryOperator= Extent=[12:23 - 12:33]
// CHECK: 12:23: DeclRefExpr=c:2:14 Extent=[12:23 - 12:24]
// CHECK: 12:28: UnexposedExpr= Extent=[12:28 - 12:33]
// CHECK: 12:28: IntegerLiteral= Extent=[12:28 - 12:33]
// CHECK: 13:9: BinaryOperator= Extent=[13:9 - 13:33]
// CHECK: 13:9: BinaryOperator= Extent=[13:9 - 13:19]
// CHECK: 13:9: DeclRefExpr=c:2:14 Extent=[13:9 - 13:10]
// CHECK: 13:14: UnexposedExpr= Extent=[13:14 - 13:19]
// CHECK: 13:14: IntegerLiteral= Extent=[13:14 - 13:19]
// CHECK: 13:23: BinaryOperator= Extent=[13:23 - 13:33]
// CHECK: 13:23: DeclRefExpr=c:2:14 Extent=[13:23 - 13:24]
// CHECK: 13:28: UnexposedExpr= Extent=[13:28 - 13:33]
// CHECK: 13:28: IntegerLiteral= Extent=[13:28 - 13:33]
// CHECK: 14:9: BinaryOperator= Extent=[14:9 - 14:33]
// CHECK: 14:9: BinaryOperator= Extent=[14:9 - 14:19]
// CHECK: 14:9: DeclRefExpr=c:2:14 Extent=[14:9 - 14:10]
// CHECK: 14:14: UnexposedExpr= Extent=[14:14 - 14:19]
// CHECK: 14:14: IntegerLiteral= Extent=[14:14 - 14:19]
// CHECK: 14:23: BinaryOperator= Extent=[14:23 - 14:33]
// CHECK: 14:23: DeclRefExpr=c:2:14 Extent=[14:23 - 14:24]
// CHECK: 14:28: UnexposedExpr= Extent=[14:28 - 14:33]
// CHECK: 14:28: IntegerLiteral= Extent=[14:28 - 14:33]
// CHECK: 15:9: BinaryOperator= Extent=[15:9 - 15:33]
// CHECK: 15:9: BinaryOperator= Extent=[15:9 - 15:19]
// CHECK: 15:9: DeclRefExpr=c:2:14 Extent=[15:9 - 15:10]
// CHECK: 15:14: UnexposedExpr= Extent=[15:14 - 15:19]
// CHECK: 15:14: IntegerLiteral= Extent=[15:14 - 15:19]
// CHECK: 15:23: BinaryOperator= Extent=[15:23 - 15:33]
// CHECK: 15:23: DeclRefExpr=c:2:14 Extent=[15:23 - 15:24]
// CHECK: 15:28: UnexposedExpr= Extent=[15:28 - 15:33]
// CHECK: 15:28: IntegerLiteral= Extent=[15:28 - 15:33]
// CHECK: 16:9: BinaryOperator= Extent=[16:9 - 16:33]
// CHECK: 16:9: BinaryOperator= Extent=[16:9 - 16:19]
// CHECK: 16:9: DeclRefExpr=c:2:14 Extent=[16:9 - 16:10]
// CHECK: 16:14: UnexposedExpr= Extent=[16:14 - 16:19]
// CHECK: 16:14: IntegerLiteral= Extent=[16:14 - 16:19]
// CHECK: 16:23: BinaryOperator= Extent=[16:23 - 16:33]
// CHECK: 16:23: DeclRefExpr=c:2:14 Extent=[16:23 - 16:24]
// CHECK: 16:28: UnexposedExpr= Extent=[16:28 - 16:33]
// CHECK: 16:28: IntegerLiteral= Extent=[16:28 - 16:33]
// CHECK: 17:9: BinaryOperator= Extent=[17:9 - 17:33]
// CHECK: 17:9: BinaryOperator= Extent=[17:9 - 17:19]
// CHECK: 17:9: DeclRefExpr=c:2:14 Extent=[17:9 - 17:10]
// CHECK: 17:14: UnexposedExpr= Extent=[17:14 - 17:19]
// CHECK: 17:14: IntegerLiteral= Extent=[17:14 - 17:19]
// CHECK: 17:23: BinaryOperator= Extent=[17:23 - 17:33]
// CHECK: 17:23: DeclRefExpr=c:2:14 Extent=[17:23 - 17:24]
// CHECK: 17:28: UnexposedExpr= Extent=[17:28 - 17:33]
// CHECK: 17:28: IntegerLiteral= Extent=[17:28 - 17:33]
// CHECK: 18:8: BinaryOperator= Extent=[18:8 - 18:18]
// CHECK: 18:8: DeclRefExpr=c:2:14 Extent=[18:8 - 18:9]
// CHECK: 18:13: UnexposedExpr= Extent=[18:13 - 18:18]
// CHECK: 18:13: IntegerLiteral= Extent=[18:13 - 18:18]
// CHECK: 18:23: BinaryOperator= Extent=[18:23 - 18:47]
// CHECK: 18:23: BinaryOperator= Extent=[18:23 - 18:33]
// CHECK: 18:23: DeclRefExpr=c:2:14 Extent=[18:23 - 18:24]
// CHECK: 18:28: UnexposedExpr= Extent=[18:28 - 18:33]
// CHECK: 18:28: IntegerLiteral= Extent=[18:28 - 18:33]
// CHECK: 18:37: BinaryOperator= Extent=[18:37 - 18:47]
// CHECK: 18:37: DeclRefExpr=c:2:14 Extent=[18:37 - 18:38]
// CHECK: 18:42: UnexposedExpr= Extent=[18:42 - 18:47]
// CHECK: 18:42: IntegerLiteral= Extent=[18:42 - 18:47]
// CHECK: 19:8: BinaryOperator= Extent=[19:8 - 19:18]
// CHECK: 19:8: DeclRefExpr=c:2:14 Extent=[19:8 - 19:9]
// CHECK: 19:13: UnexposedExpr= Extent=[19:13 - 19:18]
// CHECK: 19:13: IntegerLiteral= Extent=[19:13 - 19:18]
// CHECK: 19:23: BinaryOperator= Extent=[19:23 - 19:47]
// CHECK: 19:23: BinaryOperator= Extent=[19:23 - 19:33]
// CHECK: 19:23: DeclRefExpr=c:2:14 Extent=[19:23 - 19:24]
// CHECK: 19:28: UnexposedExpr= Extent=[19:28 - 19:33]
// CHECK: 19:28: IntegerLiteral= Extent=[19:28 - 19:33]
// CHECK: 19:37: BinaryOperator= Extent=[19:37 - 19:47]
// CHECK: 19:37: DeclRefExpr=c:2:14 Extent=[19:37 - 19:38]
// CHECK: 19:42: UnexposedExpr= Extent=[19:42 - 19:47]
// CHECK: 19:42: IntegerLiteral= Extent=[19:42 - 19:47]
// CHECK: 20:9: BinaryOperator= Extent=[20:9 - 20:33]
// CHECK: 20:9: BinaryOperator= Extent=[20:9 - 20:19]
// CHECK: 20:9: DeclRefExpr=c:2:14 Extent=[20:9 - 20:10]
// CHECK: 20:14: UnexposedExpr= Extent=[20:14 - 20:19]
// CHECK: 20:14: IntegerLiteral= Extent=[20:14 - 20:19]
// CHECK: 20:23: BinaryOperator= Extent=[20:23 - 20:33]
// CHECK: 20:23: DeclRefExpr=c:2:14 Extent=[20:23 - 20:24]
// CHECK: 20:28: UnexposedExpr= Extent=[20:28 - 20:33]
// CHECK: 20:28: IntegerLiteral= Extent=[20:28 - 20:33]
// CHECK: 21:9: BinaryOperator= Extent=[21:9 - 21:33]
// CHECK: 21:9: BinaryOperator= Extent=[21:9 - 21:19]
// CHECK: 21:9: DeclRefExpr=c:2:14 Extent=[21:9 - 21:10]
// CHECK: 21:14: UnexposedExpr= Extent=[21:14 - 21:19]
// CHECK: 21:14: IntegerLiteral= Extent=[21:14 - 21:19]
// CHECK: 21:23: BinaryOperator= Extent=[21:23 - 21:33]
// CHECK: 21:23: DeclRefExpr=c:2:14 Extent=[21:23 - 21:24]
// CHECK: 21:28: UnexposedExpr= Extent=[21:28 - 21:33]
// CHECK: 21:28: IntegerLiteral= Extent=[21:28 - 21:33]
// CHECK: 22:8: BinaryOperator= Extent=[22:8 - 22:18]
// CHECK: 22:8: DeclRefExpr=c:2:14 Extent=[22:8 - 22:9]
// CHECK: 22:13: UnexposedExpr= Extent=[22:13 - 22:18]
// CHECK: 22:13: IntegerLiteral= Extent=[22:13 - 22:18]
// CHECK: 22:22: BinaryOperator= Extent=[22:22 - 22:32]
// CHECK: 22:22: DeclRefExpr=c:2:14 Extent=[22:22 - 22:23]
// CHECK: 22:27: UnexposedExpr= Extent=[22:27 - 22:32]
// CHECK: 22:27: IntegerLiteral= Extent=[22:27 - 22:32]
// CHECK: 22:36: BinaryOperator= Extent=[22:36 - 22:46]
// CHECK: 22:36: DeclRefExpr=c:2:14 Extent=[22:36 - 22:37]
// CHECK: 22:41: UnexposedExpr= Extent=[22:41 - 22:46]
// CHECK: 22:41: IntegerLiteral= Extent=[22:41 - 22:46]
// CHECK: 23:5: BinaryOperator= Extent=[23:5 - 23:15]
// CHECK: 23:5: DeclRefExpr=c:2:14 Extent=[23:5 - 23:6]
// CHECK: 23:10: UnexposedExpr= Extent=[23:10 - 23:15]
// CHECK: 23:10: IntegerLiteral= Extent=[23:10 - 23:15]
// CHECK: 23:20: BinaryOperator= Extent=[23:20 - 23:44]
// CHECK: 23:20: BinaryOperator= Extent=[23:20 - 23:30]
// CHECK: 23:20: DeclRefExpr=c:2:14 Extent=[23:20 - 23:21]
// CHECK: 23:25: UnexposedExpr= Extent=[23:25 - 23:30]
// CHECK: 23:25: IntegerLiteral= Extent=[23:25 - 23:30]
// CHECK: 23:34: BinaryOperator= Extent=[23:34 - 23:44]
// CHECK: 23:34: DeclRefExpr=c:2:14 Extent=[23:34 - 23:35]
// CHECK: 23:39: UnexposedExpr= Extent=[23:39 - 23:44]
// CHECK: 23:39: IntegerLiteral= Extent=[23:39 - 23:44]
// CHECK: 24:9: BinaryOperator= Extent=[24:9 - 24:33]
// CHECK: 24:9: BinaryOperator= Extent=[24:9 - 24:19]
// CHECK: 24:9: DeclRefExpr=c:2:14 Extent=[24:9 - 24:10]
// CHECK: 24:14: UnexposedExpr= Extent=[24:14 - 24:19]
// CHECK: 24:14: IntegerLiteral= Extent=[24:14 - 24:19]
// CHECK: 24:23: BinaryOperator= Extent=[24:23 - 24:33]
// CHECK: 24:23: DeclRefExpr=c:2:14 Extent=[24:23 - 24:24]
// CHECK: 24:28: UnexposedExpr= Extent=[24:28 - 24:33]
// CHECK: 24:28: IntegerLiteral= Extent=[24:28 - 24:33]
// CHECK: 25:9: BinaryOperator= Extent=[25:9 - 25:33]
// CHECK: 25:9: BinaryOperator= Extent=[25:9 - 25:19]
// CHECK: 25:9: DeclRefExpr=c:2:14 Extent=[25:9 - 25:10]
// CHECK: 25:14: UnexposedExpr= Extent=[25:14 - 25:19]
// CHECK: 25:14: IntegerLiteral= Extent=[25:14 - 25:19]
// CHECK: 25:23: BinaryOperator= Extent=[25:23 - 25:33]
// CHECK: 25:23: DeclRefExpr=c:2:14 Extent=[25:23 - 25:24]
// CHECK: 25:28: UnexposedExpr= Extent=[25:28 - 25:33]
// CHECK: 25:28: IntegerLiteral= Extent=[25:28 - 25:33]
// CHECK: 26:9: BinaryOperator= Extent=[26:9 - 26:33]
// CHECK: 26:9: BinaryOperator= Extent=[26:9 - 26:19]
// CHECK: 26:9: DeclRefExpr=c:2:14 Extent=[26:9 - 26:10]
// CHECK: 26:14: UnexposedExpr= Extent=[26:14 - 26:19]
// CHECK: 26:14: IntegerLiteral= Extent=[26:14 - 26:19]
// CHECK: 26:23: BinaryOperator= Extent=[26:23 - 26:33]
// CHECK: 26:23: DeclRefExpr=c:2:14 Extent=[26:23 - 26:24]
// CHECK: 26:28: UnexposedExpr= Extent=[26:28 - 26:33]
// CHECK: 26:28: IntegerLiteral= Extent=[26:28 - 26:33]
// CHECK: 27:9: BinaryOperator= Extent=[27:9 - 27:33]
// CHECK: 27:9: BinaryOperator= Extent=[27:9 - 27:19]
// CHECK: 27:9: DeclRefExpr=c:2:14 Extent=[27:9 - 27:10]
// CHECK: 27:14: UnexposedExpr= Extent=[27:14 - 27:19]
// CHECK: 27:14: IntegerLiteral= Extent=[27:14 - 27:19]
// CHECK: 27:23: BinaryOperator= Extent=[27:23 - 27:33]
// CHECK: 27:23: DeclRefExpr=c:2:14 Extent=[27:23 - 27:24]
// CHECK: 27:28: UnexposedExpr= Extent=[27:28 - 27:33]
// CHECK: 27:28: IntegerLiteral= Extent=[27:28 - 27:33]
// CHECK: 28:9: BinaryOperator= Extent=[28:9 - 28:33]
// CHECK: 28:9: BinaryOperator= Extent=[28:9 - 28:19]
// CHECK: 28:9: DeclRefExpr=c:2:14 Extent=[28:9 - 28:10]
// CHECK: 28:14: UnexposedExpr= Extent=[28:14 - 28:19]
// CHECK: 28:14: IntegerLiteral= Extent=[28:14 - 28:19]
// CHECK: 28:23: BinaryOperator= Extent=[28:23 - 28:33]
// CHECK: 28:23: DeclRefExpr=c:2:14 Extent=[28:23 - 28:24]
// CHECK: 28:28: UnexposedExpr= Extent=[28:28 - 28:33]
// CHECK: 28:28: IntegerLiteral= Extent=[28:28 - 28:33]
// CHECK: 29:9: BinaryOperator= Extent=[29:9 - 29:33]
// CHECK: 29:9: BinaryOperator= Extent=[29:9 - 29:19]
// CHECK: 29:9: DeclRefExpr=c:2:14 Extent=[29:9 - 29:10]
// CHECK: 29:14: UnexposedExpr= Extent=[29:14 - 29:19]
// CHECK: 29:14: IntegerLiteral= Extent=[29:14 - 29:19]
// CHECK: 29:23: BinaryOperator= Extent=[29:23 - 29:33]
// CHECK: 29:23: DeclRefExpr=c:2:14 Extent=[29:23 - 29:24]
// CHECK: 29:28: UnexposedExpr= Extent=[29:28 - 29:33]
// CHECK: 29:28: IntegerLiteral= Extent=[29:28 - 29:33]
// CHECK: 30:9: BinaryOperator= Extent=[30:9 - 30:33]
// CHECK: 30:9: BinaryOperator= Extent=[30:9 - 30:19]
// CHECK: 30:9: DeclRefExpr=c:2:14 Extent=[30:9 - 30:10]
// CHECK: 30:14: UnexposedExpr= Extent=[30:14 - 30:19]
// CHECK: 30:14: IntegerLiteral= Extent=[30:14 - 30:19]
// CHECK: 30:23: BinaryOperator= Extent=[30:23 - 30:33]
// CHECK: 30:23: DeclRefExpr=c:2:14 Extent=[30:23 - 30:24]
// CHECK: 30:28: UnexposedExpr= Extent=[30:28 - 30:33]
// CHECK: 30:28: IntegerLiteral= Extent=[30:28 - 30:33]
// CHECK: 31:9: BinaryOperator= Extent=[31:9 - 31:33]
// CHECK: 31:9: BinaryOperator= Extent=[31:9 - 31:19]
// CHECK: 31:9: DeclRefExpr=c:2:14 Extent=[31:9 - 31:10]
// CHECK: 31:14: UnexposedExpr= Extent=[31:14 - 31:19]
// CHECK: 31:14: IntegerLiteral= Extent=[31:14 - 31:19]
// CHECK: 31:23: BinaryOperator= Extent=[31:23 - 31:33]
// CHECK: 31:23: DeclRefExpr=c:2:14 Extent=[31:23 - 31:24]
// CHECK: 31:28: UnexposedExpr= Extent=[31:28 - 31:33]
// CHECK: 31:28: IntegerLiteral= Extent=[31:28 - 31:33]
// CHECK: 32:9: BinaryOperator= Extent=[32:9 - 32:33]
// CHECK: 32:9: BinaryOperator= Extent=[32:9 - 32:19]
// CHECK: 32:9: DeclRefExpr=c:2:14 Extent=[32:9 - 32:10]
// CHECK: 32:14: UnexposedExpr= Extent=[32:14 - 32:19]
// CHECK: 32:14: IntegerLiteral= Extent=[32:14 - 32:19]
// CHECK: 32:23: BinaryOperator= Extent=[32:23 - 32:33]
// CHECK: 32:23: DeclRefExpr=c:2:14 Extent=[32:23 - 32:24]
// CHECK: 32:28: UnexposedExpr= Extent=[32:28 - 32:33]
// CHECK: 32:28: IntegerLiteral= Extent=[32:28 - 32:33]
// CHECK: 33:9: BinaryOperator= Extent=[33:9 - 33:33]
// CHECK: 33:9: BinaryOperator= Extent=[33:9 - 33:19]
// CHECK: 33:9: DeclRefExpr=c:2:14 Extent=[33:9 - 33:10]
// CHECK: 33:14: UnexposedExpr= Extent=[33:14 - 33:19]
// CHECK: 33:14: IntegerLiteral= Extent=[33:14 - 33:19]
// CHECK: 33:23: BinaryOperator= Extent=[33:23 - 33:33]
// CHECK: 33:23: DeclRefExpr=c:2:14 Extent=[33:23 - 33:24]
// CHECK: 33:28: UnexposedExpr= Extent=[33:28 - 33:33]
// CHECK: 33:28: IntegerLiteral= Extent=[33:28 - 33:33]
// CHECK: 34:9: BinaryOperator= Extent=[34:9 - 34:33]
// CHECK: 34:9: BinaryOperator= Extent=[34:9 - 34:19]
// CHECK: 34:9: DeclRefExpr=c:2:14 Extent=[34:9 - 34:10]
// CHECK: 34:14: UnexposedExpr= Extent=[34:14 - 34:19]
// CHECK: 34:14: IntegerLiteral= Extent=[34:14 - 34:19]
// CHECK: 34:23: BinaryOperator= Extent=[34:23 - 34:33]
// CHECK: 34:23: DeclRefExpr=c:2:14 Extent=[34:23 - 34:24]
// CHECK: 34:28: UnexposedExpr= Extent=[34:28 - 34:33]
// CHECK: 34:28: IntegerLiteral= Extent=[34:28 - 34:33]
// CHECK: 35:8: BinaryOperator= Extent=[35:8 - 35:18]
// CHECK: 35:8: DeclRefExpr=c:2:14 Extent=[35:8 - 35:9]
// CHECK: 35:13: UnexposedExpr= Extent=[35:13 - 35:18]
// CHECK: 35:13: IntegerLiteral= Extent=[35:13 - 35:18]
// CHECK: 35:23: BinaryOperator= Extent=[35:23 - 35:47]
// CHECK: 35:23: BinaryOperator= Extent=[35:23 - 35:33]
// CHECK: 35:23: DeclRefExpr=c:2:14 Extent=[35:23 - 35:24]
// CHECK: 35:28: UnexposedExpr= Extent=[35:28 - 35:33]
// CHECK: 35:28: IntegerLiteral= Extent=[35:28 - 35:33]
// CHECK: 35:37: BinaryOperator= Extent=[35:37 - 35:47]
// CHECK: 35:37: DeclRefExpr=c:2:14 Extent=[35:37 - 35:38]
// CHECK: 35:42: UnexposedExpr= Extent=[35:42 - 35:47]
// CHECK: 35:42: IntegerLiteral= Extent=[35:42 - 35:47]
// CHECK: 36:9: BinaryOperator= Extent=[36:9 - 36:33]
// CHECK: 36:9: BinaryOperator= Extent=[36:9 - 36:19]
// CHECK: 36:9: DeclRefExpr=c:2:14 Extent=[36:9 - 36:10]
// CHECK: 36:14: UnexposedExpr= Extent=[36:14 - 36:19]
// CHECK: 36:14: IntegerLiteral= Extent=[36:14 - 36:19]
// CHECK: 36:23: BinaryOperator= Extent=[36:23 - 36:33]
// CHECK: 36:23: DeclRefExpr=c:2:14 Extent=[36:23 - 36:24]
// CHECK: 36:28: UnexposedExpr= Extent=[36:28 - 36:33]
// CHECK: 36:28: IntegerLiteral= Extent=[36:28 - 36:33]
// CHECK: 37:9: BinaryOperator= Extent=[37:9 - 37:33]
// CHECK: 37:9: BinaryOperator= Extent=[37:9 - 37:19]
// CHECK: 37:9: DeclRefExpr=c:2:14 Extent=[37:9 - 37:10]
// CHECK: 37:14: UnexposedExpr= Extent=[37:14 - 37:19]
// CHECK: 37:14: IntegerLiteral= Extent=[37:14 - 37:19]
// CHECK: 37:23: BinaryOperator= Extent=[37:23 - 37:33]
// CHECK: 37:23: DeclRefExpr=c:2:14 Extent=[37:23 - 37:24]
// CHECK: 37:28: UnexposedExpr= Extent=[37:28 - 37:33]
// CHECK: 37:28: IntegerLiteral= Extent=[37:28 - 37:33]
// CHECK: 38:9: BinaryOperator= Extent=[38:9 - 38:33]
// CHECK: 38:9: BinaryOperator= Extent=[38:9 - 38:19]
// CHECK: 38:9: DeclRefExpr=c:2:14 Extent=[38:9 - 38:10]
// CHECK: 38:14: UnexposedExpr= Extent=[38:14 - 38:19]
// CHECK: 38:14: IntegerLiteral= Extent=[38:14 - 38:19]
// CHECK: 38:23: BinaryOperator= Extent=[38:23 - 38:33]
// CHECK: 38:23: DeclRefExpr=c:2:14 Extent=[38:23 - 38:24]
// CHECK: 38:28: UnexposedExpr= Extent=[38:28 - 38:33]
// CHECK: 38:28: IntegerLiteral= Extent=[38:28 - 38:33]
// CHECK: 39:9: BinaryOperator= Extent=[39:9 - 39:33]
// CHECK: 39:9: BinaryOperator= Extent=[39:9 - 39:19]
// CHECK: 39:9: DeclRefExpr=c:2:14 Extent=[39:9 - 39:10]
// CHECK: 39:14: UnexposedExpr= Extent=[39:14 - 39:19]
// CHECK: 39:14: IntegerLiteral= Extent=[39:14 - 39:19]
// CHECK: 39:23: BinaryOperator= Extent=[39:23 - 39:33]
// CHECK: 39:23: DeclRefExpr=c:2:14 Extent=[39:23 - 39:24]
// CHECK: 39:28: UnexposedExpr= Extent=[39:28 - 39:33]
// CHECK: 39:28: IntegerLiteral= Extent=[39:28 - 39:33]
// CHECK: 40:9: BinaryOperator= Extent=[40:9 - 40:33]
// CHECK: 40:9: BinaryOperator= Extent=[40:9 - 40:19]
// CHECK: 40:9: DeclRefExpr=c:2:14 Extent=[40:9 - 40:10]
// CHECK: 40:14: UnexposedExpr= Extent=[40:14 - 40:19]
// CHECK: 40:14: IntegerLiteral= Extent=[40:14 - 40:19]
// CHECK: 40:23: BinaryOperator= Extent=[40:23 - 40:33]
// CHECK: 40:23: DeclRefExpr=c:2:14 Extent=[40:23 - 40:24]
// CHECK: 40:28: UnexposedExpr= Extent=[40:28 - 40:33]
// CHECK: 40:28: IntegerLiteral= Extent=[40:28 - 40:33]
// CHECK: 41:9: BinaryOperator= Extent=[41:9 - 41:33]
// CHECK: 41:9: BinaryOperator= Extent=[41:9 - 41:19]
// CHECK: 41:9: DeclRefExpr=c:2:14 Extent=[41:9 - 41:10]
// CHECK: 41:14: UnexposedExpr= Extent=[41:14 - 41:19]
// CHECK: 41:14: IntegerLiteral= Extent=[41:14 - 41:19]
// CHECK: 41:23: BinaryOperator= Extent=[41:23 - 41:33]
// CHECK: 41:23: DeclRefExpr=c:2:14 Extent=[41:23 - 41:24]
// CHECK: 41:28: UnexposedExpr= Extent=[41:28 - 41:33]
// CHECK: 41:28: IntegerLiteral= Extent=[41:28 - 41:33]
// CHECK: 42:9: BinaryOperator= Extent=[42:9 - 42:33]
// CHECK: 42:9: BinaryOperator= Extent=[42:9 - 42:19]
// CHECK: 42:9: DeclRefExpr=c:2:14 Extent=[42:9 - 42:10]
// CHECK: 42:14: UnexposedExpr= Extent=[42:14 - 42:19]
// CHECK: 42:14: IntegerLiteral= Extent=[42:14 - 42:19]
// CHECK: 42:23: BinaryOperator= Extent=[42:23 - 42:33]
// CHECK: 42:23: DeclRefExpr=c:2:14 Extent=[42:23 - 42:24]
// CHECK: 42:28: UnexposedExpr= Extent=[42:28 - 42:33]
// CHECK: 42:28: IntegerLiteral= Extent=[42:28 - 42:33]
// CHECK: 43:9: BinaryOperator= Extent=[43:9 - 43:33]
// CHECK: 43:9: BinaryOperator= Extent=[43:9 - 43:19]
// CHECK: 43:9: DeclRefExpr=c:2:14 Extent=[43:9 - 43:10]
// CHECK: 43:14: UnexposedExpr= Extent=[43:14 - 43:19]
// CHECK: 43:14: IntegerLiteral= Extent=[43:14 - 43:19]
// CHECK: 43:23: BinaryOperator= Extent=[43:23 - 43:33]
// CHECK: 43:23: DeclRefExpr=c:2:14 Extent=[43:23 - 43:24]
// CHECK: 43:28: UnexposedExpr= Extent=[43:28 - 43:33]
// CHECK: 43:28: IntegerLiteral= Extent=[43:28 - 43:33]
// CHECK: 44:8: BinaryOperator= Extent=[44:8 - 44:18]
// CHECK: 44:8: DeclRefExpr=c:2:14 Extent=[44:8 - 44:9]
// CHECK: 44:13: UnexposedExpr= Extent=[44:13 - 44:18]
// CHECK: 44:13: IntegerLiteral= Extent=[44:13 - 44:18]
// CHECK: 44:23: BinaryOperator= Extent=[44:23 - 44:47]
// CHECK: 44:23: BinaryOperator= Extent=[44:23 - 44:33]
// CHECK: 44:23: DeclRefExpr=c:2:14 Extent=[44:23 - 44:24]
// CHECK: 44:28: UnexposedExpr= Extent=[44:28 - 44:33]
// CHECK: 44:28: IntegerLiteral= Extent=[44:28 - 44:33]
// CHECK: 44:37: BinaryOperator= Extent=[44:37 - 44:47]
// CHECK: 44:37: DeclRefExpr=c:2:14 Extent=[44:37 - 44:38]
// CHECK: 44:42: UnexposedExpr= Extent=[44:42 - 44:47]
// CHECK: 44:42: IntegerLiteral= Extent=[44:42 - 44:47]
// CHECK: 45:9: BinaryOperator= Extent=[45:9 - 45:33]
// CHECK: 45:9: BinaryOperator= Extent=[45:9 - 45:19]
// CHECK: 45:9: DeclRefExpr=c:2:14 Extent=[45:9 - 45:10]
// CHECK: 45:14: UnexposedExpr= Extent=[45:14 - 45:19]
// CHECK: 45:14: IntegerLiteral= Extent=[45:14 - 45:19]
// CHECK: 45:23: BinaryOperator= Extent=[45:23 - 45:33]
// CHECK: 45:23: DeclRefExpr=c:2:14 Extent=[45:23 - 45:24]
// CHECK: 45:28: UnexposedExpr= Extent=[45:28 - 45:33]
// CHECK: 45:28: IntegerLiteral= Extent=[45:28 - 45:33]
// CHECK: 46:8: BinaryOperator= Extent=[46:8 - 46:18]
// CHECK: 46:8: DeclRefExpr=c:2:14 Extent=[46:8 - 46:9]
// CHECK: 46:13: UnexposedExpr= Extent=[46:13 - 46:18]
// CHECK: 46:13: IntegerLiteral= Extent=[46:13 - 46:18]
// CHECK: 46:23: BinaryOperator= Extent=[46:23 - 46:47]
// CHECK: 46:23: BinaryOperator= Extent=[46:23 - 46:33]
// CHECK: 46:23: DeclRefExpr=c:2:14 Extent=[46:23 - 46:24]
// CHECK: 46:28: UnexposedExpr= Extent=[46:28 - 46:33]
// CHECK: 46:28: IntegerLiteral= Extent=[46:28 - 46:33]
// CHECK: 46:37: BinaryOperator= Extent=[46:37 - 46:47]
// CHECK: 46:37: DeclRefExpr=c:2:14 Extent=[46:37 - 46:38]
// CHECK: 46:42: UnexposedExpr= Extent=[46:42 - 46:47]
// CHECK: 46:42: IntegerLiteral= Extent=[46:42 - 46:47]
// CHECK: 47:9: BinaryOperator= Extent=[47:9 - 47:33]
// CHECK: 47:9: BinaryOperator= Extent=[47:9 - 47:19]
// CHECK: 47:9: DeclRefExpr=c:2:14 Extent=[47:9 - 47:10]
// CHECK: 47:14: UnexposedExpr= Extent=[47:14 - 47:19]
// CHECK: 47:14: IntegerLiteral= Extent=[47:14 - 47:19]
// CHECK: 47:23: BinaryOperator= Extent=[47:23 - 47:33]
// CHECK: 47:23: DeclRefExpr=c:2:14 Extent=[47:23 - 47:24]
// CHECK: 47:28: UnexposedExpr= Extent=[47:28 - 47:33]
// CHECK: 47:28: IntegerLiteral= Extent=[47:28 - 47:33]
// CHECK: 48:9: BinaryOperator= Extent=[48:9 - 48:33]
// CHECK: 48:9: BinaryOperator= Extent=[48:9 - 48:19]
// CHECK: 48:9: DeclRefExpr=c:2:14 Extent=[48:9 - 48:10]
// CHECK: 48:14: UnexposedExpr= Extent=[48:14 - 48:19]
// CHECK: 48:14: IntegerLiteral= Extent=[48:14 - 48:19]
// CHECK: 48:23: BinaryOperator= Extent=[48:23 - 48:33]
// CHECK: 48:23: DeclRefExpr=c:2:14 Extent=[48:23 - 48:24]
// CHECK: 48:28: UnexposedExpr= Extent=[48:28 - 48:33]
// CHECK: 48:28: IntegerLiteral= Extent=[48:28 - 48:33]
// CHECK: 49:9: BinaryOperator= Extent=[49:9 - 49:33]
// CHECK: 49:9: BinaryOperator= Extent=[49:9 - 49:19]
// CHECK: 49:9: DeclRefExpr=c:2:14 Extent=[49:9 - 49:10]
// CHECK: 49:14: UnexposedExpr= Extent=[49:14 - 49:19]
// CHECK: 49:14: IntegerLiteral= Extent=[49:14 - 49:19]
// CHECK: 49:23: BinaryOperator= Extent=[49:23 - 49:33]
// CHECK: 49:23: DeclRefExpr=c:2:14 Extent=[49:23 - 49:24]
// CHECK: 49:28: UnexposedExpr= Extent=[49:28 - 49:33]
// CHECK: 49:28: IntegerLiteral= Extent=[49:28 - 49:33]
// CHECK: 50:9: BinaryOperator= Extent=[50:9 - 50:33]
// CHECK: 50:9: BinaryOperator= Extent=[50:9 - 50:19]
// CHECK: 50:9: DeclRefExpr=c:2:14 Extent=[50:9 - 50:10]
// CHECK: 50:14: UnexposedExpr= Extent=[50:14 - 50:19]
// CHECK: 50:14: IntegerLiteral= Extent=[50:14 - 50:19]
// CHECK: 50:23: BinaryOperator= Extent=[50:23 - 50:33]
// CHECK: 50:23: DeclRefExpr=c:2:14 Extent=[50:23 - 50:24]
// CHECK: 50:28: UnexposedExpr= Extent=[50:28 - 50:33]
// CHECK: 50:28: IntegerLiteral= Extent=[50:28 - 50:33]
// CHECK: 51:8: BinaryOperator= Extent=[51:8 - 51:18]
// CHECK: 51:8: DeclRefExpr=c:2:14 Extent=[51:8 - 51:9]
// CHECK: 51:13: UnexposedExpr= Extent=[51:13 - 51:18]
// CHECK: 51:13: IntegerLiteral= Extent=[51:13 - 51:18]
// CHECK: 51:23: BinaryOperator= Extent=[51:23 - 51:47]
// CHECK: 51:23: BinaryOperator= Extent=[51:23 - 51:33]
// CHECK: 51:23: DeclRefExpr=c:2:14 Extent=[51:23 - 51:24]
// CHECK: 51:28: UnexposedExpr= Extent=[51:28 - 51:33]
// CHECK: 51:28: IntegerLiteral= Extent=[51:28 - 51:33]
// CHECK: 51:37: BinaryOperator= Extent=[51:37 - 51:47]
// CHECK: 51:37: DeclRefExpr=c:2:14 Extent=[51:37 - 51:38]
// CHECK: 51:42: UnexposedExpr= Extent=[51:42 - 51:47]
// CHECK: 51:42: IntegerLiteral= Extent=[51:42 - 51:47]
// CHECK: 52:9: BinaryOperator= Extent=[52:9 - 52:33]
// CHECK: 52:9: BinaryOperator= Extent=[52:9 - 52:19]
// CHECK: 52:9: DeclRefExpr=c:2:14 Extent=[52:9 - 52:10]
// CHECK: 52:14: UnexposedExpr= Extent=[52:14 - 52:19]
// CHECK: 52:14: IntegerLiteral= Extent=[52:14 - 52:19]
// CHECK: 52:23: BinaryOperator= Extent=[52:23 - 52:33]
// CHECK: 52:23: DeclRefExpr=c:2:14 Extent=[52:23 - 52:24]
// CHECK: 52:28: UnexposedExpr= Extent=[52:28 - 52:33]
// CHECK: 52:28: IntegerLiteral= Extent=[52:28 - 52:33]
// CHECK: 53:9: BinaryOperator= Extent=[53:9 - 53:33]
// CHECK: 53:9: BinaryOperator= Extent=[53:9 - 53:19]
// CHECK: 53:9: DeclRefExpr=c:2:14 Extent=[53:9 - 53:10]
// CHECK: 53:14: UnexposedExpr= Extent=[53:14 - 53:19]
// CHECK: 53:14: IntegerLiteral= Extent=[53:14 - 53:19]
// CHECK: 53:23: BinaryOperator= Extent=[53:23 - 53:33]
// CHECK: 53:23: DeclRefExpr=c:2:14 Extent=[53:23 - 53:24]
// CHECK: 53:28: UnexposedExpr= Extent=[53:28 - 53:33]
// CHECK: 53:28: IntegerLiteral= Extent=[53:28 - 53:33]
// CHECK: 54:9: BinaryOperator= Extent=[54:9 - 54:33]
// CHECK: 54:9: BinaryOperator= Extent=[54:9 - 54:19]
// CHECK: 54:9: DeclRefExpr=c:2:14 Extent=[54:9 - 54:10]
// CHECK: 54:14: UnexposedExpr= Extent=[54:14 - 54:19]
// CHECK: 54:14: IntegerLiteral= Extent=[54:14 - 54:19]
// CHECK: 54:23: BinaryOperator= Extent=[54:23 - 54:33]
// CHECK: 54:23: DeclRefExpr=c:2:14 Extent=[54:23 - 54:24]
// CHECK: 54:28: UnexposedExpr= Extent=[54:28 - 54:33]
// CHECK: 54:28: IntegerLiteral= Extent=[54:28 - 54:33]
// CHECK: 55:9: BinaryOperator= Extent=[55:9 - 55:33]
// CHECK: 55:9: BinaryOperator= Extent=[55:9 - 55:19]
// CHECK: 55:9: DeclRefExpr=c:2:14 Extent=[55:9 - 55:10]
// CHECK: 55:14: UnexposedExpr= Extent=[55:14 - 55:19]
// CHECK: 55:14: IntegerLiteral= Extent=[55:14 - 55:19]
// CHECK: 55:23: BinaryOperator= Extent=[55:23 - 55:33]
// CHECK: 55:23: DeclRefExpr=c:2:14 Extent=[55:23 - 55:24]
// CHECK: 55:28: UnexposedExpr= Extent=[55:28 - 55:33]
// CHECK: 55:28: IntegerLiteral= Extent=[55:28 - 55:33]
// CHECK: 56:9: BinaryOperator= Extent=[56:9 - 56:33]
// CHECK: 56:9: BinaryOperator= Extent=[56:9 - 56:19]
// CHECK: 56:9: DeclRefExpr=c:2:14 Extent=[56:9 - 56:10]
// CHECK: 56:14: UnexposedExpr= Extent=[56:14 - 56:19]
// CHECK: 56:14: IntegerLiteral= Extent=[56:14 - 56:19]
// CHECK: 56:23: BinaryOperator= Extent=[56:23 - 56:33]
// CHECK: 56:23: DeclRefExpr=c:2:14 Extent=[56:23 - 56:24]
// CHECK: 56:28: UnexposedExpr= Extent=[56:28 - 56:33]
// CHECK: 56:28: IntegerLiteral= Extent=[56:28 - 56:33]
// CHECK: 57:9: BinaryOperator= Extent=[57:9 - 57:33]
// CHECK: 57:9: BinaryOperator= Extent=[57:9 - 57:19]
// CHECK: 57:9: DeclRefExpr=c:2:14 Extent=[57:9 - 57:10]
// CHECK: 57:14: UnexposedExpr= Extent=[57:14 - 57:19]
// CHECK: 57:14: IntegerLiteral= Extent=[57:14 - 57:19]
// CHECK: 57:23: BinaryOperator= Extent=[57:23 - 57:33]
// CHECK: 57:23: DeclRefExpr=c:2:14 Extent=[57:23 - 57:24]
// CHECK: 57:28: UnexposedExpr= Extent=[57:28 - 57:33]
// CHECK: 57:28: IntegerLiteral= Extent=[57:28 - 57:33]
// CHECK: 58:9: BinaryOperator= Extent=[58:9 - 58:33]
// CHECK: 58:9: BinaryOperator= Extent=[58:9 - 58:19]
// CHECK: 58:9: DeclRefExpr=c:2:14 Extent=[58:9 - 58:10]
// CHECK: 58:14: UnexposedExpr= Extent=[58:14 - 58:19]
// CHECK: 58:14: IntegerLiteral= Extent=[58:14 - 58:19]
// CHECK: 58:23: BinaryOperator= Extent=[58:23 - 58:33]
// CHECK: 58:23: DeclRefExpr=c:2:14 Extent=[58:23 - 58:24]
// CHECK: 58:28: UnexposedExpr= Extent=[58:28 - 58:33]
// CHECK: 58:28: IntegerLiteral= Extent=[58:28 - 58:33]
// CHECK: 59:9: BinaryOperator= Extent=[59:9 - 59:33]
// CHECK: 59:9: BinaryOperator= Extent=[59:9 - 59:19]
// CHECK: 59:9: DeclRefExpr=c:2:14 Extent=[59:9 - 59:10]
// CHECK: 59:14: UnexposedExpr= Extent=[59:14 - 59:19]
// CHECK: 59:14: IntegerLiteral= Extent=[59:14 - 59:19]
// CHECK: 59:23: BinaryOperator= Extent=[59:23 - 59:33]
// CHECK: 59:23: DeclRefExpr=c:2:14 Extent=[59:23 - 59:24]
// CHECK: 59:28: UnexposedExpr= Extent=[59:28 - 59:33]
// CHECK: 59:28: IntegerLiteral= Extent=[59:28 - 59:33]
// CHECK: 60:9: BinaryOperator= Extent=[60:9 - 60:33]
// CHECK: 60:9: BinaryOperator= Extent=[60:9 - 60:19]
// CHECK: 60:9: DeclRefExpr=c:2:14 Extent=[60:9 - 60:10]
// CHECK: 60:14: UnexposedExpr= Extent=[60:14 - 60:19]
// CHECK: 60:14: IntegerLiteral= Extent=[60:14 - 60:19]
// CHECK: 60:23: BinaryOperator= Extent=[60:23 - 60:33]
// CHECK: 60:23: DeclRefExpr=c:2:14 Extent=[60:23 - 60:24]
// CHECK: 60:28: UnexposedExpr= Extent=[60:28 - 60:33]
// CHECK: 60:28: IntegerLiteral= Extent=[60:28 - 60:33]
// CHECK: 61:9: BinaryOperator= Extent=[61:9 - 61:33]
// CHECK: 61:9: BinaryOperator= Extent=[61:9 - 61:19]
// CHECK: 61:9: DeclRefExpr=c:2:14 Extent=[61:9 - 61:10]
// CHECK: 61:14: UnexposedExpr= Extent=[61:14 - 61:19]
// CHECK: 61:14: IntegerLiteral= Extent=[61:14 - 61:19]
// CHECK: 61:23: BinaryOperator= Extent=[61:23 - 61:33]
// CHECK: 61:23: DeclRefExpr=c:2:14 Extent=[61:23 - 61:24]
// CHECK: 61:28: UnexposedExpr= Extent=[61:28 - 61:33]
// CHECK: 61:28: IntegerLiteral= Extent=[61:28 - 61:33]
// CHECK: 62:9: BinaryOperator= Extent=[62:9 - 62:33]
// CHECK: 62:9: BinaryOperator= Extent=[62:9 - 62:19]
// CHECK: 62:9: DeclRefExpr=c:2:14 Extent=[62:9 - 62:10]
// CHECK: 62:14: UnexposedExpr= Extent=[62:14 - 62:19]
// CHECK: 62:14: IntegerLiteral= Extent=[62:14 - 62:19]
// CHECK: 62:23: BinaryOperator= Extent=[62:23 - 62:33]
// CHECK: 62:23: DeclRefExpr=c:2:14 Extent=[62:23 - 62:24]
// CHECK: 62:28: UnexposedExpr= Extent=[62:28 - 62:33]
// CHECK: 62:28: IntegerLiteral= Extent=[62:28 - 62:33]
// CHECK: 63:8: BinaryOperator= Extent=[63:8 - 63:18]
// CHECK: 63:8: DeclRefExpr=c:2:14 Extent=[63:8 - 63:9]
// CHECK: 63:13: UnexposedExpr= Extent=[63:13 - 63:18]
// CHECK: 63:13: IntegerLiteral= Extent=[63:13 - 63:18]
// CHECK: 63:23: BinaryOperator= Extent=[63:23 - 63:47]
// CHECK: 63:23: BinaryOperator= Extent=[63:23 - 63:33]
// CHECK: 63:23: DeclRefExpr=c:2:14 Extent=[63:23 - 63:24]
// CHECK: 63:28: UnexposedExpr= Extent=[63:28 - 63:33]
// CHECK: 63:28: IntegerLiteral= Extent=[63:28 - 63:33]
// CHECK: 63:37: BinaryOperator= Extent=[63:37 - 63:47]
// CHECK: 63:37: DeclRefExpr=c:2:14 Extent=[63:37 - 63:38]
// CHECK: 63:42: UnexposedExpr= Extent=[63:42 - 63:47]
// CHECK: 63:42: IntegerLiteral= Extent=[63:42 - 63:47]
// CHECK: 64:9: BinaryOperator= Extent=[64:9 - 64:33]
// CHECK: 64:9: BinaryOperator= Extent=[64:9 - 64:19]
// CHECK: 64:9: DeclRefExpr=c:2:14 Extent=[64:9 - 64:10]
// CHECK: 64:14: UnexposedExpr= Extent=[64:14 - 64:19]
// CHECK: 64:14: IntegerLiteral= Extent=[64:14 - 64:19]
// CHECK: 64:23: BinaryOperator= Extent=[64:23 - 64:33]
// CHECK: 64:23: DeclRefExpr=c:2:14 Extent=[64:23 - 64:24]
// CHECK: 64:28: UnexposedExpr= Extent=[64:28 - 64:33]
// CHECK: 64:28: IntegerLiteral= Extent=[64:28 - 64:33]
// CHECK: 65:8: BinaryOperator= Extent=[65:8 - 65:18]
// CHECK: 65:8: DeclRefExpr=c:2:14 Extent=[65:8 - 65:9]
// CHECK: 65:13: UnexposedExpr= Extent=[65:13 - 65:18]
// CHECK: 65:13: IntegerLiteral= Extent=[65:13 - 65:18]
// CHECK: 65:23: BinaryOperator= Extent=[65:23 - 65:47]
// CHECK: 65:23: BinaryOperator= Extent=[65:23 - 65:33]
// CHECK: 65:23: DeclRefExpr=c:2:14 Extent=[65:23 - 65:24]
// CHECK: 65:28: UnexposedExpr= Extent=[65:28 - 65:33]
// CHECK: 65:28: IntegerLiteral= Extent=[65:28 - 65:33]
// CHECK: 65:37: BinaryOperator= Extent=[65:37 - 65:47]
// CHECK: 65:37: DeclRefExpr=c:2:14 Extent=[65:37 - 65:38]
// CHECK: 65:42: UnexposedExpr= Extent=[65:42 - 65:47]
// CHECK: 65:42: IntegerLiteral= Extent=[65:42 - 65:47]
// CHECK: 66:9: BinaryOperator= Extent=[66:9 - 66:33]
// CHECK: 66:9: BinaryOperator= Extent=[66:9 - 66:19]
// CHECK: 66:9: DeclRefExpr=c:2:14 Extent=[66:9 - 66:10]
// CHECK: 66:14: UnexposedExpr= Extent=[66:14 - 66:19]
// CHECK: 66:14: IntegerLiteral= Extent=[66:14 - 66:19]
// CHECK: 66:23: BinaryOperator= Extent=[66:23 - 66:33]
// CHECK: 66:23: DeclRefExpr=c:2:14 Extent=[66:23 - 66:24]
// CHECK: 66:28: UnexposedExpr= Extent=[66:28 - 66:33]
// CHECK: 66:28: IntegerLiteral= Extent=[66:28 - 66:33]
// CHECK: 67:9: BinaryOperator= Extent=[67:9 - 67:33]
// CHECK: 67:9: BinaryOperator= Extent=[67:9 - 67:19]
// CHECK: 67:9: DeclRefExpr=c:2:14 Extent=[67:9 - 67:10]
// CHECK: 67:14: UnexposedExpr= Extent=[67:14 - 67:19]
// CHECK: 67:14: IntegerLiteral= Extent=[67:14 - 67:19]
// CHECK: 67:23: BinaryOperator= Extent=[67:23 - 67:33]
// CHECK: 67:23: DeclRefExpr=c:2:14 Extent=[67:23 - 67:24]
// CHECK: 67:28: UnexposedExpr= Extent=[67:28 - 67:33]
// CHECK: 67:28: IntegerLiteral= Extent=[67:28 - 67:33]
// CHECK: 68:9: BinaryOperator= Extent=[68:9 - 68:33]
// CHECK: 68:9: BinaryOperator= Extent=[68:9 - 68:19]
// CHECK: 68:9: DeclRefExpr=c:2:14 Extent=[68:9 - 68:10]
// CHECK: 68:14: UnexposedExpr= Extent=[68:14 - 68:19]
// CHECK: 68:14: IntegerLiteral= Extent=[68:14 - 68:19]
// CHECK: 68:23: BinaryOperator= Extent=[68:23 - 68:33]
// CHECK: 68:23: DeclRefExpr=c:2:14 Extent=[68:23 - 68:24]
// CHECK: 68:28: UnexposedExpr= Extent=[68:28 - 68:33]
// CHECK: 68:28: IntegerLiteral= Extent=[68:28 - 68:33]
// CHECK: 69:9: BinaryOperator= Extent=[69:9 - 69:33]
// CHECK: 69:9: BinaryOperator= Extent=[69:9 - 69:19]
// CHECK: 69:9: DeclRefExpr=c:2:14 Extent=[69:9 - 69:10]
// CHECK: 69:14: UnexposedExpr= Extent=[69:14 - 69:19]
// CHECK: 69:14: IntegerLiteral= Extent=[69:14 - 69:19]
// CHECK: 69:23: BinaryOperator= Extent=[69:23 - 69:33]
// CHECK: 69:23: DeclRefExpr=c:2:14 Extent=[69:23 - 69:24]
// CHECK: 69:28: UnexposedExpr= Extent=[69:28 - 69:33]
// CHECK: 69:28: IntegerLiteral= Extent=[69:28 - 69:33]
// CHECK: 70:8: BinaryOperator= Extent=[70:8 - 70:18]
// CHECK: 70:8: DeclRefExpr=c:2:14 Extent=[70:8 - 70:9]
// CHECK: 70:13: UnexposedExpr= Extent=[70:13 - 70:18]
// CHECK: 70:13: IntegerLiteral= Extent=[70:13 - 70:18]
// CHECK: 70:22: BinaryOperator= Extent=[70:22 - 70:32]
// CHECK: 70:22: DeclRefExpr=c:2:14 Extent=[70:22 - 70:23]
// CHECK: 70:27: UnexposedExpr= Extent=[70:27 - 70:32]
// CHECK: 70:27: IntegerLiteral= Extent=[70:27 - 70:32]
// CHECK: 70:37: BinaryOperator= Extent=[70:37 - 70:61]
// CHECK: 70:37: BinaryOperator= Extent=[70:37 - 70:47]
// CHECK: 70:37: DeclRefExpr=c:2:14 Extent=[70:37 - 70:38]
// CHECK: 70:42: UnexposedExpr= Extent=[70:42 - 70:47]
// CHECK: 70:42: IntegerLiteral= Extent=[70:42 - 70:47]
// CHECK: 70:51: BinaryOperator= Extent=[70:51 - 70:61]
// CHECK: 70:51: DeclRefExpr=c:2:14 Extent=[70:51 - 70:52]
// CHECK: 70:56: UnexposedExpr= Extent=[70:56 - 70:61]
// CHECK: 70:56: IntegerLiteral= Extent=[70:56 - 70:61]
// CHECK: 71:9: BinaryOperator= Extent=[71:9 - 71:33]
// CHECK: 71:9: BinaryOperator= Extent=[71:9 - 71:19]
// CHECK: 71:9: DeclRefExpr=c:2:14 Extent=[71:9 - 71:10]
// CHECK: 71:14: UnexposedExpr= Extent=[71:14 - 71:19]
// CHECK: 71:14: IntegerLiteral= Extent=[71:14 - 71:19]
// CHECK: 71:23: BinaryOperator= Extent=[71:23 - 71:33]
// CHECK: 71:23: DeclRefExpr=c:2:14 Extent=[71:23 - 71:24]
// CHECK: 71:28: UnexposedExpr= Extent=[71:28 - 71:33]
// CHECK: 71:28: IntegerLiteral= Extent=[71:28 - 71:33]
// CHECK: 72:9: BinaryOperator= Extent=[72:9 - 72:33]
// CHECK: 72:9: BinaryOperator= Extent=[72:9 - 72:19]
// CHECK: 72:9: DeclRefExpr=c:2:14 Extent=[72:9 - 72:10]
// CHECK: 72:14: UnexposedExpr= Extent=[72:14 - 72:19]
// CHECK: 72:14: IntegerLiteral= Extent=[72:14 - 72:19]
// CHECK: 72:23: BinaryOperator= Extent=[72:23 - 72:33]
// CHECK: 72:23: DeclRefExpr=c:2:14 Extent=[72:23 - 72:24]
// CHECK: 72:28: UnexposedExpr= Extent=[72:28 - 72:33]
// CHECK: 72:28: IntegerLiteral= Extent=[72:28 - 72:33]
// CHECK: 73:9: BinaryOperator= Extent=[73:9 - 73:33]
// CHECK: 73:9: BinaryOperator= Extent=[73:9 - 73:19]
// CHECK: 73:9: DeclRefExpr=c:2:14 Extent=[73:9 - 73:10]
// CHECK: 73:14: UnexposedExpr= Extent=[73:14 - 73:19]
// CHECK: 73:14: IntegerLiteral= Extent=[73:14 - 73:19]
// CHECK: 73:23: BinaryOperator= Extent=[73:23 - 73:33]
// CHECK: 73:23: DeclRefExpr=c:2:14 Extent=[73:23 - 73:24]
// CHECK: 73:28: UnexposedExpr= Extent=[73:28 - 73:33]
// CHECK: 73:28: IntegerLiteral= Extent=[73:28 - 73:33]
// CHECK: 74:9: BinaryOperator= Extent=[74:9 - 74:33]
// CHECK: 74:9: BinaryOperator= Extent=[74:9 - 74:19]
// CHECK: 74:9: DeclRefExpr=c:2:14 Extent=[74:9 - 74:10]
// CHECK: 74:14: UnexposedExpr= Extent=[74:14 - 74:19]
// CHECK: 74:14: IntegerLiteral= Extent=[74:14 - 74:19]
// CHECK: 74:23: BinaryOperator= Extent=[74:23 - 74:33]
// CHECK: 74:23: DeclRefExpr=c:2:14 Extent=[74:23 - 74:24]
// CHECK: 74:28: UnexposedExpr= Extent=[74:28 - 74:33]
// CHECK: 74:28: IntegerLiteral= Extent=[74:28 - 74:33]
// CHECK: 75:9: BinaryOperator= Extent=[75:9 - 75:33]
// CHECK: 75:9: BinaryOperator= Extent=[75:9 - 75:19]
// CHECK: 75:9: DeclRefExpr=c:2:14 Extent=[75:9 - 75:10]
// CHECK: 75:14: UnexposedExpr= Extent=[75:14 - 75:19]
// CHECK: 75:14: IntegerLiteral= Extent=[75:14 - 75:19]
// CHECK: 75:23: BinaryOperator= Extent=[75:23 - 75:33]
// CHECK: 75:23: DeclRefExpr=c:2:14 Extent=[75:23 - 75:24]
// CHECK: 75:28: UnexposedExpr= Extent=[75:28 - 75:33]
// CHECK: 75:28: IntegerLiteral= Extent=[75:28 - 75:33]
// CHECK: 76:8: BinaryOperator= Extent=[76:8 - 76:18]
// CHECK: 76:8: DeclRefExpr=c:2:14 Extent=[76:8 - 76:9]
// CHECK: 76:13: UnexposedExpr= Extent=[76:13 - 76:18]
// CHECK: 76:13: IntegerLiteral= Extent=[76:13 - 76:18]
// CHECK: 76:23: BinaryOperator= Extent=[76:23 - 76:47]
// CHECK: 76:23: BinaryOperator= Extent=[76:23 - 76:33]
// CHECK: 76:23: DeclRefExpr=c:2:14 Extent=[76:23 - 76:24]
// CHECK: 76:28: UnexposedExpr= Extent=[76:28 - 76:33]
// CHECK: 76:28: IntegerLiteral= Extent=[76:28 - 76:33]
// CHECK: 76:37: BinaryOperator= Extent=[76:37 - 76:47]
// CHECK: 76:37: DeclRefExpr=c:2:14 Extent=[76:37 - 76:38]
// CHECK: 76:42: UnexposedExpr= Extent=[76:42 - 76:47]
// CHECK: 76:42: IntegerLiteral= Extent=[76:42 - 76:47]
// CHECK: 77:9: BinaryOperator= Extent=[77:9 - 77:33]
// CHECK: 77:9: BinaryOperator= Extent=[77:9 - 77:19]
// CHECK: 77:9: DeclRefExpr=c:2:14 Extent=[77:9 - 77:10]
// CHECK: 77:14: UnexposedExpr= Extent=[77:14 - 77:19]
// CHECK: 77:14: IntegerLiteral= Extent=[77:14 - 77:19]
// CHECK: 77:23: BinaryOperator= Extent=[77:23 - 77:33]
// CHECK: 77:23: DeclRefExpr=c:2:14 Extent=[77:23 - 77:24]
// CHECK: 77:28: UnexposedExpr= Extent=[77:28 - 77:33]
// CHECK: 77:28: IntegerLiteral= Extent=[77:28 - 77:33]
// CHECK: 78:9: BinaryOperator= Extent=[78:9 - 78:33]
// CHECK: 78:9: BinaryOperator= Extent=[78:9 - 78:19]
// CHECK: 78:9: DeclRefExpr=c:2:14 Extent=[78:9 - 78:10]
// CHECK: 78:14: UnexposedExpr= Extent=[78:14 - 78:19]
// CHECK: 78:14: IntegerLiteral= Extent=[78:14 - 78:19]
// CHECK: 78:23: BinaryOperator= Extent=[78:23 - 78:33]
// CHECK: 78:23: DeclRefExpr=c:2:14 Extent=[78:23 - 78:24]
// CHECK: 78:28: UnexposedExpr= Extent=[78:28 - 78:33]
// CHECK: 78:28: IntegerLiteral= Extent=[78:28 - 78:33]
// CHECK: 79:9: BinaryOperator= Extent=[79:9 - 79:33]
// CHECK: 79:9: BinaryOperator= Extent=[79:9 - 79:19]
// CHECK: 79:9: DeclRefExpr=c:2:14 Extent=[79:9 - 79:10]
// CHECK: 79:14: UnexposedExpr= Extent=[79:14 - 79:19]
// CHECK: 79:14: IntegerLiteral= Extent=[79:14 - 79:19]
// CHECK: 79:23: BinaryOperator= Extent=[79:23 - 79:33]
// CHECK: 79:23: DeclRefExpr=c:2:14 Extent=[79:23 - 79:24]
// CHECK: 79:28: UnexposedExpr= Extent=[79:28 - 79:33]
// CHECK: 79:28: IntegerLiteral= Extent=[79:28 - 79:33]
// CHECK: 80:9: BinaryOperator= Extent=[80:9 - 80:33]
// CHECK: 80:9: BinaryOperator= Extent=[80:9 - 80:19]
// CHECK: 80:9: DeclRefExpr=c:2:14 Extent=[80:9 - 80:10]
// CHECK: 80:14: UnexposedExpr= Extent=[80:14 - 80:19]
// CHECK: 80:14: IntegerLiteral= Extent=[80:14 - 80:19]
// CHECK: 80:23: BinaryOperator= Extent=[80:23 - 80:33]
// CHECK: 80:23: DeclRefExpr=c:2:14 Extent=[80:23 - 80:24]
// CHECK: 80:28: UnexposedExpr= Extent=[80:28 - 80:33]
// CHECK: 80:28: IntegerLiteral= Extent=[80:28 - 80:33]
// CHECK: 81:9: BinaryOperator= Extent=[81:9 - 81:33]
// CHECK: 81:9: BinaryOperator= Extent=[81:9 - 81:19]
// CHECK: 81:9: DeclRefExpr=c:2:14 Extent=[81:9 - 81:10]
// CHECK: 81:14: UnexposedExpr= Extent=[81:14 - 81:19]
// CHECK: 81:14: IntegerLiteral= Extent=[81:14 - 81:19]
// CHECK: 81:23: BinaryOperator= Extent=[81:23 - 81:33]
// CHECK: 81:23: DeclRefExpr=c:2:14 Extent=[81:23 - 81:24]
// CHECK: 81:28: UnexposedExpr= Extent=[81:28 - 81:33]
// CHECK: 81:28: IntegerLiteral= Extent=[81:28 - 81:33]
// CHECK: 82:8: BinaryOperator= Extent=[82:8 - 82:18]
// CHECK: 82:8: DeclRefExpr=c:2:14 Extent=[82:8 - 82:9]
// CHECK: 82:13: UnexposedExpr= Extent=[82:13 - 82:18]
// CHECK: 82:13: IntegerLiteral= Extent=[82:13 - 82:18]
// CHECK: 82:23: BinaryOperator= Extent=[82:23 - 82:47]
// CHECK: 82:23: BinaryOperator= Extent=[82:23 - 82:33]
// CHECK: 82:23: DeclRefExpr=c:2:14 Extent=[82:23 - 82:24]
// CHECK: 82:28: UnexposedExpr= Extent=[82:28 - 82:33]
// CHECK: 82:28: IntegerLiteral= Extent=[82:28 - 82:33]
// CHECK: 82:37: BinaryOperator= Extent=[82:37 - 82:47]
// CHECK: 82:37: DeclRefExpr=c:2:14 Extent=[82:37 - 82:38]
// CHECK: 82:42: UnexposedExpr= Extent=[82:42 - 82:47]
// CHECK: 82:42: IntegerLiteral= Extent=[82:42 - 82:47]
// CHECK: 83:9: BinaryOperator= Extent=[83:9 - 83:33]
// CHECK: 83:9: BinaryOperator= Extent=[83:9 - 83:19]
// CHECK: 83:9: DeclRefExpr=c:2:14 Extent=[83:9 - 83:10]
// CHECK: 83:14: UnexposedExpr= Extent=[83:14 - 83:19]
// CHECK: 83:14: IntegerLiteral= Extent=[83:14 - 83:19]
// CHECK: 83:23: BinaryOperator= Extent=[83:23 - 83:33]
// CHECK: 83:23: DeclRefExpr=c:2:14 Extent=[83:23 - 83:24]
// CHECK: 83:28: UnexposedExpr= Extent=[83:28 - 83:33]
// CHECK: 83:28: IntegerLiteral= Extent=[83:28 - 83:33]
// CHECK: 84:9: BinaryOperator= Extent=[84:9 - 84:33]
// CHECK: 84:9: BinaryOperator= Extent=[84:9 - 84:19]
// CHECK: 84:9: DeclRefExpr=c:2:14 Extent=[84:9 - 84:10]
// CHECK: 84:14: UnexposedExpr= Extent=[84:14 - 84:19]
// CHECK: 84:14: IntegerLiteral= Extent=[84:14 - 84:19]
// CHECK: 84:23: BinaryOperator= Extent=[84:23 - 84:33]
// CHECK: 84:23: DeclRefExpr=c:2:14 Extent=[84:23 - 84:24]
// CHECK: 84:28: UnexposedExpr= Extent=[84:28 - 84:33]
// CHECK: 84:28: IntegerLiteral= Extent=[84:28 - 84:33]
// CHECK: 85:9: BinaryOperator= Extent=[85:9 - 85:33]
// CHECK: 85:9: BinaryOperator= Extent=[85:9 - 85:19]
// CHECK: 85:9: DeclRefExpr=c:2:14 Extent=[85:9 - 85:10]
// CHECK: 85:14: UnexposedExpr= Extent=[85:14 - 85:19]
// CHECK: 85:14: IntegerLiteral= Extent=[85:14 - 85:19]
// CHECK: 85:23: BinaryOperator= Extent=[85:23 - 85:33]
// CHECK: 85:23: DeclRefExpr=c:2:14 Extent=[85:23 - 85:24]
// CHECK: 85:28: UnexposedExpr= Extent=[85:28 - 85:33]
// CHECK: 85:28: IntegerLiteral= Extent=[85:28 - 85:33]
// CHECK: 86:9: BinaryOperator= Extent=[86:9 - 86:33]
// CHECK: 86:9: BinaryOperator= Extent=[86:9 - 86:19]
// CHECK: 86:9: DeclRefExpr=c:2:14 Extent=[86:9 - 86:10]
// CHECK: 86:14: UnexposedExpr= Extent=[86:14 - 86:19]
// CHECK: 86:14: IntegerLiteral= Extent=[86:14 - 86:19]
// CHECK: 86:23: BinaryOperator= Extent=[86:23 - 86:33]
// CHECK: 86:23: DeclRefExpr=c:2:14 Extent=[86:23 - 86:24]
// CHECK: 86:28: UnexposedExpr= Extent=[86:28 - 86:33]
// CHECK: 86:28: IntegerLiteral= Extent=[86:28 - 86:33]
// CHECK: 87:9: BinaryOperator= Extent=[87:9 - 87:33]
// CHECK: 87:9: BinaryOperator= Extent=[87:9 - 87:19]
// CHECK: 87:9: DeclRefExpr=c:2:14 Extent=[87:9 - 87:10]
// CHECK: 87:14: UnexposedExpr= Extent=[87:14 - 87:19]
// CHECK: 87:14: IntegerLiteral= Extent=[87:14 - 87:19]
// CHECK: 87:23: BinaryOperator= Extent=[87:23 - 87:33]
// CHECK: 87:23: DeclRefExpr=c:2:14 Extent=[87:23 - 87:24]
// CHECK: 87:28: UnexposedExpr= Extent=[87:28 - 87:33]
// CHECK: 87:28: IntegerLiteral= Extent=[87:28 - 87:33]
// CHECK: 88:9: BinaryOperator= Extent=[88:9 - 88:33]
// CHECK: 88:9: BinaryOperator= Extent=[88:9 - 88:19]
// CHECK: 88:9: DeclRefExpr=c:2:14 Extent=[88:9 - 88:10]
// CHECK: 88:14: UnexposedExpr= Extent=[88:14 - 88:19]
// CHECK: 88:14: IntegerLiteral= Extent=[88:14 - 88:19]
// CHECK: 88:23: BinaryOperator= Extent=[88:23 - 88:33]
// CHECK: 88:23: DeclRefExpr=c:2:14 Extent=[88:23 - 88:24]
// CHECK: 88:28: UnexposedExpr= Extent=[88:28 - 88:33]
// CHECK: 88:28: IntegerLiteral= Extent=[88:28 - 88:33]
// CHECK: 89:9: BinaryOperator= Extent=[89:9 - 89:33]
// CHECK: 89:9: BinaryOperator= Extent=[89:9 - 89:19]
// CHECK: 89:9: DeclRefExpr=c:2:14 Extent=[89:9 - 89:10]
// CHECK: 89:14: UnexposedExpr= Extent=[89:14 - 89:19]
// CHECK: 89:14: IntegerLiteral= Extent=[89:14 - 89:19]
// CHECK: 89:23: BinaryOperator= Extent=[89:23 - 89:33]
// CHECK: 89:23: DeclRefExpr=c:2:14 Extent=[89:23 - 89:24]
// CHECK: 89:28: UnexposedExpr= Extent=[89:28 - 89:33]
// CHECK: 89:28: IntegerLiteral= Extent=[89:28 - 89:33]
// CHECK: 90:9: BinaryOperator= Extent=[90:9 - 90:33]
// CHECK: 90:9: BinaryOperator= Extent=[90:9 - 90:19]
// CHECK: 90:9: DeclRefExpr=c:2:14 Extent=[90:9 - 90:10]
// CHECK: 90:14: UnexposedExpr= Extent=[90:14 - 90:19]
// CHECK: 90:14: IntegerLiteral= Extent=[90:14 - 90:19]
// CHECK: 90:23: BinaryOperator= Extent=[90:23 - 90:33]
// CHECK: 90:23: DeclRefExpr=c:2:14 Extent=[90:23 - 90:24]
// CHECK: 90:28: UnexposedExpr= Extent=[90:28 - 90:33]
// CHECK: 90:28: IntegerLiteral= Extent=[90:28 - 90:33]
// CHECK: 91:9: BinaryOperator= Extent=[91:9 - 91:33]
// CHECK: 91:9: BinaryOperator= Extent=[91:9 - 91:19]
// CHECK: 91:9: DeclRefExpr=c:2:14 Extent=[91:9 - 91:10]
// CHECK: 91:14: UnexposedExpr= Extent=[91:14 - 91:19]
// CHECK: 91:14: IntegerLiteral= Extent=[91:14 - 91:19]
// CHECK: 91:23: BinaryOperator= Extent=[91:23 - 91:33]
// CHECK: 91:23: DeclRefExpr=c:2:14 Extent=[91:23 - 91:24]
// CHECK: 91:28: UnexposedExpr= Extent=[91:28 - 91:33]
// CHECK: 91:28: IntegerLiteral= Extent=[91:28 - 91:33]
// CHECK: 92:9: BinaryOperator= Extent=[92:9 - 92:33]
// CHECK: 92:9: BinaryOperator= Extent=[92:9 - 92:19]
// CHECK: 92:9: DeclRefExpr=c:2:14 Extent=[92:9 - 92:10]
// CHECK: 92:14: UnexposedExpr= Extent=[92:14 - 92:19]
// CHECK: 92:14: IntegerLiteral= Extent=[92:14 - 92:19]
// CHECK: 92:23: BinaryOperator= Extent=[92:23 - 92:33]
// CHECK: 92:23: DeclRefExpr=c:2:14 Extent=[92:23 - 92:24]
// CHECK: 92:28: UnexposedExpr= Extent=[92:28 - 92:33]
// CHECK: 92:28: IntegerLiteral= Extent=[92:28 - 92:33]
// CHECK: 93:9: BinaryOperator= Extent=[93:9 - 93:33]
// CHECK: 93:9: BinaryOperator= Extent=[93:9 - 93:19]
// CHECK: 93:9: DeclRefExpr=c:2:14 Extent=[93:9 - 93:10]
// CHECK: 93:14: UnexposedExpr= Extent=[93:14 - 93:19]
// CHECK: 93:14: IntegerLiteral= Extent=[93:14 - 93:19]
// CHECK: 93:23: BinaryOperator= Extent=[93:23 - 93:33]
// CHECK: 93:23: DeclRefExpr=c:2:14 Extent=[93:23 - 93:24]
// CHECK: 93:28: UnexposedExpr= Extent=[93:28 - 93:33]
// CHECK: 93:28: IntegerLiteral= Extent=[93:28 - 93:33]
// CHECK: 94:9: BinaryOperator= Extent=[94:9 - 94:33]
// CHECK: 94:9: BinaryOperator= Extent=[94:9 - 94:19]
// CHECK: 94:9: DeclRefExpr=c:2:14 Extent=[94:9 - 94:10]
// CHECK: 94:14: UnexposedExpr= Extent=[94:14 - 94:19]
// CHECK: 94:14: IntegerLiteral= Extent=[94:14 - 94:19]
// CHECK: 94:23: BinaryOperator= Extent=[94:23 - 94:33]
// CHECK: 94:23: DeclRefExpr=c:2:14 Extent=[94:23 - 94:24]
// CHECK: 94:28: UnexposedExpr= Extent=[94:28 - 94:33]
// CHECK: 94:28: IntegerLiteral= Extent=[94:28 - 94:33]
// CHECK: 95:9: BinaryOperator= Extent=[95:9 - 95:33]
// CHECK: 95:9: BinaryOperator= Extent=[95:9 - 95:19]
// CHECK: 95:9: DeclRefExpr=c:2:14 Extent=[95:9 - 95:10]
// CHECK: 95:14: UnexposedExpr= Extent=[95:14 - 95:19]
// CHECK: 95:14: IntegerLiteral= Extent=[95:14 - 95:19]
// CHECK: 95:23: BinaryOperator= Extent=[95:23 - 95:33]
// CHECK: 95:23: DeclRefExpr=c:2:14 Extent=[95:23 - 95:24]
// CHECK: 95:28: UnexposedExpr= Extent=[95:28 - 95:33]
// CHECK: 95:28: IntegerLiteral= Extent=[95:28 - 95:33]
// CHECK: 96:9: BinaryOperator= Extent=[96:9 - 96:33]
// CHECK: 96:9: BinaryOperator= Extent=[96:9 - 96:19]
// CHECK: 96:9: DeclRefExpr=c:2:14 Extent=[96:9 - 96:10]
// CHECK: 96:14: UnexposedExpr= Extent=[96:14 - 96:19]
// CHECK: 96:14: IntegerLiteral= Extent=[96:14 - 96:19]
// CHECK: 96:23: BinaryOperator= Extent=[96:23 - 96:33]
// CHECK: 96:23: DeclRefExpr=c:2:14 Extent=[96:23 - 96:24]
// CHECK: 96:28: UnexposedExpr= Extent=[96:28 - 96:33]
// CHECK: 96:28: IntegerLiteral= Extent=[96:28 - 96:33]
// CHECK: 97:9: BinaryOperator= Extent=[97:9 - 97:33]
// CHECK: 97:9: BinaryOperator= Extent=[97:9 - 97:19]
// CHECK: 97:9: DeclRefExpr=c:2:14 Extent=[97:9 - 97:10]
// CHECK: 97:14: UnexposedExpr= Extent=[97:14 - 97:19]
// CHECK: 97:14: IntegerLiteral= Extent=[97:14 - 97:19]
// CHECK: 97:23: BinaryOperator= Extent=[97:23 - 97:33]
// CHECK: 97:23: DeclRefExpr=c:2:14 Extent=[97:23 - 97:24]
// CHECK: 97:28: UnexposedExpr= Extent=[97:28 - 97:33]
// CHECK: 97:28: IntegerLiteral= Extent=[97:28 - 97:33]
// CHECK: 98:8: BinaryOperator= Extent=[98:8 - 98:18]
// CHECK: 98:8: DeclRefExpr=c:2:14 Extent=[98:8 - 98:9]
// CHECK: 98:13: UnexposedExpr= Extent=[98:13 - 98:18]
// CHECK: 98:13: IntegerLiteral= Extent=[98:13 - 98:18]
// CHECK: 98:23: BinaryOperator= Extent=[98:23 - 98:47]
// CHECK: 98:23: BinaryOperator= Extent=[98:23 - 98:33]
// CHECK: 98:23: DeclRefExpr=c:2:14 Extent=[98:23 - 98:24]
// CHECK: 98:28: UnexposedExpr= Extent=[98:28 - 98:33]
// CHECK: 98:28: IntegerLiteral= Extent=[98:28 - 98:33]
// CHECK: 98:37: BinaryOperator= Extent=[98:37 - 98:47]
// CHECK: 98:37: DeclRefExpr=c:2:14 Extent=[98:37 - 98:38]
// CHECK: 98:42: UnexposedExpr= Extent=[98:42 - 98:47]
// CHECK: 98:42: IntegerLiteral= Extent=[98:42 - 98:47]
// CHECK: 99:9: BinaryOperator= Extent=[99:9 - 99:33]
// CHECK: 99:9: BinaryOperator= Extent=[99:9 - 99:19]
// CHECK: 99:9: DeclRefExpr=c:2:14 Extent=[99:9 - 99:10]
// CHECK: 99:14: UnexposedExpr= Extent=[99:14 - 99:19]
// CHECK: 99:14: IntegerLiteral= Extent=[99:14 - 99:19]
// CHECK: 99:23: BinaryOperator= Extent=[99:23 - 99:33]
// CHECK: 99:23: DeclRefExpr=c:2:14 Extent=[99:23 - 99:24]
// CHECK: 99:28: UnexposedExpr= Extent=[99:28 - 99:33]
// CHECK: 99:28: IntegerLiteral= Extent=[99:28 - 99:33]
// CHECK: 100:9: BinaryOperator= Extent=[100:9 - 100:33]
// CHECK: 100:9: BinaryOperator= Extent=[100:9 - 100:19]
// CHECK: 100:9: DeclRefExpr=c:2:14 Extent=[100:9 - 100:10]
// CHECK: 100:14: UnexposedExpr= Extent=[100:14 - 100:19]
// CHECK: 100:14: IntegerLiteral= Extent=[100:14 - 100:19]
// CHECK: 100:23: BinaryOperator= Extent=[100:23 - 100:33]
// CHECK: 100:23: DeclRefExpr=c:2:14 Extent=[100:23 - 100:24]
// CHECK: 100:28: UnexposedExpr= Extent=[100:28 - 100:33]
// CHECK: 100:28: IntegerLiteral= Extent=[100:28 - 100:33]
// CHECK: 101:9: BinaryOperator= Extent=[101:9 - 101:33]
// CHECK: 101:9: BinaryOperator= Extent=[101:9 - 101:19]
// CHECK: 101:9: DeclRefExpr=c:2:14 Extent=[101:9 - 101:10]
// CHECK: 101:14: UnexposedExpr= Extent=[101:14 - 101:19]
// CHECK: 101:14: IntegerLiteral= Extent=[101:14 - 101:19]
// CHECK: 101:23: BinaryOperator= Extent=[101:23 - 101:33]
// CHECK: 101:23: DeclRefExpr=c:2:14 Extent=[101:23 - 101:24]
// CHECK: 101:28: UnexposedExpr= Extent=[101:28 - 101:33]
// CHECK: 101:28: IntegerLiteral= Extent=[101:28 - 101:33]
// CHECK: 102:9: BinaryOperator= Extent=[102:9 - 102:33]
// CHECK: 102:9: BinaryOperator= Extent=[102:9 - 102:19]
// CHECK: 102:9: DeclRefExpr=c:2:14 Extent=[102:9 - 102:10]
// CHECK: 102:14: UnexposedExpr= Extent=[102:14 - 102:19]
// CHECK: 102:14: IntegerLiteral= Extent=[102:14 - 102:19]
// CHECK: 102:23: BinaryOperator= Extent=[102:23 - 102:33]
// CHECK: 102:23: DeclRefExpr=c:2:14 Extent=[102:23 - 102:24]
// CHECK: 102:28: UnexposedExpr= Extent=[102:28 - 102:33]
// CHECK: 102:28: IntegerLiteral= Extent=[102:28 - 102:33]
// CHECK: 103:9: BinaryOperator= Extent=[103:9 - 103:33]
// CHECK: 103:9: BinaryOperator= Extent=[103:9 - 103:19]
// CHECK: 103:9: DeclRefExpr=c:2:14 Extent=[103:9 - 103:10]
// CHECK: 103:14: UnexposedExpr= Extent=[103:14 - 103:19]
// CHECK: 103:14: IntegerLiteral= Extent=[103:14 - 103:19]
// CHECK: 103:23: BinaryOperator= Extent=[103:23 - 103:33]
// CHECK: 103:23: DeclRefExpr=c:2:14 Extent=[103:23 - 103:24]
// CHECK: 103:28: UnexposedExpr= Extent=[103:28 - 103:33]
// CHECK: 103:28: IntegerLiteral= Extent=[103:28 - 103:33]
// CHECK: 104:9: BinaryOperator= Extent=[104:9 - 104:33]
// CHECK: 104:9: BinaryOperator= Extent=[104:9 - 104:19]
// CHECK: 104:9: DeclRefExpr=c:2:14 Extent=[104:9 - 104:10]
// CHECK: 104:14: UnexposedExpr= Extent=[104:14 - 104:19]
// CHECK: 104:14: IntegerLiteral= Extent=[104:14 - 104:19]
// CHECK: 104:23: BinaryOperator= Extent=[104:23 - 104:33]
// CHECK: 104:23: DeclRefExpr=c:2:14 Extent=[104:23 - 104:24]
// CHECK: 104:28: UnexposedExpr= Extent=[104:28 - 104:33]
// CHECK: 104:28: IntegerLiteral= Extent=[104:28 - 104:33]
// CHECK: 105:8: BinaryOperator= Extent=[105:8 - 105:18]
// CHECK: 105:8: DeclRefExpr=c:2:14 Extent=[105:8 - 105:9]
// CHECK: 105:13: UnexposedExpr= Extent=[105:13 - 105:18]
// CHECK: 105:13: IntegerLiteral= Extent=[105:13 - 105:18]
// CHECK: 105:23: BinaryOperator= Extent=[105:23 - 105:47]
// CHECK: 105:23: BinaryOperator= Extent=[105:23 - 105:33]
// CHECK: 105:23: DeclRefExpr=c:2:14 Extent=[105:23 - 105:24]
// CHECK: 105:28: UnexposedExpr= Extent=[105:28 - 105:33]
// CHECK: 105:28: IntegerLiteral= Extent=[105:28 - 105:33]
// CHECK: 105:37: BinaryOperator= Extent=[105:37 - 105:47]
// CHECK: 105:37: DeclRefExpr=c:2:14 Extent=[105:37 - 105:38]
// CHECK: 105:42: UnexposedExpr= Extent=[105:42 - 105:47]
// CHECK: 105:42: IntegerLiteral= Extent=[105:42 - 105:47]
// CHECK: 106:9: BinaryOperator= Extent=[106:9 - 106:33]
// CHECK: 106:9: BinaryOperator= Extent=[106:9 - 106:19]
// CHECK: 106:9: DeclRefExpr=c:2:14 Extent=[106:9 - 106:10]
// CHECK: 106:14: UnexposedExpr= Extent=[106:14 - 106:19]
// CHECK: 106:14: IntegerLiteral= Extent=[106:14 - 106:19]
// CHECK: 106:23: BinaryOperator= Extent=[106:23 - 106:33]
// CHECK: 106:23: DeclRefExpr=c:2:14 Extent=[106:23 - 106:24]
// CHECK: 106:28: UnexposedExpr= Extent=[106:28 - 106:33]
// CHECK: 106:28: IntegerLiteral= Extent=[106:28 - 106:33]
// CHECK: 107:9: BinaryOperator= Extent=[107:9 - 107:33]
// CHECK: 107:9: BinaryOperator= Extent=[107:9 - 107:19]
// CHECK: 107:9: DeclRefExpr=c:2:14 Extent=[107:9 - 107:10]
// CHECK: 107:14: UnexposedExpr= Extent=[107:14 - 107:19]
// CHECK: 107:14: IntegerLiteral= Extent=[107:14 - 107:19]
// CHECK: 107:23: BinaryOperator= Extent=[107:23 - 107:33]
// CHECK: 107:23: DeclRefExpr=c:2:14 Extent=[107:23 - 107:24]
// CHECK: 107:28: UnexposedExpr= Extent=[107:28 - 107:33]
// CHECK: 107:28: IntegerLiteral= Extent=[107:28 - 107:33]
// CHECK: 108:8: BinaryOperator= Extent=[108:8 - 108:18]
// CHECK: 108:8: DeclRefExpr=c:2:14 Extent=[108:8 - 108:9]
// CHECK: 108:13: UnexposedExpr= Extent=[108:13 - 108:18]
// CHECK: 108:13: IntegerLiteral= Extent=[108:13 - 108:18]
// CHECK: 108:23: BinaryOperator= Extent=[108:23 - 108:47]
// CHECK: 108:23: BinaryOperator= Extent=[108:23 - 108:33]
// CHECK: 108:23: DeclRefExpr=c:2:14 Extent=[108:23 - 108:24]
// CHECK: 108:28: UnexposedExpr= Extent=[108:28 - 108:33]
// CHECK: 108:28: IntegerLiteral= Extent=[108:28 - 108:33]
// CHECK: 108:37: BinaryOperator= Extent=[108:37 - 108:47]
// CHECK: 108:37: DeclRefExpr=c:2:14 Extent=[108:37 - 108:38]
// CHECK: 108:42: UnexposedExpr= Extent=[108:42 - 108:47]
// CHECK: 108:42: IntegerLiteral= Extent=[108:42 - 108:47]
// CHECK: 109:8: BinaryOperator= Extent=[109:8 - 109:18]
// CHECK: 109:8: DeclRefExpr=c:2:14 Extent=[109:8 - 109:9]
// CHECK: 109:13: UnexposedExpr= Extent=[109:13 - 109:18]
// CHECK: 109:13: IntegerLiteral= Extent=[109:13 - 109:18]
// CHECK: 109:22: BinaryOperator= Extent=[109:22 - 109:32]
// CHECK: 109:22: DeclRefExpr=c:2:14 Extent=[109:22 - 109:23]
// CHECK: 109:27: UnexposedExpr= Extent=[109:27 - 109:32]
// CHECK: 109:27: IntegerLiteral= Extent=[109:27 - 109:32]
// CHECK: 109:37: BinaryOperator= Extent=[109:37 - 109:61]
// CHECK: 109:37: BinaryOperator= Extent=[109:37 - 109:47]
// CHECK: 109:37: DeclRefExpr=c:2:14 Extent=[109:37 - 109:38]
// CHECK: 109:42: UnexposedExpr= Extent=[109:42 - 109:47]
// CHECK: 109:42: IntegerLiteral= Extent=[109:42 - 109:47]
// CHECK: 109:51: BinaryOperator= Extent=[109:51 - 109:61]
// CHECK: 109:51: DeclRefExpr=c:2:14 Extent=[109:51 - 109:52]
// CHECK: 109:56: UnexposedExpr= Extent=[109:56 - 109:61]
// CHECK: 109:56: IntegerLiteral= Extent=[109:56 - 109:61]
// CHECK: 110:9: BinaryOperator= Extent=[110:9 - 110:33]
// CHECK: 110:9: BinaryOperator= Extent=[110:9 - 110:19]
// CHECK: 110:9: DeclRefExpr=c:2:14 Extent=[110:9 - 110:10]
// CHECK: 110:14: UnexposedExpr= Extent=[110:14 - 110:19]
// CHECK: 110:14: IntegerLiteral= Extent=[110:14 - 110:19]
// CHECK: 110:23: BinaryOperator= Extent=[110:23 - 110:33]
// CHECK: 110:23: DeclRefExpr=c:2:14 Extent=[110:23 - 110:24]
// CHECK: 110:28: UnexposedExpr= Extent=[110:28 - 110:33]
// CHECK: 110:28: IntegerLiteral= Extent=[110:28 - 110:33]
// CHECK: 111:9: BinaryOperator= Extent=[111:9 - 111:33]
// CHECK: 111:9: BinaryOperator= Extent=[111:9 - 111:19]
// CHECK: 111:9: DeclRefExpr=c:2:14 Extent=[111:9 - 111:10]
// CHECK: 111:14: UnexposedExpr= Extent=[111:14 - 111:19]
// CHECK: 111:14: IntegerLiteral= Extent=[111:14 - 111:19]
// CHECK: 111:23: BinaryOperator= Extent=[111:23 - 111:33]
// CHECK: 111:23: DeclRefExpr=c:2:14 Extent=[111:23 - 111:24]
// CHECK: 111:28: UnexposedExpr= Extent=[111:28 - 111:33]
// CHECK: 111:28: IntegerLiteral= Extent=[111:28 - 111:33]
// CHECK: 112:8: BinaryOperator= Extent=[112:8 - 112:18]
// CHECK: 112:8: DeclRefExpr=c:2:14 Extent=[112:8 - 112:9]
// CHECK: 112:13: UnexposedExpr= Extent=[112:13 - 112:18]
// CHECK: 112:13: IntegerLiteral= Extent=[112:13 - 112:18]
// CHECK: 112:22: BinaryOperator= Extent=[112:22 - 112:32]
// CHECK: 112:22: DeclRefExpr=c:2:14 Extent=[112:22 - 112:23]
// CHECK: 112:27: UnexposedExpr= Extent=[112:27 - 112:32]
// CHECK: 112:27: IntegerLiteral= Extent=[112:27 - 112:32]
// CHECK: 112:37: BinaryOperator= Extent=[112:37 - 112:61]
// CHECK: 112:37: BinaryOperator= Extent=[112:37 - 112:47]
// CHECK: 112:37: DeclRefExpr=c:2:14 Extent=[112:37 - 112:38]
// CHECK: 112:42: UnexposedExpr= Extent=[112:42 - 112:47]
// CHECK: 112:42: IntegerLiteral= Extent=[112:42 - 112:47]
// CHECK: 112:51: BinaryOperator= Extent=[112:51 - 112:61]
// CHECK: 112:51: DeclRefExpr=c:2:14 Extent=[112:51 - 112:52]
// CHECK: 112:56: UnexposedExpr= Extent=[112:56 - 112:61]
// CHECK: 112:56: IntegerLiteral= Extent=[112:56 - 112:61]
// CHECK: 113:9: BinaryOperator= Extent=[113:9 - 113:33]
// CHECK: 113:9: BinaryOperator= Extent=[113:9 - 113:19]
// CHECK: 113:9: DeclRefExpr=c:2:14 Extent=[113:9 - 113:10]
// CHECK: 113:14: UnexposedExpr= Extent=[113:14 - 113:19]
// CHECK: 113:14: IntegerLiteral= Extent=[113:14 - 113:19]
// CHECK: 113:23: BinaryOperator= Extent=[113:23 - 113:33]
// CHECK: 113:23: DeclRefExpr=c:2:14 Extent=[113:23 - 113:24]
// CHECK: 113:28: UnexposedExpr= Extent=[113:28 - 113:33]
// CHECK: 113:28: IntegerLiteral= Extent=[113:28 - 113:33]
// CHECK: 114:8: BinaryOperator= Extent=[114:8 - 114:18]
// CHECK: 114:8: DeclRefExpr=c:2:14 Extent=[114:8 - 114:9]
// CHECK: 114:13: UnexposedExpr= Extent=[114:13 - 114:18]
// CHECK: 114:13: IntegerLiteral= Extent=[114:13 - 114:18]
// CHECK: 114:23: BinaryOperator= Extent=[114:23 - 114:47]
// CHECK: 114:23: BinaryOperator= Extent=[114:23 - 114:33]
// CHECK: 114:23: DeclRefExpr=c:2:14 Extent=[114:23 - 114:24]
// CHECK: 114:28: UnexposedExpr= Extent=[114:28 - 114:33]
// CHECK: 114:28: IntegerLiteral= Extent=[114:28 - 114:33]
// CHECK: 114:37: BinaryOperator= Extent=[114:37 - 114:47]
// CHECK: 114:37: DeclRefExpr=c:2:14 Extent=[114:37 - 114:38]
// CHECK: 114:42: UnexposedExpr= Extent=[114:42 - 114:47]
// CHECK: 114:42: IntegerLiteral= Extent=[114:42 - 114:47]
// CHECK: 115:8: BinaryOperator= Extent=[115:8 - 115:18]
// CHECK: 115:8: DeclRefExpr=c:2:14 Extent=[115:8 - 115:9]
// CHECK: 115:13: UnexposedExpr= Extent=[115:13 - 115:18]
// CHECK: 115:13: IntegerLiteral= Extent=[115:13 - 115:18]
// CHECK: 115:23: BinaryOperator= Extent=[115:23 - 115:47]
// CHECK: 115:23: BinaryOperator= Extent=[115:23 - 115:33]
// CHECK: 115:23: DeclRefExpr=c:2:14 Extent=[115:23 - 115:24]
// CHECK: 115:28: UnexposedExpr= Extent=[115:28 - 115:33]
// CHECK: 115:28: IntegerLiteral= Extent=[115:28 - 115:33]
// CHECK: 115:37: BinaryOperator= Extent=[115:37 - 115:47]
// CHECK: 115:37: DeclRefExpr=c:2:14 Extent=[115:37 - 115:38]
// CHECK: 115:42: UnexposedExpr= Extent=[115:42 - 115:47]
// CHECK: 115:42: IntegerLiteral= Extent=[115:42 - 115:47]
// CHECK: 116:9: BinaryOperator= Extent=[116:9 - 116:33]
// CHECK: 116:9: BinaryOperator= Extent=[116:9 - 116:19]
// CHECK: 116:9: DeclRefExpr=c:2:14 Extent=[116:9 - 116:10]
// CHECK: 116:14: UnexposedExpr= Extent=[116:14 - 116:19]
// CHECK: 116:14: IntegerLiteral= Extent=[116:14 - 116:19]
// CHECK: 116:23: BinaryOperator= Extent=[116:23 - 116:33]
// CHECK: 116:23: DeclRefExpr=c:2:14 Extent=[116:23 - 116:24]
// CHECK: 116:28: UnexposedExpr= Extent=[116:28 - 116:33]
// CHECK: 116:28: IntegerLiteral= Extent=[116:28 - 116:33]
// CHECK: 117:9: BinaryOperator= Extent=[117:9 - 117:33]
// CHECK: 117:9: BinaryOperator= Extent=[117:9 - 117:19]
// CHECK: 117:9: DeclRefExpr=c:2:14 Extent=[117:9 - 117:10]
// CHECK: 117:14: UnexposedExpr= Extent=[117:14 - 117:19]
// CHECK: 117:14: IntegerLiteral= Extent=[117:14 - 117:19]
// CHECK: 117:23: BinaryOperator= Extent=[117:23 - 117:33]
// CHECK: 117:23: DeclRefExpr=c:2:14 Extent=[117:23 - 117:24]
// CHECK: 117:28: UnexposedExpr= Extent=[117:28 - 117:33]
// CHECK: 117:28: IntegerLiteral= Extent=[117:28 - 117:33]
// CHECK: 118:9: BinaryOperator= Extent=[118:9 - 118:35]
// CHECK: 118:9: BinaryOperator= Extent=[118:9 - 118:20]
// CHECK: 118:9: DeclRefExpr=c:2:14 Extent=[118:9 - 118:10]
// CHECK: 118:14: UnexposedExpr= Extent=[118:14 - 118:20]
// CHECK: 118:14: IntegerLiteral= Extent=[118:14 - 118:20]
// CHECK: 118:24: BinaryOperator= Extent=[118:24 - 118:35]
// CHECK: 118:24: DeclRefExpr=c:2:14 Extent=[118:24 - 118:25]
// CHECK: 118:29: UnexposedExpr= Extent=[118:29 - 118:35]
// CHECK: 118:29: IntegerLiteral= Extent=[118:29 - 118:35]
// CHECK: 119:9: BinaryOperator= Extent=[119:9 - 119:35]
// CHECK: 119:9: BinaryOperator= Extent=[119:9 - 119:20]
// CHECK: 119:9: DeclRefExpr=c:2:14 Extent=[119:9 - 119:10]
// CHECK: 119:14: UnexposedExpr= Extent=[119:14 - 119:20]
// CHECK: 119:14: IntegerLiteral= Extent=[119:14 - 119:20]
// CHECK: 119:24: BinaryOperator= Extent=[119:24 - 119:35]
// CHECK: 119:24: DeclRefExpr=c:2:14 Extent=[119:24 - 119:25]
// CHECK: 119:29: UnexposedExpr= Extent=[119:29 - 119:35]
// CHECK: 119:29: IntegerLiteral= Extent=[119:29 - 119:35]
// CHECK: 120:8: BinaryOperator= Extent=[120:8 - 120:19]
// CHECK: 120:8: DeclRefExpr=c:2:14 Extent=[120:8 - 120:9]
// CHECK: 120:13: UnexposedExpr= Extent=[120:13 - 120:19]
// CHECK: 120:13: IntegerLiteral= Extent=[120:13 - 120:19]
// CHECK: 120:24: BinaryOperator= Extent=[120:24 - 120:50]
// CHECK: 120:24: BinaryOperator= Extent=[120:24 - 120:35]
// CHECK: 120:24: DeclRefExpr=c:2:14 Extent=[120:24 - 120:25]
// CHECK: 120:29: UnexposedExpr= Extent=[120:29 - 120:35]
// CHECK: 120:29: IntegerLiteral= Extent=[120:29 - 120:35]
// CHECK: 120:39: BinaryOperator= Extent=[120:39 - 120:50]
// CHECK: 120:39: DeclRefExpr=c:2:14 Extent=[120:39 - 120:40]
// CHECK: 120:44: UnexposedExpr= Extent=[120:44 - 120:50]
// CHECK: 120:44: IntegerLiteral= Extent=[120:44 - 120:50]
// CHECK: 121:9: BinaryOperator= Extent=[121:9 - 121:35]
// CHECK: 121:9: BinaryOperator= Extent=[121:9 - 121:20]
// CHECK: 121:9: DeclRefExpr=c:2:14 Extent=[121:9 - 121:10]
// CHECK: 121:14: UnexposedExpr= Extent=[121:14 - 121:20]
// CHECK: 121:14: IntegerLiteral= Extent=[121:14 - 121:20]
// CHECK: 121:24: BinaryOperator= Extent=[121:24 - 121:35]
// CHECK: 121:24: DeclRefExpr=c:2:14 Extent=[121:24 - 121:25]
// CHECK: 121:29: UnexposedExpr= Extent=[121:29 - 121:35]
// CHECK: 121:29: IntegerLiteral= Extent=[121:29 - 121:35]
// CHECK: 122:8: BinaryOperator= Extent=[122:8 - 122:19]
// CHECK: 122:8: DeclRefExpr=c:2:14 Extent=[122:8 - 122:9]
// CHECK: 122:13: UnexposedExpr= Extent=[122:13 - 122:19]
// CHECK: 122:13: IntegerLiteral= Extent=[122:13 - 122:19]
// CHECK: 122:24: BinaryOperator= Extent=[122:24 - 122:50]
// CHECK: 122:24: BinaryOperator= Extent=[122:24 - 122:35]
// CHECK: 122:24: DeclRefExpr=c:2:14 Extent=[122:24 - 122:25]
// CHECK: 122:29: UnexposedExpr= Extent=[122:29 - 122:35]
// CHECK: 122:29: IntegerLiteral= Extent=[122:29 - 122:35]
// CHECK: 122:39: BinaryOperator= Extent=[122:39 - 122:50]
// CHECK: 122:39: DeclRefExpr=c:2:14 Extent=[122:39 - 122:40]
// CHECK: 122:44: UnexposedExpr= Extent=[122:44 - 122:50]
// CHECK: 122:44: IntegerLiteral= Extent=[122:44 - 122:50]
// CHECK: 123:9: BinaryOperator= Extent=[123:9 - 123:35]
// CHECK: 123:9: BinaryOperator= Extent=[123:9 - 123:20]
// CHECK: 123:9: DeclRefExpr=c:2:14 Extent=[123:9 - 123:10]
// CHECK: 123:14: UnexposedExpr= Extent=[123:14 - 123:20]
// CHECK: 123:14: IntegerLiteral= Extent=[123:14 - 123:20]
// CHECK: 123:24: BinaryOperator= Extent=[123:24 - 123:35]
// CHECK: 123:24: DeclRefExpr=c:2:14 Extent=[123:24 - 123:25]
// CHECK: 123:29: UnexposedExpr= Extent=[123:29 - 123:35]
// CHECK: 123:29: IntegerLiteral= Extent=[123:29 - 123:35]
// CHECK: 124:8: BinaryOperator= Extent=[124:8 - 124:19]
// CHECK: 124:8: DeclRefExpr=c:2:14 Extent=[124:8 - 124:9]
// CHECK: 124:13: UnexposedExpr= Extent=[124:13 - 124:19]
// CHECK: 124:13: IntegerLiteral= Extent=[124:13 - 124:19]
// CHECK: 124:23: BinaryOperator= Extent=[124:23 - 124:34]
// CHECK: 124:23: DeclRefExpr=c:2:14 Extent=[124:23 - 124:24]
// CHECK: 124:28: UnexposedExpr= Extent=[124:28 - 124:34]
// CHECK: 124:28: IntegerLiteral= Extent=[124:28 - 124:34]
// CHECK: 124:38: BinaryOperator= Extent=[124:38 - 124:49]
// CHECK: 124:38: DeclRefExpr=c:2:14 Extent=[124:38 - 124:39]
// CHECK: 124:43: UnexposedExpr= Extent=[124:43 - 124:49]
// CHECK: 124:43: IntegerLiteral= Extent=[124:43 - 124:49]
// CHECK: 124:53: BinaryOperator= Extent=[124:53 - 124:64]
// CHECK: 124:53: DeclRefExpr=c:2:14 Extent=[124:53 - 124:54]
// CHECK: 124:58: UnexposedExpr= Extent=[124:58 - 124:64]
// CHECK: 124:58: IntegerLiteral= Extent=[124:58 - 124:64]
// CHECK: 125:5: BinaryOperator= Extent=[125:5 - 125:16]
// CHECK: 125:5: DeclRefExpr=c:2:14 Extent=[125:5 - 125:6]
// CHECK: 125:10: UnexposedExpr= Extent=[125:10 - 125:16]
// CHECK: 125:10: IntegerLiteral= Extent=[125:10 - 125:16]
// CHECK: 125:20: BinaryOperator= Extent=[125:20 - 125:31]
// CHECK: 125:20: DeclRefExpr=c:2:14 Extent=[125:20 - 125:21]
// CHECK: 125:25: UnexposedExpr= Extent=[125:25 - 125:31]
// CHECK: 125:25: IntegerLiteral= Extent=[125:25 - 125:31]
// CHECK: 125:36: BinaryOperator= Extent=[125:36 - 125:62]
// CHECK: 125:36: BinaryOperator= Extent=[125:36 - 125:47]
// CHECK: 125:36: DeclRefExpr=c:2:14 Extent=[125:36 - 125:37]
// CHECK: 125:41: UnexposedExpr= Extent=[125:41 - 125:47]
// CHECK: 125:41: IntegerLiteral= Extent=[125:41 - 125:47]
// CHECK: 125:51: BinaryOperator= Extent=[125:51 - 125:62]
// CHECK: 125:51: DeclRefExpr=c:2:14 Extent=[125:51 - 125:52]
// CHECK: 125:56: UnexposedExpr= Extent=[125:56 - 125:62]
// CHECK: 125:56: IntegerLiteral= Extent=[125:56 - 125:62]
// CHECK: 126:8: BinaryOperator= Extent=[126:8 - 126:19]
// CHECK: 126:8: DeclRefExpr=c:2:14 Extent=[126:8 - 126:9]
// CHECK: 126:13: UnexposedExpr= Extent=[126:13 - 126:19]
// CHECK: 126:13: IntegerLiteral= Extent=[126:13 - 126:19]
// CHECK: 126:24: BinaryOperator= Extent=[126:24 - 126:50]
// CHECK: 126:24: BinaryOperator= Extent=[126:24 - 126:35]
// CHECK: 126:24: DeclRefExpr=c:2:14 Extent=[126:24 - 126:25]
// CHECK: 126:29: UnexposedExpr= Extent=[126:29 - 126:35]
// CHECK: 126:29: IntegerLiteral= Extent=[126:29 - 126:35]
// CHECK: 126:39: BinaryOperator= Extent=[126:39 - 126:50]
// CHECK: 126:39: DeclRefExpr=c:2:14 Extent=[126:39 - 126:40]
// CHECK: 126:44: UnexposedExpr= Extent=[126:44 - 126:50]
// CHECK: 126:44: IntegerLiteral= Extent=[126:44 - 126:50]
// CHECK: 127:8: BinaryOperator= Extent=[127:8 - 127:19]
// CHECK: 127:8: DeclRefExpr=c:2:14 Extent=[127:8 - 127:9]
// CHECK: 127:13: UnexposedExpr= Extent=[127:13 - 127:19]
// CHECK: 127:13: IntegerLiteral= Extent=[127:13 - 127:19]
// CHECK: 127:23: BinaryOperator= Extent=[127:23 - 127:34]
// CHECK: 127:23: DeclRefExpr=c:2:14 Extent=[127:23 - 127:24]
// CHECK: 127:28: UnexposedExpr= Extent=[127:28 - 127:34]
// CHECK: 127:28: IntegerLiteral= Extent=[127:28 - 127:34]
// CHECK: 127:38: BinaryOperator= Extent=[127:38 - 127:49]
// CHECK: 127:38: DeclRefExpr=c:2:14 Extent=[127:38 - 127:39]
// CHECK: 127:43: UnexposedExpr= Extent=[127:43 - 127:49]
// CHECK: 127:43: IntegerLiteral= Extent=[127:43 - 127:49]
// CHECK: 127:53: BinaryOperator= Extent=[127:53 - 127:64]
// CHECK: 127:53: DeclRefExpr=c:2:14 Extent=[127:53 - 127:54]
// CHECK: 127:58: UnexposedExpr= Extent=[127:58 - 127:64]
// CHECK: 127:58: IntegerLiteral= Extent=[127:58 - 127:64]
// CHECK: 128:6: BinaryOperator= Extent=[128:6 - 128:32]
// CHECK: 128:6: BinaryOperator= Extent=[128:6 - 128:17]
// CHECK: 128:6: DeclRefExpr=c:2:14 Extent=[128:6 - 128:7]
// CHECK: 128:11: UnexposedExpr= Extent=[128:11 - 128:17]
// CHECK: 128:11: IntegerLiteral= Extent=[128:11 - 128:17]
// CHECK: 128:21: BinaryOperator= Extent=[128:21 - 128:32]
// CHECK: 128:21: DeclRefExpr=c:2:14 Extent=[128:21 - 128:22]
// CHECK: 128:26: UnexposedExpr= Extent=[128:26 - 128:32]
// CHECK: 128:26: IntegerLiteral= Extent=[128:26 - 128:32]
// CHECK: 129:9: BinaryOperator= Extent=[129:9 - 129:35]
// CHECK: 129:9: BinaryOperator= Extent=[129:9 - 129:20]
// CHECK: 129:9: DeclRefExpr=c:2:14 Extent=[129:9 - 129:10]
// CHECK: 129:14: UnexposedExpr= Extent=[129:14 - 129:20]
// CHECK: 129:14: IntegerLiteral= Extent=[129:14 - 129:20]
// CHECK: 129:24: BinaryOperator= Extent=[129:24 - 129:35]
// CHECK: 129:24: DeclRefExpr=c:2:14 Extent=[129:24 - 129:25]
// CHECK: 129:29: UnexposedExpr= Extent=[129:29 - 129:35]
// CHECK: 129:29: IntegerLiteral= Extent=[129:29 - 129:35]
// CHECK: 130:8: BinaryOperator= Extent=[130:8 - 130:19]
// CHECK: 130:8: DeclRefExpr=c:2:14 Extent=[130:8 - 130:9]
// CHECK: 130:13: UnexposedExpr= Extent=[130:13 - 130:19]
// CHECK: 130:13: IntegerLiteral= Extent=[130:13 - 130:19]
// CHECK: 130:23: BinaryOperator= Extent=[130:23 - 130:34]
// CHECK: 130:23: DeclRefExpr=c:2:14 Extent=[130:23 - 130:24]
// CHECK: 130:28: UnexposedExpr= Extent=[130:28 - 130:34]
// CHECK: 130:28: IntegerLiteral= Extent=[130:28 - 130:34]
// CHECK: 130:38: BinaryOperator= Extent=[130:38 - 130:49]
// CHECK: 130:38: DeclRefExpr=c:2:14 Extent=[130:38 - 130:39]
// CHECK: 130:43: UnexposedExpr= Extent=[130:43 - 130:49]
// CHECK: 130:43: IntegerLiteral= Extent=[130:43 - 130:49]
// CHECK: 130:53: BinaryOperator= Extent=[130:53 - 130:64]
// CHECK: 130:53: DeclRefExpr=c:2:14 Extent=[130:53 - 130:54]
// CHECK: 130:58: UnexposedExpr= Extent=[130:58 - 130:64]
// CHECK: 130:58: IntegerLiteral= Extent=[130:58 - 130:64]
// CHECK: 131:6: BinaryOperator= Extent=[131:6 - 131:32]
// CHECK: 131:6: BinaryOperator= Extent=[131:6 - 131:17]
// CHECK: 131:6: DeclRefExpr=c:2:14 Extent=[131:6 - 131:7]
// CHECK: 131:11: UnexposedExpr= Extent=[131:11 - 131:17]
// CHECK: 131:11: IntegerLiteral= Extent=[131:11 - 131:17]
// CHECK: 131:21: BinaryOperator= Extent=[131:21 - 131:32]
// CHECK: 131:21: DeclRefExpr=c:2:14 Extent=[131:21 - 131:22]
// CHECK: 131:26: UnexposedExpr= Extent=[131:26 - 131:32]
// CHECK: 131:26: IntegerLiteral= Extent=[131:26 - 131:32]
// CHECK: 132:9: BinaryOperator= Extent=[132:9 - 132:35]
// CHECK: 132:9: BinaryOperator= Extent=[132:9 - 132:20]
// CHECK: 132:9: DeclRefExpr=c:2:14 Extent=[132:9 - 132:10]
// CHECK: 132:14: UnexposedExpr= Extent=[132:14 - 132:20]
// CHECK: 132:14: IntegerLiteral= Extent=[132:14 - 132:20]
// CHECK: 132:24: BinaryOperator= Extent=[132:24 - 132:35]
// CHECK: 132:24: DeclRefExpr=c:2:14 Extent=[132:24 - 132:25]
// CHECK: 132:29: UnexposedExpr= Extent=[132:29 - 132:35]
// CHECK: 132:29: IntegerLiteral= Extent=[132:29 - 132:35]
// CHECK: 133:8: BinaryOperator= Extent=[133:8 - 133:19]
// CHECK: 133:8: DeclRefExpr=c:2:14 Extent=[133:8 - 133:9]
// CHECK: 133:13: UnexposedExpr= Extent=[133:13 - 133:19]
// CHECK: 133:13: IntegerLiteral= Extent=[133:13 - 133:19]
// CHECK: 133:24: BinaryOperator= Extent=[133:24 - 133:50]
// CHECK: 133:24: BinaryOperator= Extent=[133:24 - 133:35]
// CHECK: 133:24: DeclRefExpr=c:2:14 Extent=[133:24 - 133:25]
// CHECK: 133:29: UnexposedExpr= Extent=[133:29 - 133:35]
// CHECK: 133:29: IntegerLiteral= Extent=[133:29 - 133:35]
// CHECK: 133:39: BinaryOperator= Extent=[133:39 - 133:50]
// CHECK: 133:39: DeclRefExpr=c:2:14 Extent=[133:39 - 133:40]
// CHECK: 133:44: UnexposedExpr= Extent=[133:44 - 133:50]
// CHECK: 133:44: IntegerLiteral= Extent=[133:44 - 133:50]
// CHECK: 134:8: BinaryOperator= Extent=[134:8 - 134:19]
// CHECK: 134:8: DeclRefExpr=c:2:14 Extent=[134:8 - 134:9]
// CHECK: 134:13: UnexposedExpr= Extent=[134:13 - 134:19]
// CHECK: 134:13: IntegerLiteral= Extent=[134:13 - 134:19]
// CHECK: 134:23: BinaryOperator= Extent=[134:23 - 134:34]
// CHECK: 134:23: DeclRefExpr=c:2:14 Extent=[134:23 - 134:24]
// CHECK: 134:28: UnexposedExpr= Extent=[134:28 - 134:34]
// CHECK: 134:28: IntegerLiteral= Extent=[134:28 - 134:34]
// CHECK: 134:38: BinaryOperator= Extent=[134:38 - 134:49]
// CHECK: 134:38: DeclRefExpr=c:2:14 Extent=[134:38 - 134:39]
// CHECK: 134:43: UnexposedExpr= Extent=[134:43 - 134:49]
// CHECK: 134:43: IntegerLiteral= Extent=[134:43 - 134:49]
// CHECK: 134:54: BinaryOperator= Extent=[134:54 - 134:80]
// CHECK: 134:54: BinaryOperator= Extent=[134:54 - 134:65]
// CHECK: 134:54: DeclRefExpr=c:2:14 Extent=[134:54 - 134:55]
// CHECK: 134:59: UnexposedExpr= Extent=[134:59 - 134:65]
// CHECK: 134:59: IntegerLiteral= Extent=[134:59 - 134:65]
// CHECK: 134:69: BinaryOperator= Extent=[134:69 - 134:80]
// CHECK: 134:69: DeclRefExpr=c:2:14 Extent=[134:69 - 134:70]
// CHECK: 134:74: UnexposedExpr= Extent=[134:74 - 134:80]
// CHECK: 134:74: IntegerLiteral= Extent=[134:74 - 134:80]
// CHECK: 135:9: BinaryOperator= Extent=[135:9 - 135:35]
// CHECK: 135:9: BinaryOperator= Extent=[135:9 - 135:20]
// CHECK: 135:9: DeclRefExpr=c:2:14 Extent=[135:9 - 135:10]
// CHECK: 135:14: UnexposedExpr= Extent=[135:14 - 135:20]
// CHECK: 135:14: IntegerLiteral= Extent=[135:14 - 135:20]
// CHECK: 135:24: BinaryOperator= Extent=[135:24 - 135:35]
// CHECK: 135:24: DeclRefExpr=c:2:14 Extent=[135:24 - 135:25]
// CHECK: 135:29: UnexposedExpr= Extent=[135:29 - 135:35]
// CHECK: 135:29: IntegerLiteral= Extent=[135:29 - 135:35]
// CHECK: 136:9: BinaryOperator= Extent=[136:9 - 136:35]
// CHECK: 136:9: BinaryOperator= Extent=[136:9 - 136:20]
// CHECK: 136:9: DeclRefExpr=c:2:14 Extent=[136:9 - 136:10]
// CHECK: 136:14: UnexposedExpr= Extent=[136:14 - 136:20]
// CHECK: 136:14: IntegerLiteral= Extent=[136:14 - 136:20]
// CHECK: 136:24: BinaryOperator= Extent=[136:24 - 136:35]
// CHECK: 136:24: DeclRefExpr=c:2:14 Extent=[136:24 - 136:25]
// CHECK: 136:29: UnexposedExpr= Extent=[136:29 - 136:35]
// CHECK: 136:29: IntegerLiteral= Extent=[136:29 - 136:35]
// CHECK: 137:9: BinaryOperator= Extent=[137:9 - 137:35]
// CHECK: 137:9: BinaryOperator= Extent=[137:9 - 137:20]
// CHECK: 137:9: DeclRefExpr=c:2:14 Extent=[137:9 - 137:10]
// CHECK: 137:14: UnexposedExpr= Extent=[137:14 - 137:20]
// CHECK: 137:14: IntegerLiteral= Extent=[137:14 - 137:20]
// CHECK: 137:24: BinaryOperator= Extent=[137:24 - 137:35]
// CHECK: 137:24: DeclRefExpr=c:2:14 Extent=[137:24 - 137:25]
// CHECK: 137:29: UnexposedExpr= Extent=[137:29 - 137:35]
// CHECK: 137:29: IntegerLiteral= Extent=[137:29 - 137:35]
// CHECK: 138:9: BinaryOperator= Extent=[138:9 - 138:35]
// CHECK: 138:9: BinaryOperator= Extent=[138:9 - 138:20]
// CHECK: 138:9: DeclRefExpr=c:2:14 Extent=[138:9 - 138:10]
// CHECK: 138:14: UnexposedExpr= Extent=[138:14 - 138:20]
// CHECK: 138:14: IntegerLiteral= Extent=[138:14 - 138:20]
// CHECK: 138:24: BinaryOperator= Extent=[138:24 - 138:35]
// CHECK: 138:24: DeclRefExpr=c:2:14 Extent=[138:24 - 138:25]
// CHECK: 138:29: UnexposedExpr= Extent=[138:29 - 138:35]
// CHECK: 138:29: IntegerLiteral= Extent=[138:29 - 138:35]
// CHECK: 139:9: BinaryOperator= Extent=[139:9 - 139:35]
// CHECK: 139:9: BinaryOperator= Extent=[139:9 - 139:20]
// CHECK: 139:9: DeclRefExpr=c:2:14 Extent=[139:9 - 139:10]
// CHECK: 139:14: UnexposedExpr= Extent=[139:14 - 139:20]
// CHECK: 139:14: IntegerLiteral= Extent=[139:14 - 139:20]
// CHECK: 139:24: BinaryOperator= Extent=[139:24 - 139:35]
// CHECK: 139:24: DeclRefExpr=c:2:14 Extent=[139:24 - 139:25]
// CHECK: 139:29: UnexposedExpr= Extent=[139:29 - 139:35]
// CHECK: 139:29: IntegerLiteral= Extent=[139:29 - 139:35]
// CHECK: 140:9: BinaryOperator= Extent=[140:9 - 140:35]
// CHECK: 140:9: BinaryOperator= Extent=[140:9 - 140:20]
// CHECK: 140:9: DeclRefExpr=c:2:14 Extent=[140:9 - 140:10]
// CHECK: 140:14: UnexposedExpr= Extent=[140:14 - 140:20]
// CHECK: 140:14: IntegerLiteral= Extent=[140:14 - 140:20]
// CHECK: 140:24: BinaryOperator= Extent=[140:24 - 140:35]
// CHECK: 140:24: DeclRefExpr=c:2:14 Extent=[140:24 - 140:25]
// CHECK: 140:29: UnexposedExpr= Extent=[140:29 - 140:35]
// CHECK: 140:29: IntegerLiteral= Extent=[140:29 - 140:35]
// CHECK: 141:8: BinaryOperator= Extent=[141:8 - 141:19]
// CHECK: 141:8: DeclRefExpr=c:2:14 Extent=[141:8 - 141:9]
// CHECK: 141:13: UnexposedExpr= Extent=[141:13 - 141:19]
// CHECK: 141:13: IntegerLiteral= Extent=[141:13 - 141:19]
// CHECK: 141:23: BinaryOperator= Extent=[141:23 - 141:34]
// CHECK: 141:23: DeclRefExpr=c:2:14 Extent=[141:23 - 141:24]
// CHECK: 141:28: UnexposedExpr= Extent=[141:28 - 141:34]
// CHECK: 141:28: IntegerLiteral= Extent=[141:28 - 141:34]
// CHECK: 141:38: BinaryOperator= Extent=[141:38 - 141:49]
// CHECK: 141:38: DeclRefExpr=c:2:14 Extent=[141:38 - 141:39]
// CHECK: 141:43: UnexposedExpr= Extent=[141:43 - 141:49]
// CHECK: 141:43: IntegerLiteral= Extent=[141:43 - 141:49]
// CHECK: 141:54: BinaryOperator= Extent=[141:54 - 141:80]
// CHECK: 141:54: BinaryOperator= Extent=[141:54 - 141:65]
// CHECK: 141:54: DeclRefExpr=c:2:14 Extent=[141:54 - 141:55]
// CHECK: 141:59: UnexposedExpr= Extent=[141:59 - 141:65]
// CHECK: 141:59: IntegerLiteral= Extent=[141:59 - 141:65]
// CHECK: 141:69: BinaryOperator= Extent=[141:69 - 141:80]
// CHECK: 141:69: DeclRefExpr=c:2:14 Extent=[141:69 - 141:70]
// CHECK: 141:74: UnexposedExpr= Extent=[141:74 - 141:80]
// CHECK: 141:74: IntegerLiteral= Extent=[141:74 - 141:80]
// CHECK: 142:9: BinaryOperator= Extent=[142:9 - 142:35]
// CHECK: 142:9: BinaryOperator= Extent=[142:9 - 142:20]
// CHECK: 142:9: DeclRefExpr=c:2:14 Extent=[142:9 - 142:10]
// CHECK: 142:14: UnexposedExpr= Extent=[142:14 - 142:20]
// CHECK: 142:14: IntegerLiteral= Extent=[142:14 - 142:20]
// CHECK: 142:24: BinaryOperator= Extent=[142:24 - 142:35]
// CHECK: 142:24: DeclRefExpr=c:2:14 Extent=[142:24 - 142:25]
// CHECK: 142:29: UnexposedExpr= Extent=[142:29 - 142:35]
// CHECK: 142:29: IntegerLiteral= Extent=[142:29 - 142:35]
// CHECK: 143:9: BinaryOperator= Extent=[143:9 - 143:35]
// CHECK: 143:9: BinaryOperator= Extent=[143:9 - 143:20]
// CHECK: 143:9: DeclRefExpr=c:2:14 Extent=[143:9 - 143:10]
// CHECK: 143:14: UnexposedExpr= Extent=[143:14 - 143:20]
// CHECK: 143:14: IntegerLiteral= Extent=[143:14 - 143:20]
// CHECK: 143:24: BinaryOperator= Extent=[143:24 - 143:35]
// CHECK: 143:24: DeclRefExpr=c:2:14 Extent=[143:24 - 143:25]
// CHECK: 143:29: UnexposedExpr= Extent=[143:29 - 143:35]
// CHECK: 143:29: IntegerLiteral= Extent=[143:29 - 143:35]
// CHECK: 144:8: BinaryOperator= Extent=[144:8 - 144:19]
// CHECK: 144:8: DeclRefExpr=c:2:14 Extent=[144:8 - 144:9]
// CHECK: 144:13: UnexposedExpr= Extent=[144:13 - 144:19]
// CHECK: 144:13: IntegerLiteral= Extent=[144:13 - 144:19]
// CHECK: 144:24: BinaryOperator= Extent=[144:24 - 144:50]
// CHECK: 144:24: BinaryOperator= Extent=[144:24 - 144:35]
// CHECK: 144:24: DeclRefExpr=c:2:14 Extent=[144:24 - 144:25]
// CHECK: 144:29: UnexposedExpr= Extent=[144:29 - 144:35]
// CHECK: 144:29: IntegerLiteral= Extent=[144:29 - 144:35]
// CHECK: 144:39: BinaryOperator= Extent=[144:39 - 144:50]
// CHECK: 144:39: DeclRefExpr=c:2:14 Extent=[144:39 - 144:40]
// CHECK: 144:44: UnexposedExpr= Extent=[144:44 - 144:50]
// CHECK: 144:44: IntegerLiteral= Extent=[144:44 - 144:50]
// CHECK: 145:9: BinaryOperator= Extent=[145:9 - 145:35]
// CHECK: 145:9: BinaryOperator= Extent=[145:9 - 145:20]
// CHECK: 145:9: DeclRefExpr=c:2:14 Extent=[145:9 - 145:10]
// CHECK: 145:14: UnexposedExpr= Extent=[145:14 - 145:20]
// CHECK: 145:14: IntegerLiteral= Extent=[145:14 - 145:20]
// CHECK: 145:24: BinaryOperator= Extent=[145:24 - 145:35]
// CHECK: 145:24: DeclRefExpr=c:2:14 Extent=[145:24 - 145:25]
// CHECK: 145:29: UnexposedExpr= Extent=[145:29 - 145:35]
// CHECK: 145:29: IntegerLiteral= Extent=[145:29 - 145:35]
// CHECK: 146:9: BinaryOperator= Extent=[146:9 - 146:35]
// CHECK: 146:9: BinaryOperator= Extent=[146:9 - 146:20]
// CHECK: 146:9: DeclRefExpr=c:2:14 Extent=[146:9 - 146:10]
// CHECK: 146:14: UnexposedExpr= Extent=[146:14 - 146:20]
// CHECK: 146:14: IntegerLiteral= Extent=[146:14 - 146:20]
// CHECK: 146:24: BinaryOperator= Extent=[146:24 - 146:35]
// CHECK: 146:24: DeclRefExpr=c:2:14 Extent=[146:24 - 146:25]
// CHECK: 146:29: UnexposedExpr= Extent=[146:29 - 146:35]
// CHECK: 146:29: IntegerLiteral= Extent=[146:29 - 146:35]
// CHECK: 147:9: BinaryOperator= Extent=[147:9 - 147:35]
// CHECK: 147:9: BinaryOperator= Extent=[147:9 - 147:20]
// CHECK: 147:9: DeclRefExpr=c:2:14 Extent=[147:9 - 147:10]
// CHECK: 147:14: UnexposedExpr= Extent=[147:14 - 147:20]
// CHECK: 147:14: IntegerLiteral= Extent=[147:14 - 147:20]
// CHECK: 147:24: BinaryOperator= Extent=[147:24 - 147:35]
// CHECK: 147:24: DeclRefExpr=c:2:14 Extent=[147:24 - 147:25]
// CHECK: 147:29: UnexposedExpr= Extent=[147:29 - 147:35]
// CHECK: 147:29: IntegerLiteral= Extent=[147:29 - 147:35]
// CHECK: 148:9: BinaryOperator= Extent=[148:9 - 148:35]
// CHECK: 148:9: BinaryOperator= Extent=[148:9 - 148:20]
// CHECK: 148:9: DeclRefExpr=c:2:14 Extent=[148:9 - 148:10]
// CHECK: 148:14: UnexposedExpr= Extent=[148:14 - 148:20]
// CHECK: 148:14: IntegerLiteral= Extent=[148:14 - 148:20]
// CHECK: 148:24: BinaryOperator= Extent=[148:24 - 148:35]
// CHECK: 148:24: DeclRefExpr=c:2:14 Extent=[148:24 - 148:25]
// CHECK: 148:29: UnexposedExpr= Extent=[148:29 - 148:35]
// CHECK: 148:29: IntegerLiteral= Extent=[148:29 - 148:35]
// CHECK: 149:9: BinaryOperator= Extent=[149:9 - 149:35]
// CHECK: 149:9: BinaryOperator= Extent=[149:9 - 149:20]
// CHECK: 149:9: DeclRefExpr=c:2:14 Extent=[149:9 - 149:10]
// CHECK: 149:14: UnexposedExpr= Extent=[149:14 - 149:20]
// CHECK: 149:14: IntegerLiteral= Extent=[149:14 - 149:20]
// CHECK: 149:24: BinaryOperator= Extent=[149:24 - 149:35]
// CHECK: 149:24: DeclRefExpr=c:2:14 Extent=[149:24 - 149:25]
// CHECK: 149:29: UnexposedExpr= Extent=[149:29 - 149:35]
// CHECK: 149:29: IntegerLiteral= Extent=[149:29 - 149:35]
// CHECK: 150:9: BinaryOperator= Extent=[150:9 - 150:35]
// CHECK: 150:9: BinaryOperator= Extent=[150:9 - 150:20]
// CHECK: 150:9: DeclRefExpr=c:2:14 Extent=[150:9 - 150:10]
// CHECK: 150:14: UnexposedExpr= Extent=[150:14 - 150:20]
// CHECK: 150:14: IntegerLiteral= Extent=[150:14 - 150:20]
// CHECK: 150:24: BinaryOperator= Extent=[150:24 - 150:35]
// CHECK: 150:24: DeclRefExpr=c:2:14 Extent=[150:24 - 150:25]
// CHECK: 150:29: UnexposedExpr= Extent=[150:29 - 150:35]
// CHECK: 150:29: IntegerLiteral= Extent=[150:29 - 150:35]
// CHECK: 151:8: BinaryOperator= Extent=[151:8 - 151:19]
// CHECK: 151:8: DeclRefExpr=c:2:14 Extent=[151:8 - 151:9]
// CHECK: 151:13: UnexposedExpr= Extent=[151:13 - 151:19]
// CHECK: 151:13: IntegerLiteral= Extent=[151:13 - 151:19]
// CHECK: 151:24: BinaryOperator= Extent=[151:24 - 151:50]
// CHECK: 151:24: BinaryOperator= Extent=[151:24 - 151:35]
// CHECK: 151:24: DeclRefExpr=c:2:14 Extent=[151:24 - 151:25]
// CHECK: 151:29: UnexposedExpr= Extent=[151:29 - 151:35]
// CHECK: 151:29: IntegerLiteral= Extent=[151:29 - 151:35]
// CHECK: 151:39: BinaryOperator= Extent=[151:39 - 151:50]
// CHECK: 151:39: DeclRefExpr=c:2:14 Extent=[151:39 - 151:40]
// CHECK: 151:44: UnexposedExpr= Extent=[151:44 - 151:50]
// CHECK: 151:44: IntegerLiteral= Extent=[151:44 - 151:50]
// CHECK: 152:8: BinaryOperator= Extent=[152:8 - 152:19]
// CHECK: 152:8: DeclRefExpr=c:2:14 Extent=[152:8 - 152:9]
// CHECK: 152:13: UnexposedExpr= Extent=[152:13 - 152:19]
// CHECK: 152:13: IntegerLiteral= Extent=[152:13 - 152:19]
// CHECK: 152:24: BinaryOperator= Extent=[152:24 - 152:50]
// CHECK: 152:24: BinaryOperator= Extent=[152:24 - 152:35]
// CHECK: 152:24: DeclRefExpr=c:2:14 Extent=[152:24 - 152:25]
// CHECK: 152:29: UnexposedExpr= Extent=[152:29 - 152:35]
// CHECK: 152:29: IntegerLiteral= Extent=[152:29 - 152:35]
// CHECK: 152:39: BinaryOperator= Extent=[152:39 - 152:50]
// CHECK: 152:39: DeclRefExpr=c:2:14 Extent=[152:39 - 152:40]
// CHECK: 152:44: UnexposedExpr= Extent=[152:44 - 152:50]
// CHECK: 152:44: IntegerLiteral= Extent=[152:44 - 152:50]
// CHECK: 153:9: BinaryOperator= Extent=[153:9 - 153:35]
// CHECK: 153:9: BinaryOperator= Extent=[153:9 - 153:20]
// CHECK: 153:9: DeclRefExpr=c:2:14 Extent=[153:9 - 153:10]
// CHECK: 153:14: UnexposedExpr= Extent=[153:14 - 153:20]
// CHECK: 153:14: IntegerLiteral= Extent=[153:14 - 153:20]
// CHECK: 153:24: BinaryOperator= Extent=[153:24 - 153:35]
// CHECK: 153:24: DeclRefExpr=c:2:14 Extent=[153:24 - 153:25]
// CHECK: 153:29: UnexposedExpr= Extent=[153:29 - 153:35]
// CHECK: 153:29: IntegerLiteral= Extent=[153:29 - 153:35]
// CHECK: 154:9: BinaryOperator= Extent=[154:9 - 154:35]
// CHECK: 154:9: BinaryOperator= Extent=[154:9 - 154:20]
// CHECK: 154:9: DeclRefExpr=c:2:14 Extent=[154:9 - 154:10]
// CHECK: 154:14: UnexposedExpr= Extent=[154:14 - 154:20]
// CHECK: 154:14: IntegerLiteral= Extent=[154:14 - 154:20]
// CHECK: 154:24: BinaryOperator= Extent=[154:24 - 154:35]
// CHECK: 154:24: DeclRefExpr=c:2:14 Extent=[154:24 - 154:25]
// CHECK: 154:29: UnexposedExpr= Extent=[154:29 - 154:35]
// CHECK: 154:29: IntegerLiteral= Extent=[154:29 - 154:35]
// CHECK: 155:9: BinaryOperator= Extent=[155:9 - 155:35]
// CHECK: 155:9: BinaryOperator= Extent=[155:9 - 155:20]
// CHECK: 155:9: DeclRefExpr=c:2:14 Extent=[155:9 - 155:10]
// CHECK: 155:14: UnexposedExpr= Extent=[155:14 - 155:20]
// CHECK: 155:14: IntegerLiteral= Extent=[155:14 - 155:20]
// CHECK: 155:24: BinaryOperator= Extent=[155:24 - 155:35]
// CHECK: 155:24: DeclRefExpr=c:2:14 Extent=[155:24 - 155:25]
// CHECK: 155:29: UnexposedExpr= Extent=[155:29 - 155:35]
// CHECK: 155:29: IntegerLiteral= Extent=[155:29 - 155:35]
// CHECK: 156:9: BinaryOperator= Extent=[156:9 - 156:35]
// CHECK: 156:9: BinaryOperator= Extent=[156:9 - 156:20]
// CHECK: 156:9: DeclRefExpr=c:2:14 Extent=[156:9 - 156:10]
// CHECK: 156:14: UnexposedExpr= Extent=[156:14 - 156:20]
// CHECK: 156:14: IntegerLiteral= Extent=[156:14 - 156:20]
// CHECK: 156:24: BinaryOperator= Extent=[156:24 - 156:35]
// CHECK: 156:24: DeclRefExpr=c:2:14 Extent=[156:24 - 156:25]
// CHECK: 156:29: UnexposedExpr= Extent=[156:29 - 156:35]
// CHECK: 156:29: IntegerLiteral= Extent=[156:29 - 156:35]
// CHECK: 157:9: BinaryOperator= Extent=[157:9 - 157:35]
// CHECK: 157:9: BinaryOperator= Extent=[157:9 - 157:20]
// CHECK: 157:9: DeclRefExpr=c:2:14 Extent=[157:9 - 157:10]
// CHECK: 157:14: UnexposedExpr= Extent=[157:14 - 157:20]
// CHECK: 157:14: IntegerLiteral= Extent=[157:14 - 157:20]
// CHECK: 157:24: BinaryOperator= Extent=[157:24 - 157:35]
// CHECK: 157:24: DeclRefExpr=c:2:14 Extent=[157:24 - 157:25]
// CHECK: 157:29: UnexposedExpr= Extent=[157:29 - 157:35]
// CHECK: 157:29: IntegerLiteral= Extent=[157:29 - 157:35]
// CHECK: 158:8: BinaryOperator= Extent=[158:8 - 158:19]
// CHECK: 158:8: DeclRefExpr=c:2:14 Extent=[158:8 - 158:9]
// CHECK: 158:13: UnexposedExpr= Extent=[158:13 - 158:19]
// CHECK: 158:13: IntegerLiteral= Extent=[158:13 - 158:19]
// CHECK: 158:24: BinaryOperator= Extent=[158:24 - 158:50]
// CHECK: 158:24: BinaryOperator= Extent=[158:24 - 158:35]
// CHECK: 158:24: DeclRefExpr=c:2:14 Extent=[158:24 - 158:25]
// CHECK: 158:29: UnexposedExpr= Extent=[158:29 - 158:35]
// CHECK: 158:29: IntegerLiteral= Extent=[158:29 - 158:35]
// CHECK: 158:39: BinaryOperator= Extent=[158:39 - 158:50]
// CHECK: 158:39: DeclRefExpr=c:2:14 Extent=[158:39 - 158:40]
// CHECK: 158:44: UnexposedExpr= Extent=[158:44 - 158:50]
// CHECK: 158:44: IntegerLiteral= Extent=[158:44 - 158:50]
// CHECK: 159:9: BinaryOperator= Extent=[159:9 - 159:35]
// CHECK: 159:9: BinaryOperator= Extent=[159:9 - 159:20]
// CHECK: 159:9: DeclRefExpr=c:2:14 Extent=[159:9 - 159:10]
// CHECK: 159:14: UnexposedExpr= Extent=[159:14 - 159:20]
// CHECK: 159:14: IntegerLiteral= Extent=[159:14 - 159:20]
// CHECK: 159:24: BinaryOperator= Extent=[159:24 - 159:35]
// CHECK: 159:24: DeclRefExpr=c:2:14 Extent=[159:24 - 159:25]
// CHECK: 159:29: UnexposedExpr= Extent=[159:29 - 159:35]
// CHECK: 159:29: IntegerLiteral= Extent=[159:29 - 159:35]
// CHECK: 160:8: BinaryOperator= Extent=[160:8 - 160:19]
// CHECK: 160:8: DeclRefExpr=c:2:14 Extent=[160:8 - 160:9]
// CHECK: 160:13: UnexposedExpr= Extent=[160:13 - 160:19]
// CHECK: 160:13: IntegerLiteral= Extent=[160:13 - 160:19]
// CHECK: 160:23: ParenExpr= Extent=[160:23 - 160:51]
// CHECK: 160:24: BinaryOperator= Extent=[160:24 - 160:50]
// CHECK: 160:24: BinaryOperator= Extent=[160:24 - 160:35]
// CHECK: 160:24: DeclRefExpr=c:2:14 Extent=[160:24 - 160:25]
// CHECK: 160:29: UnexposedExpr= Extent=[160:29 - 160:35]
// CHECK: 160:29: IntegerLiteral= Extent=[160:29 - 160:35]
// CHECK: 160:39: BinaryOperator= Extent=[160:39 - 160:50]
// CHECK: 160:39: DeclRefExpr=c:2:14 Extent=[160:39 - 160:40]
// CHECK: 160:44: UnexposedExpr= Extent=[160:44 - 160:50]
// CHECK: 160:44: IntegerLiteral= Extent=[160:44 - 160:50]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/comment-custom-block-command.cpp
|
// RUN: rm -rf %t
// RUN: mkdir %t
// Check that custom block commands are defined correctly.
// RUN: %clang_cc1 -fcomment-block-commands=CustomCommand -x c++ -std=c++11 -emit-pch -o %t/out.pch %s
// RUN: %clang_cc1 -x c++ -std=c++11 -fcomment-block-commands=CustomCommand -include-pch %t/out.pch -fsyntax-only %s
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng %s -std=c++11 -fcomment-block-commands=CustomCommand > %t/out.c-index-direct
// RUN: c-index-test -test-load-tu %t/out.pch all > %t/out.c-index-pch
// RUN: FileCheck %s -check-prefix=WRONG < %t/out.c-index-direct
// RUN: FileCheck %s -check-prefix=WRONG < %t/out.c-index-pch
// Ensure that XML is not invalid
// WRONG-NOT: CommentXMLInvalid
// RUN: FileCheck %s < %t/out.c-index-direct
// RUN: FileCheck %s < %t/out.c-index-pch
// XFAIL: vg_leak
#ifndef HEADER
#define HEADER
/// \CustomCommand Aaa.
void comment_custom_block_command_1();
// CHECK: comment-custom-block-command.cpp:[[@LINE-2]]:6: FunctionDecl=comment_custom_block_command_1:{{.*}} FullCommentAsHTML=[<p> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-custom-block-command.cpp" line="[[@LINE-2]]" column="6"><Name>comment_custom_block_command_1</Name><USR>c:@F@comment_custom_block_command_1#</USR><Declaration>void comment_custom_block_command_1()</Declaration><Discussion><Para> Aaa.</Para></Discussion></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[CustomCommand]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
#endif
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/overrides.cpp
|
struct A {
virtual void f(int);
};
struct B {
virtual void f(int);
virtual void g();
};
struct C : B, A {
virtual void g();
};
struct D : C {
virtual void f(int);
};
void C::g() {}
struct E {
virtual void h() = 0;
template <typename T> void i(T);
};
// RUN: c-index-test -test-load-source local %s | FileCheck %s
// CHECK: overrides.cpp:11:16: CXXMethod=g:11:16 (virtual) [Overrides @7:16] Extent=[11:3 - 11:19]
// CHECK: overrides.cpp:15:16: CXXMethod=f:15:16 (virtual) [Overrides @2:16, @6:16] Extent=[15:3 - 15:22]
// CHECK: overrides.cpp:18:9: CXXMethod=g:18:9 (Definition) (virtual) [Overrides @7:16] Extent=[18:1 - 18:15]
// CHECK: overrides.cpp:21:16: CXXMethod=h:21:16 (virtual) (pure) Extent=[21:3 - 21:23]
// CHECK: overrides.cpp:22:30: FunctionTemplate=i:22:30 Extent=[22:3 - 22:34]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-declarators.cpp
|
// This test is line- and column-sensitive, so test commands are at the bottom.
namespace N {
struct X {
int f(X);
};
}
int g(int a);
struct Y { };
struct Z {
int member;
friend int N::X::f(N::X);
};
// RUN: c-index-test -code-completion-at=%s:8:5 %s | FileCheck -check-prefix=CHECK-CC1 %s
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:8:5 %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: NotImplemented:{TypedText const} (40)
// CHECK-CC1: Namespace:{TypedText N}{Text ::} (75)
// CHECK-CC1: NotImplemented:{TypedText operator} (40)
// CHECK-CC1: NotImplemented:{TypedText volatile} (40)
// RUN: c-index-test -code-completion-at=%s:8:11 %s | FileCheck -check-prefix=CHECK-CC2 %s
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:8:11 %s | FileCheck -check-prefix=CHECK-CC2 %s
// CHECK-CC2: NotImplemented:{TypedText const} (40)
// CHECK-CC2-NOT: Namespace:{TypedText N}{Text ::} (75)
// CHECK-CC2-NOT: NotImplemented:{TypedText operator} (40)
// CHECK-CC2: NotImplemented:{TypedText volatile} (40)
// RUN: c-index-test -code-completion-at=%s:13:7 %s | FileCheck -check-prefix=CHECK-CC3 %s
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:13:7 %s | FileCheck -check-prefix=CHECK-CC3 %s
// CHECK-CC3: NotImplemented:{TypedText const} (40)
// CHECK-CC3-NOT: Namespace:{TypedText N}{Text ::} (75)
// CHECK-CC3: NotImplemented:{TypedText operator} (40)
// CHECK-CC3: NotImplemented:{TypedText volatile} (40)
// RUN: c-index-test -code-completion-at=%s:14:14 %s | FileCheck -check-prefix=CHECK-CC4 %s
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:14:14 %s | FileCheck -check-prefix=CHECK-CC4 %s
// CHECK-CC4: NotImplemented:{TypedText const} (40)
// CHECK-CC4: Namespace:{TypedText N}{Text ::} (75)
// CHECK-CC4: NotImplemented:{TypedText operator} (40)
// CHECK-CC4: NotImplemented:{TypedText volatile} (40)
// CHECK-CC4: StructDecl:{TypedText Y}{Text ::} (75)
// CHECK-CC4: StructDecl:{TypedText Z}{Text ::} (75)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/annotate-nested-name-specifier.cpp
|
namespace outer {
namespace inner {
template<typename T>
struct vector {
typedef T* iterator;
};
}
}
namespace outer_alias = outer;
struct X { };
using outer_alias::inner::vector;
struct X_vector : outer_alias::inner::vector<X> {
using outer_alias::inner::vector<X>::iterator;
};
namespace outer {
namespace inner {
template<typename T, unsigned N>
struct array {
void foo();
static int max_size;
};
}
}
template<typename T, unsigned N>
void outer::inner::array<T, N>::foo() {
}
template<typename T, unsigned N>
int outer::inner::array<T, N>::max_size = 17;
template<typename T>
struct X2 : outer::inner::vector<T> {
typedef T type;
using typename outer::inner::vector<type>::iterator;
using outer::inner::vector<type>::push_back;
};
namespace outer {
namespace inner {
namespace secret {
}
}
}
using namespace outer_alias::inner::secret;
namespace super_secret = outer_alias::inner::secret;
template<typename T>
struct X3 {
void f(T *t) {
t->::outer_alias::inner::template vector<T>::~vector<T>();
}
};
namespace outer {
namespace inner {
void f(int);
void f(double);
}
}
template<typename T>
struct X4 {
typedef T type;
void g(int);
void g(float);
void h(T t) {
::outer_alias::inner::f(t);
::X4<type>::g(t);
this->::X4<type>::g(t);
}
};
typedef int Integer;
template<>
struct X4<Integer> {
typedef Integer type;
void g(int);
void g(float);
void h(type t) {
::outer_alias::inner::f(t);
::X4<type>::g(t);
this->::X4<type>::g(t);
}
};
template<typename T>
struct X5 {
typedef T type;
typedef typename outer_alias::inner::vector<type>::iterator iter_type;
typedef typename outer_alias::inner::vector<int>::iterator int_ptr_type;
};
template<typename T>
struct X6 {
typedef T* type;
typedef typename outer_alias::inner::vector<type>::template rebind<type> type1;
typedef typename outer_alias::inner::vector<type>::template rebind<type>::other type2;
typedef class outer_alias::inner::vector<type>::template rebind<type> type3;
typedef class outer_alias::inner::vector<type>::template rebind<type>::other type4;
};
namespace outer {
namespace inner {
template<typename T, template<class> class TT>
struct apply_meta {
typedef typename TT<T>::type type;
};
}
}
template<typename T, typename U>
struct X7 {
typedef T T_type;
typedef U U_type;
typedef outer_alias::inner::apply_meta<T_type, U_type::template apply> type;
};
struct X8 {
void f();
};
struct X9 : X8 {
typedef X8 inherited;
void f() {
inherited::f();
}
};
// RUN: c-index-test -test-annotate-tokens=%s:13:1:137:1 -fno-delayed-template-parsing %s | FileCheck %s
// CHECK: Keyword: "using" [14:1 - 14:6] UsingDeclaration=vector[4:12]
// CHECK: Identifier: "outer_alias" [14:7 - 14:18] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [14:18 - 14:20] UsingDeclaration=vector[4:12]
// CHECK: Identifier: "inner" [14:20 - 14:25] NamespaceRef=inner:2:13
// CHECK: Punctuation: "::" [14:25 - 14:27] UsingDeclaration=vector[4:12]
// CHECK: Identifier: "vector" [14:27 - 14:33] OverloadedDeclRef=vector[4:12]
// CHECK: Punctuation: ";" [14:33 - 14:34]
// Base specifiers
// CHECK: Identifier: "outer_alias" [16:19 - 16:30] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [16:30 - 16:32] C++ base class specifier=outer_alias::inner::vector<X>:4:12 [access=public isVirtual=false]
// CHECK: Identifier: "inner" [16:32 - 16:37] NamespaceRef=inner:2:13
// CHECK: Punctuation: "::" [16:37 - 16:39] C++ base class specifier=outer_alias::inner::vector<X>:4:12 [access=public isVirtual=false]
// CHECK: Identifier: "vector" [16:39 - 16:45] TemplateRef=vector:4:12
// CHECK: Punctuation: "<" [16:45 - 16:46] C++ base class specifier=outer_alias::inner::vector<X>:4:12 [access=public isVirtual=false]
// CHECK: Identifier: "X" [16:46 - 16:47] TypeRef=struct X:12:8
// CHECK: Punctuation: ">" [16:47 - 16:48] C++ base class specifier=outer_alias::inner::vector<X>:4:12 [access=public isVirtual=false]
// CHECK: Keyword: "using" [17:3 - 17:8] UsingDeclaration=iterator[5:18]
// CHECK: Identifier: "outer_alias" [17:9 - 17:20] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [17:20 - 17:22] UsingDeclaration=iterator[5:18]
// CHECK: Identifier: "inner" [17:22 - 17:27] NamespaceRef=inner:2:13
// CHECK: Punctuation: "::" [17:27 - 17:29] UsingDeclaration=iterator[5:18]
// CHECK: Identifier: "vector" [17:29 - 17:35] TemplateRef=vector:4:12
// CHECK: Punctuation: "<" [17:35 - 17:36] UsingDeclaration=iterator[5:18]
// CHECK: Identifier: "X" [17:36 - 17:37] TypeRef=struct X:12:8
// CHECK: Punctuation: ">" [17:37 - 17:38] UsingDeclaration=iterator[5:18]
// CHECK: Punctuation: "::" [17:38 - 17:40] UsingDeclaration=iterator[5:18]
// CHECK: Identifier: "iterator" [17:40 - 17:48] OverloadedDeclRef=iterator[5:18]
// CHECK: Keyword: "void" [31:1 - 31:5] CXXMethod=foo:31:33 (Definition)
// CHECK: Identifier: "outer" [31:6 - 31:11] NamespaceRef=outer:20:11
// CHECK: Punctuation: "::" [31:11 - 31:13] CXXMethod=foo:31:33 (Definition)
// CHECK: Identifier: "inner" [31:13 - 31:18] NamespaceRef=inner:21:13
// CHECK: Punctuation: "::" [31:18 - 31:20] CXXMethod=foo:31:33 (Definition)
// CHECK: Identifier: "array" [31:20 - 31:25] TemplateRef=array:23:12
// CHECK: Punctuation: "<" [31:25 - 31:26] CXXMethod=foo:31:33 (Definition)
// CHECK: Identifier: "T" [31:26 - 31:27] TypeRef=T:30:19
// CHECK: Punctuation: "," [31:27 - 31:28] CXXMethod=foo:31:33 (Definition)
// CHECK: Identifier: "N" [31:29 - 31:30] DeclRefExpr=N:30:31
// CHECK: Punctuation: ">" [31:30 - 31:31] CXXMethod=foo:31:33 (Definition)
// CHECK: Punctuation: "::" [31:31 - 31:33] CXXMethod=foo:31:33 (Definition)
// CHECK: Identifier: "foo" [31:33 - 31:36] CXXMethod=foo:31:33 (Definition)
// CHECK: Punctuation: "(" [31:36 - 31:37] CXXMethod=foo:31:33 (Definition)
// CHECK: Punctuation: ")" [31:37 - 31:38] CXXMethod=foo:31:33 (Definition)
// CHECK: Keyword: "int" [35:1 - 35:4] VarDecl=max_size:35:32 (Definition)
// CHECK: Identifier: "outer" [35:5 - 35:10] NamespaceRef=outer:20:11
// CHECK: Punctuation: "::" [35:10 - 35:12] VarDecl=max_size:35:32 (Definition)
// CHECK: Identifier: "inner" [35:12 - 35:17] NamespaceRef=inner:21:13
// CHECK: Punctuation: "::" [35:17 - 35:19] VarDecl=max_size:35:32 (Definition)
// CHECK: Identifier: "array" [35:19 - 35:24] TemplateRef=array:23:12
// CHECK: Punctuation: "<" [35:24 - 35:25] VarDecl=max_size:35:32 (Definition)
// CHECK: Identifier: "T" [35:25 - 35:26] TypeRef=T:34:19
// CHECK: Punctuation: "," [35:26 - 35:27] VarDecl=max_size:35:32 (Definition)
// CHECK: Identifier: "N" [35:28 - 35:29] DeclRefExpr=N:34:31
// CHECK: Punctuation: ">" [35:29 - 35:30] VarDecl=max_size:35:32 (Definition)
// CHECK: Punctuation: "::" [35:30 - 35:32] VarDecl=max_size:35:32 (Definition)
// CHECK: Identifier: "max_size" [35:32 - 35:40] VarDecl=max_size:35:32 (Definition)
// CHECK: Punctuation: "=" [35:41 - 35:42] VarDecl=max_size:35:32 (Definition)
// CHECK: Literal: "17" [35:43 - 35:45] IntegerLiteral=
// CHECK: Punctuation: ";" [35:45 - 35:46]
// CHECK: Keyword: "using" [40:3 - 40:8] UsingDeclaration=iterator:40:46
// CHECK: Keyword: "typename" [40:9 - 40:17] UsingDeclaration=iterator:40:46
// CHECK: Identifier: "outer" [40:18 - 40:23] NamespaceRef=outer:20:11
// CHECK: Punctuation: "::" [40:23 - 40:25] UsingDeclaration=iterator:40:46
// CHECK: Identifier: "inner" [40:25 - 40:30] NamespaceRef=inner:21:13
// CHECK: Punctuation: "::" [40:30 - 40:32] UsingDeclaration=iterator:40:46
// CHECK: Identifier: "vector" [40:32 - 40:38] TemplateRef=vector:4:12
// CHECK: Punctuation: "<" [40:38 - 40:39] UsingDeclaration=iterator:40:46
// CHECK: Identifier: "type" [40:39 - 40:43] TypeRef=type:39:13
// CHECK: Punctuation: ">" [40:43 - 40:44] UsingDeclaration=iterator:40:46
// CHECK: Punctuation: "::" [40:44 - 40:46] UsingDeclaration=iterator:40:46
// CHECK: Identifier: "iterator" [40:46 - 40:54] UsingDeclaration=iterator:40:46
// CHECK: Punctuation: ";" [40:54 - 40:55] ClassTemplate=X2:38:8 (Definition)
// CHECK: Keyword: "using" [41:3 - 41:8] UsingDeclaration=push_back:41:37
// CHECK: Identifier: "outer" [41:9 - 41:14] NamespaceRef=outer:20:11
// CHECK: Punctuation: "::" [41:14 - 41:16] UsingDeclaration=push_back:41:37
// CHECK: Identifier: "inner" [41:16 - 41:21] NamespaceRef=inner:21:13
// CHECK: Punctuation: "::" [41:21 - 41:23] UsingDeclaration=push_back:41:37
// CHECK: Identifier: "vector" [41:23 - 41:29] TemplateRef=vector:4:12
// CHECK: Punctuation: "<" [41:29 - 41:30] UsingDeclaration=push_back:41:37
// CHECK: Identifier: "type" [41:30 - 41:34] TypeRef=type:39:13
// CHECK: Punctuation: ">" [41:34 - 41:35] UsingDeclaration=push_back:41:37
// CHECK: Punctuation: "::" [41:35 - 41:37] UsingDeclaration=push_back:41:37
// CHECK: Identifier: "push_back" [41:37 - 41:46] UsingDeclaration=push_back:41:37
// Using directive
// CHECK: Keyword: "using" [51:1 - 51:6] UsingDirective=:51:37
// CHECK: Keyword: "namespace" [51:7 - 51:16] UsingDirective=:51:37
// CHECK: Identifier: "outer_alias" [51:17 - 51:28] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [51:28 - 51:30] UsingDirective=:51:37
// CHECK: Identifier: "inner" [51:30 - 51:35] NamespaceRef=inner:45:13
// CHECK: Punctuation: "::" [51:35 - 51:37] UsingDirective=:51:37
// CHECK: Identifier: "secret" [51:37 - 51:43] NamespaceRef=secret:46:15
// Namespace alias
// CHECK: Keyword: "namespace" [52:1 - 52:10] NamespaceAlias=super_secret:52:11
// CHECK: Identifier: "super_secret" [52:11 - 52:23] NamespaceAlias=super_secret:52:11
// CHECK: Punctuation: "=" [52:24 - 52:25] NamespaceAlias=super_secret:52:11
// CHECK: Identifier: "outer_alias" [52:26 - 52:37] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [52:37 - 52:39] NamespaceAlias=super_secret:52:11
// CHECK: Identifier: "inner" [52:39 - 52:44] NamespaceRef=inner:45:13
// CHECK: Punctuation: "::" [52:44 - 52:46] NamespaceAlias=super_secret:52:11
// CHECK: Identifier: "secret" [52:46 - 52:52] NamespaceRef=secret:46:15
// CHECK: Punctuation: ";" [52:52 - 52:53]
// Pseudo-destructor
// CHECK: Identifier: "t" [57:5 - 57:6] DeclRefExpr=t:56:13
// CHECK: Punctuation: "->" [57:6 - 57:8] MemberRefExpr=
// CHECK: Punctuation: "::" [57:8 - 57:10] MemberRefExpr=
// CHECK: Identifier: "outer_alias" [57:10 - 57:21] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [57:21 - 57:23] MemberRefExpr=
// CHECK: Identifier: "inner" [57:23 - 57:28] NamespaceRef=inner:45:13
// CHECK: Punctuation: "::" [57:28 - 57:30] MemberRefExpr=
// CHECK: Keyword: "template" [57:30 - 57:38] MemberRefExpr=
// CHECK: Identifier: "vector" [57:39 - 57:45] TemplateRef=vector:4:12
// CHECK: Punctuation: "<" [57:45 - 57:46] MemberRefExpr=
// CHECK: Identifier: "T" [57:46 - 57:47] TypeRef=T:54:19
// CHECK: Punctuation: ">" [57:47 - 57:48] MemberRefExpr=
// CHECK: Punctuation: "::" [57:48 - 57:50] MemberRefExpr=
// CHECK: Punctuation: "~" [57:50 - 57:51] MemberRefExpr=
// CHECK: Identifier: "vector" [57:51 - 57:57] TemplateRef=vector:4:12
// CHECK: Punctuation: "<" [57:57 - 57:58] MemberRefExpr=
// CHECK: Identifier: "T" [57:58 - 57:59] TypeRef=T:54:19
// CHECK: Punctuation: ">" [57:59 - 57:60] CallExpr=
// CHECK: Punctuation: "(" [57:60 - 57:61] CallExpr=
// CHECK: Punctuation: ")" [57:61 - 57:62] CallExpr=
// Unresolved member and non-member references
// CHECK: Punctuation: "::" [75:5 - 75:7] DeclRefExpr=[63:10, 64:10]
// CHECK: Identifier: "outer_alias" [75:7 - 75:18] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [75:18 - 75:20] DeclRefExpr=[63:10, 64:10]
// CHECK: Identifier: "inner" [75:20 - 75:25] NamespaceRef=inner:62:13
// CHECK: Punctuation: "::" [75:25 - 75:27] DeclRefExpr=[63:10, 64:10]
// CHECK: Identifier: "f" [75:27 - 75:28] OverloadedDeclRef=f[63:10, 64:10]
// CHECK: Punctuation: "(" [75:28 - 75:29] CallExpr=
// CHECK: Identifier: "t" [75:29 - 75:30] DeclRefExpr=t:74:12
// CHECK: Punctuation: ")" [75:30 - 75:31] CallExpr=
// CHECK: Punctuation: "::" [76:5 - 76:7] MemberRefExpr=[71:8, 72:8]
// CHECK: Identifier: "X4" [76:7 - 76:9] TemplateRef=X4:69:8
// CHECK: Punctuation: "<" [76:9 - 76:10] MemberRefExpr=[71:8, 72:8]
// CHECK: Identifier: "type" [76:10 - 76:14] TypeRef=type:70:13
// CHECK: Punctuation: ">" [76:14 - 76:15] MemberRefExpr=[71:8, 72:8]
// CHECK: Punctuation: "::" [76:15 - 76:17] MemberRefExpr=[71:8, 72:8]
// CHECK: Identifier: "g" [76:17 - 76:18] OverloadedDeclRef=g[71:8, 72:8]
// CHECK: Punctuation: "(" [76:18 - 76:19] CallExpr=
// CHECK: Identifier: "t" [76:19 - 76:20] DeclRefExpr=t:74:12
// CHECK: Punctuation: ")" [76:20 - 76:21] CallExpr=
// CHECK: Punctuation: ";" [76:21 - 76:22] CompoundStmt=
// CHECK: Keyword: "this" [77:5 - 77:9] CXXThisExpr=
// CHECK: Punctuation: "->" [77:9 - 77:11] MemberRefExpr=
// CHECK: Punctuation: "::" [77:11 - 77:13] MemberRefExpr=
// CHECK: Identifier: "X4" [77:13 - 77:15] TemplateRef=X4:69:8
// CHECK: Punctuation: "<" [77:15 - 77:16] MemberRefExpr=
// CHECK: Identifier: "type" [77:16 - 77:20] TypeRef=type:70:13
// CHECK: Punctuation: ">" [77:20 - 77:21] MemberRefExpr=
// CHECK: Punctuation: "::" [77:21 - 77:23] MemberRefExpr=
// CHECK: Identifier: "g" [77:23 - 77:24] MemberRefExpr=
// CHECK: Punctuation: "(" [77:24 - 77:25] CallExpr=
// CHECK: Identifier: "t" [77:25 - 77:26] DeclRefExpr=t:74:12
// CHECK: Punctuation: ")" [77:26 - 77:27] CallExpr=
// Resolved member and non-member references
// CHECK: Punctuation: "::" [90:5 - 90:7] DeclRefExpr=f:63:10
// CHECK: Identifier: "outer_alias" [90:7 - 90:18] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [90:18 - 90:20] DeclRefExpr=f:63:10
// CHECK: Identifier: "inner" [90:20 - 90:25] NamespaceRef=inner:62:13
// CHECK: Punctuation: "::" [90:25 - 90:27] DeclRefExpr=f:63:10
// CHECK: Identifier: "f" [90:27 - 90:28] DeclRefExpr=f:63:10
// CHECK: Punctuation: "(" [90:28 - 90:29] CallExpr=f:63:10
// CHECK: Identifier: "t" [90:29 - 90:30] DeclRefExpr=t:89:15
// CHECK: Punctuation: ")" [90:30 - 90:31] CallExpr=f:63:10
// CHECK: Punctuation: ";" [90:31 - 90:32] CompoundStmt=
// CHECK: Punctuation: "::" [91:5 - 91:7] MemberRefExpr=g:86:8
// CHECK: Identifier: "X4" [91:7 - 91:9] TemplateRef=X4:69:8
// CHECK: Punctuation: "<" [91:9 - 91:10] MemberRefExpr=g:86:8
// CHECK: Identifier: "type" [91:10 - 91:14] TypeRef=type:84:19
// CHECK: Punctuation: ">" [91:14 - 91:15] MemberRefExpr=g:86:8
// CHECK: Punctuation: "::" [91:15 - 91:17] MemberRefExpr=g:86:8
// CHECK: Identifier: "g" [91:17 - 91:18] MemberRefExpr=g:86:8
// CHECK: Punctuation: "(" [91:18 - 91:19] CallExpr=g:86:8
// CHECK: Identifier: "t" [91:19 - 91:20] DeclRefExpr=t:89:15
// CHECK: Punctuation: ")" [91:20 - 91:21] CallExpr=g:86:8
// CHECK: Punctuation: ";" [91:21 - 91:22] CompoundStmt=
// CHECK: Keyword: "this" [92:5 - 92:9] CXXThisExpr=
// CHECK: Punctuation: "->" [92:9 - 92:11] MemberRefExpr=g:86:8
// CHECK: Punctuation: "::" [92:11 - 92:13] MemberRefExpr=g:86:8
// CHECK: Identifier: "X4" [92:13 - 92:15] TemplateRef=X4:69:8
// CHECK: Punctuation: "<" [92:15 - 92:16] MemberRefExpr=g:86:8
// CHECK: Identifier: "type" [92:16 - 92:20] TypeRef=type:84:19
// CHECK: Punctuation: ">" [92:20 - 92:21] MemberRefExpr=g:86:8
// CHECK: Punctuation: "::" [92:21 - 92:23] MemberRefExpr=g:86:8
// CHECK: Identifier: "g" [92:23 - 92:24] MemberRefExpr=g:86:8
// CHECK: Punctuation: "(" [92:24 - 92:25] CallExpr=g:86:8
// CHECK: Identifier: "t" [92:25 - 92:26] DeclRefExpr=t:89:15
// CHECK: Punctuation: ")" [92:26 - 92:27] CallExpr=g:86:8
// Dependent name type
// CHECK: Keyword: "typedef" [100:3 - 100:10] TypedefDecl=iter_type:100:63 (Definition)
// CHECK: Keyword: "typename" [100:11 - 100:19] TypedefDecl=iter_type:100:63 (Definition)
// CHECK: Identifier: "outer_alias" [100:20 - 100:31] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [100:31 - 100:33] TypedefDecl=iter_type:100:63 (Definition)
// CHECK: Identifier: "inner" [100:33 - 100:38] NamespaceRef=inner:62:13
// CHECK: Punctuation: "::" [100:38 - 100:40] TypedefDecl=iter_type:100:63 (Definition)
// CHECK: Identifier: "vector" [100:40 - 100:46] TemplateRef=vector:4:12
// CHECK: Punctuation: "<" [100:46 - 100:47] TypedefDecl=iter_type:100:63 (Definition)
// CHECK: Identifier: "type" [100:47 - 100:51] TypeRef=type:99:13
// CHECK: Punctuation: ">" [100:51 - 100:52] TypedefDecl=iter_type:100:63 (Definition)
// CHECK: Punctuation: "::" [100:52 - 100:54] TypedefDecl=iter_type:100:63 (Definition)
// CHECK: Identifier: "iterator" [100:54 - 100:62] TypedefDecl=iter_type:100:63 (Definition)
// CHECK: Identifier: "iter_type" [100:63 - 100:72] TypedefDecl=iter_type:100:63 (Definition)
// CHECK: Keyword: "typedef" [101:3 - 101:10] TypedefDecl=int_ptr_type:101:62 (Definition)
// CHECK: Keyword: "typename" [101:11 - 101:19] TypedefDecl=int_ptr_type:101:62 (Definition)
// CHECK: Identifier: "outer_alias" [101:20 - 101:31] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [101:31 - 101:33] TypedefDecl=int_ptr_type:101:62 (Definition)
// CHECK: Identifier: "inner" [101:33 - 101:38] NamespaceRef=inner:62:13
// CHECK: Punctuation: "::" [101:38 - 101:40] TypedefDecl=int_ptr_type:101:62 (Definition)
// CHECK: Identifier: "vector" [101:40 - 101:46] TemplateRef=vector:4:12
// CHECK: Punctuation: "<" [101:46 - 101:47] TypedefDecl=int_ptr_type:101:62 (Definition)
// CHECK: Keyword: "int" [101:47 - 101:50] TypedefDecl=int_ptr_type:101:62 (Definition)
// CHECK: Punctuation: ">" [101:50 - 101:51] TypedefDecl=int_ptr_type:101:62 (Definition)
// CHECK: Punctuation: "::" [101:51 - 101:53] TypedefDecl=int_ptr_type:101:62 (Definition)
// CHECK: Identifier: "iterator" [101:53 - 101:61] TypeRef=iterator:5:18
// CHECK: Identifier: "int_ptr_type" [101:62 - 101:74] TypedefDecl=int_ptr_type:101:62 (Definition)
// Dependent template specialization types
// CHECK: Keyword: "typename" [107:11 - 107:19] TypedefDecl=type1:107:76 (Definition)
// CHECK: Identifier: "outer_alias" [107:20 - 107:31] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [107:31 - 107:33] TypedefDecl=type1:107:76 (Definition)
// CHECK: Identifier: "inner" [107:33 - 107:38] NamespaceRef=inner:62:13
// CHECK: Punctuation: "::" [107:38 - 107:40] TypedefDecl=type1:107:76 (Definition)
// CHECK: Identifier: "vector" [107:40 - 107:46] TemplateRef=vector:4:12
// CHECK: Punctuation: "<" [107:46 - 107:47] TypedefDecl=type1:107:76 (Definition)
// CHECK: Identifier: "type" [107:47 - 107:51] TypeRef=type:106:14
// CHECK: Punctuation: ">" [107:51 - 107:52] TypedefDecl=type1:107:76 (Definition)
// CHECK: Punctuation: "::" [107:52 - 107:54] TypedefDecl=type1:107:76 (Definition)
// CHECK: Keyword: "template" [107:54 - 107:62] TypedefDecl=type1:107:76 (Definition)
// CHECK: Identifier: "rebind" [107:63 - 107:69] TypedefDecl=type1:107:76 (Definition)
// CHECK: Punctuation: "<" [107:69 - 107:70] TypedefDecl=type1:107:76 (Definition)
// CHECK: Identifier: "type" [107:70 - 107:74] TypeRef=type:106:14
// CHECK: Punctuation: ">" [107:74 - 107:75] TypedefDecl=type1:107:76 (Definition)
// CHECK: Identifier: "type1" [107:76 - 107:81] TypedefDecl=type1:107:76 (Definition)
// CHECK: Keyword: "typedef" [108:3 - 108:10] TypedefDecl=type2:108:83 (Definition)
// CHECK: Keyword: "typename" [108:11 - 108:19] TypedefDecl=type2:108:83 (Definition)
// CHECK: Identifier: "outer_alias" [108:20 - 108:31] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [108:31 - 108:33] TypedefDecl=type2:108:83 (Definition)
// CHECK: Identifier: "inner" [108:33 - 108:38] NamespaceRef=inner:62:13
// CHECK: Punctuation: "::" [108:38 - 108:40] TypedefDecl=type2:108:83 (Definition)
// CHECK: Identifier: "vector" [108:40 - 108:46] TemplateRef=vector:4:12
// CHECK: Punctuation: "<" [108:46 - 108:47] TypedefDecl=type2:108:83 (Definition)
// CHECK: Identifier: "type" [108:47 - 108:51] TypeRef=type:106:14
// CHECK: Punctuation: ">" [108:51 - 108:52] TypedefDecl=type2:108:83 (Definition)
// CHECK: Punctuation: "::" [108:52 - 108:54] TypedefDecl=type2:108:83 (Definition)
// CHECK: Keyword: "template" [108:54 - 108:62] TypedefDecl=type2:108:83 (Definition)
// CHECK: Identifier: "rebind" [108:63 - 108:69] TypedefDecl=type2:108:83 (Definition)
// CHECK: Punctuation: "<" [108:69 - 108:70] TypedefDecl=type2:108:83 (Definition)
// CHECK: Identifier: "type" [108:70 - 108:74] TypeRef=type:106:14
// CHECK: Punctuation: ">" [108:74 - 108:75] TypedefDecl=type2:108:83 (Definition)
// CHECK: Punctuation: "::" [108:75 - 108:77] TypedefDecl=type2:108:83 (Definition)
// CHECK: Identifier: "other" [108:77 - 108:82] TypedefDecl=type2:108:83 (Definition)
// CHECK: Identifier: "type2" [108:83 - 108:88] TypedefDecl=type2:108:83 (Definition)
// CHECK: Keyword: "typedef" [109:3 - 109:10] TypedefDecl=type3:109:73 (Definition)
// CHECK: Keyword: "class" [109:11 - 109:16] TypedefDecl=type3:109:73 (Definition)
// CHECK: Identifier: "outer_alias" [109:17 - 109:28] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [109:28 - 109:30] TypedefDecl=type3:109:73 (Definition)
// CHECK: Identifier: "inner" [109:30 - 109:35] NamespaceRef=inner:62:13
// CHECK: Punctuation: "::" [109:35 - 109:37] TypedefDecl=type3:109:73 (Definition)
// CHECK: Identifier: "vector" [109:37 - 109:43] TemplateRef=vector:4:12
// CHECK: Punctuation: "<" [109:43 - 109:44] TypedefDecl=type3:109:73 (Definition)
// CHECK: Identifier: "type" [109:44 - 109:48] TypeRef=type:106:14
// CHECK: Punctuation: ">" [109:48 - 109:49] TypedefDecl=type3:109:73 (Definition)
// CHECK: Punctuation: "::" [109:49 - 109:51] TypedefDecl=type3:109:73 (Definition)
// CHECK: Keyword: "template" [109:51 - 109:59] TypedefDecl=type3:109:73 (Definition)
// CHECK: Identifier: "rebind" [109:60 - 109:66] TypedefDecl=type3:109:73 (Definition)
// CHECK: Punctuation: "<" [109:66 - 109:67] TypedefDecl=type3:109:73 (Definition)
// CHECK: Identifier: "type" [109:67 - 109:71] TypeRef=type:106:14
// CHECK: Punctuation: ">" [109:71 - 109:72] TypedefDecl=type3:109:73 (Definition)
// CHECK: Identifier: "type3" [109:73 - 109:78] TypedefDecl=type3:109:73 (Definition)
// CHECK: Keyword: "class" [110:11 - 110:16] TypedefDecl=type4:110:80 (Definition)
// CHECK: Identifier: "outer_alias" [110:17 - 110:28] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [110:28 - 110:30] TypedefDecl=type4:110:80 (Definition)
// CHECK: Identifier: "inner" [110:30 - 110:35] NamespaceRef=inner:62:13
// CHECK: Punctuation: "::" [110:35 - 110:37] TypedefDecl=type4:110:80 (Definition)
// CHECK: Identifier: "vector" [110:37 - 110:43] TemplateRef=vector:4:12
// CHECK: Punctuation: "<" [110:43 - 110:44] TypedefDecl=type4:110:80 (Definition)
// CHECK: Identifier: "type" [110:44 - 110:48] TypeRef=type:106:14
// CHECK: Punctuation: ">" [110:48 - 110:49] TypedefDecl=type4:110:80 (Definition)
// CHECK: Punctuation: "::" [110:49 - 110:51] TypedefDecl=type4:110:80 (Definition)
// CHECK: Keyword: "template" [110:51 - 110:59] TypedefDecl=type4:110:80 (Definition)
// CHECK: Identifier: "rebind" [110:60 - 110:66] TypedefDecl=type4:110:80 (Definition)
// CHECK: Punctuation: "<" [110:66 - 110:67] TypedefDecl=type4:110:80 (Definition)
// CHECK: Identifier: "type" [110:67 - 110:71] TypeRef=type:106:14
// CHECK: Punctuation: ">" [110:71 - 110:72] TypedefDecl=type4:110:80 (Definition)
// CHECK: Punctuation: "::" [110:72 - 110:74] TypedefDecl=type4:110:80 (Definition)
// CHECK: Identifier: "other" [110:74 - 110:79] TypedefDecl=type4:110:80 (Definition)
// CHECK: Identifier: "type4" [110:80 - 110:85] TypedefDecl=type4:110:80 (Definition)
// Template template arguments
// CHECK: Keyword: "typedef" [126:3 - 126:10] TypedefDecl=type:126:74 (Definition)
// CHECK: Identifier: "outer_alias" [126:11 - 126:22] NamespaceRef=outer_alias:10:11
// CHECK: Punctuation: "::" [126:22 - 126:24] TypedefDecl=type:126:74 (Definition)
// CHECK: Identifier: "inner" [126:24 - 126:29] NamespaceRef=inner:114:13
// CHECK: Punctuation: "::" [126:29 - 126:31] TypedefDecl=type:126:74 (Definition)
// CHECK: Identifier: "apply_meta" [126:31 - 126:41] TemplateRef=apply_meta:116:12
// CHECK: Punctuation: "<" [126:41 - 126:42] TypedefDecl=type:126:74 (Definition)
// CHECK: Identifier: "T_type" [126:42 - 126:48] TypeRef=T_type:124:13
// CHECK: Punctuation: "," [126:48 - 126:49] TypedefDecl=type:126:74 (Definition)
// CHECK: Identifier: "U_type" [126:50 - 126:56] TypeRef=U_type:125:13
// CHECK: Punctuation: "::" [126:56 - 126:58] TypedefDecl=type:126:74 (Definition)
// CHECK: Keyword: "template" [126:58 - 126:66] TypedefDecl=type:126:74 (Definition)
// CHECK: Identifier: "apply" [126:67 - 126:72] TypedefDecl=type:126:74 (Definition)
// CHECK: Punctuation: ">" [126:72 - 126:73] TypedefDecl=type:126:74 (Definition)
// CHECK: Identifier: "type" [126:74 - 126:78] TypedefDecl=type:126:74 (Definition)
// Member access expressions
// CHECK: Identifier: "inherited" [136:5 - 136:14] TypeRef=inherited:134:14
// CHECK: Punctuation: "::" [136:14 - 136:16] MemberRefExpr=f:130:8
// CHECK: Identifier: "f" [136:16 - 136:17] MemberRefExpr=f:130:8
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-macros.c
|
#include "complete-macros.h"
// Note: the run lines follow their respective tests, since line/column matter in this test.
#define FOO(Arg1,Arg2) foobar
#define nil 0
#undef FOO
void f() {
}
void g(int);
void f2() {
int *ip = nil;
ip = nil;
g(nil);
}
#define variadic1(...)
#define variadic2(args...)
#define variadic3(args, ...)
#define variadic4(first, second, args, ...)
#define variadic5(first, second, args ...)
void test_variadic() {
}
// RUN: c-index-test -code-completion-at=%s:7:1 %s -I%S | FileCheck -check-prefix=CHECK-CC0 %s
// CHECK-CC0-NOT: FOO
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:7:1 %s -I%S | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: macro definition:{TypedText FOO} (70)
// RUN: c-index-test -code-completion-at=%s:13:13 %s -I%S | FileCheck -check-prefix=CHECK-CC2 %s
// RUN: c-index-test -code-completion-at=%s:14:8 %s -I%S | FileCheck -check-prefix=CHECK-CC2 %s
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:14:8 %s -I%S | FileCheck -check-prefix=CHECK-CC2 %s
// CHECK-CC2: macro definition:{TypedText nil} (32)
// RUN: c-index-test -code-completion-at=%s:15:5 %s -I%S | FileCheck -check-prefix=CHECK-CC3 %s
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:15:5 %s -I%S | FileCheck -check-prefix=CHECK-CC3 %s
// CHECK-CC3: macro definition:{TypedText nil} (65)
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:25:2 %s -I%S | FileCheck -check-prefix=CHECK-VARIADIC %s
// CHECK-VARIADIC: macro definition:{TypedText variadic1}{LeftParen (}{Placeholder ...}{RightParen )} (70)
// CHECK-VARIADIC: macro definition:{TypedText variadic2}{LeftParen (}{Placeholder args...}{RightParen )} (70)
// CHECK-VARIADIC: macro definition:{TypedText variadic3}{LeftParen (}{Placeholder args, ...}{RightParen )} (70)
// CHECK-VARIADIC: macro definition:{TypedText variadic4}{LeftParen (}{Placeholder first}{Comma , }{Placeholder second}{Comma , }{Placeholder args, ...}{RightParen )} (70)
// CHECK-VARIADIC: macro definition:{TypedText variadic5}{LeftParen (}{Placeholder first}{Comma , }{Placeholder second}{Comma , }{Placeholder args...}{RightParen )} (70)
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:15:5 %s -I%S | FileCheck -check-prefix=CHECK-CC4 %s
// CHECK-CC4-NOT: COMPLETE_MACROS_H_GUARD
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/retain-comments-from-system-headers.c
|
// Run lines are sensitive to line numbers and come below the code.
#include "retain-comments-from-system-headers.h"
/**
* user_function
* \param a Aaa.
*/
int user_function(int a);
// RUN: rm -rf %t/cache
// RUN: c-index-test -test-load-source all %s -I %S/Inputs | FileCheck %s
// RUN: c-index-test -test-load-source all %s -fretain-comments-from-system-headers -I %S/Inputs | FileCheck %s -check-prefix=CHECK-RETAIN
// Modules:
// RUN: c-index-test -test-load-source all %s -I %S/Inputs -fmodules -fmodules-cache-path=%t/cache -fmodule-map-file=%S/Inputs/retain-comments-from-system-headers-module.map | FileCheck %s -check-prefix=CHECK
// RUN: c-index-test -test-load-source all %s -fretain-comments-from-system-headers -I %S/Inputs -fmodules -fmodules-cache-path=%t/cache -fmodule-map-file=%S/Inputs/retain-comments-from-system-headers-module.map | FileCheck %s -check-prefix=CHECK-RETAIN
// CHECK: retain-comments-from-system-headers.h:7:5: FunctionDecl=system_function:7:5 Extent=[7:1 - 7:27]
// CHECK: retain-comments-from-system-headers.c:9:5: FunctionDecl=user_function:9:5 RawComment=[/**\n * user_function\n * \param a Aaa.\n */] RawCommentRange=[5:1 - 8:4] BriefComment=[user_function]
// CHECK-RETAIN: retain-comments-from-system-headers.h:7:5: FunctionDecl=system_function:7:5 RawComment=[/**\n * system_function\n * \param a Aaa.\n */] RawCommentRange=[3:1 - 6:4] BriefComment=[system_function]
// CHECK-RETAIN: retain-comments-from-system-headers.c:9:5: FunctionDecl=user_function:9:5 RawComment=[/**\n * user_function\n * \param a Aaa.\n */] RawCommentRange=[5:1 - 8:4] BriefComment=[user_function]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/recover-bad-code-rdar_7487294.c
|
// RUN: not %clang-cc1 -fsyntax-only %s 2>&1 | FileCheck %s
// IMPORTANT: This test case intentionally DOES NOT use --disable-free. It
// tests that we are properly reclaiming the ASTs and we do not have a double free.
// Previously we tried to free the size expression of the VLA twice.
int foo(int x) {
int y[x * 3];
help
};
// CHECK: 9:3: error: use of undeclared identifier 'help'
// CHECK: help
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/file-macro-refs.c
|
#define FOO
FOO
FOO
// RUN: c-index-test -file-refs-at=%s:3:2 %s | FileCheck %s
// RUN: env CINDEXTEST_EDITING=1 c-index-test -file-refs-at=%s:3:2 %s | FileCheck %s
// CHECK: macro expansion=FOO:1:9
// CHECK-NEXT: macro definition=FOO =[1:9 - 1:12]
// CHECK-NEXT: macro expansion=FOO:1:9 =[3:1 - 3:4]
// CHECK-NEXT: macro expansion=FOO:1:9 =[4:1 - 4:4]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-constructor-params.cpp
|
// Note: the run lines follow their respective tests, since line/column
// matter in this test.
template<class T>
struct S {
template<class U>
S(T, U, U) {}
};
int main() {
S<int>(42, 42, 42);
S<int>(42, 42, 42);
S<int> s(42, 42, 42);
S<int>(42, 42, 42,);
S<int> z(42, 42, 42,);
int(42);
}
// RUN: c-index-test -code-completion-at=%s:11:10 %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: OverloadCandidate:{Text S}{LeftParen (}{CurrentParameter const S<int> &}{RightParen )} (1)
// CHECK-CC1: OverloadCandidate:{Text S}{LeftParen (}{CurrentParameter int}{Comma , }{Placeholder U}{Comma , }{Placeholder U}{RightParen )} (1)
// CHECK-CC1: Completion contexts:
// CHECK-CC1-NEXT: Any type
// CHECK-CC1-NEXT: Any value
// CHECK-CC1-NEXT: Enum tag
// CHECK-CC1-NEXT: Union tag
// CHECK-CC1-NEXT: Struct tag
// CHECK-CC1-NEXT: Class name
// CHECK-CC1-NEXT: Nested name specifier
// CHECK-CC1-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:12:10 %s | FileCheck -check-prefix=CHECK-CC2 %s
// CHECK-CC2: OverloadCandidate:{Text S}{LeftParen (}{CurrentParameter const S<int> &}{RightParen )} (1)
// CHECK-CC2: OverloadCandidate:{Text S}{LeftParen (}{CurrentParameter int}{Comma , }{Placeholder U}{Comma , }{Placeholder U}{RightParen )} (1)
// CHECK-CC2: Completion contexts:
// CHECK-CC2-NEXT: Any type
// CHECK-CC2-NEXT: Any value
// CHECK-CC2-NEXT: Enum tag
// CHECK-CC2-NEXT: Union tag
// CHECK-CC2-NEXT: Struct tag
// CHECK-CC2-NEXT: Class name
// CHECK-CC2-NEXT: Nested name specifier
// CHECK-CC2-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:12:13 %s | FileCheck -check-prefix=CHECK-CC3 %s
// CHECK-CC3: OverloadCandidate:{Text S}{LeftParen (}{Placeholder int}{Comma , }{CurrentParameter U}{Comma , }{Placeholder U}{RightParen )} (1)
// CHECK-CC3: Completion contexts:
// CHECK-CC3-NEXT: Any type
// CHECK-CC3-NEXT: Any value
// CHECK-CC3-NEXT: Enum tag
// CHECK-CC3-NEXT: Union tag
// CHECK-CC3-NEXT: Struct tag
// CHECK-CC3-NEXT: Class name
// CHECK-CC3-NEXT: Nested name specifier
// CHECK-CC3-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:12:17 %s | FileCheck -check-prefix=CHECK-CC4 %s
// CHECK-CC4: OverloadCandidate:{Text S}{LeftParen (}{Placeholder int}{Comma , }{Placeholder int}{Comma , }{CurrentParameter int}{RightParen )} (1)
// CHECK-CC4: Completion contexts:
// CHECK-CC4-NEXT: Any type
// CHECK-CC4-NEXT: Any value
// CHECK-CC4-NEXT: Enum tag
// CHECK-CC4-NEXT: Union tag
// CHECK-CC4-NEXT: Struct tag
// CHECK-CC4-NEXT: Class name
// CHECK-CC4-NEXT: Nested name specifier
// CHECK-CC4-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:13:12 %s | FileCheck -check-prefix=CHECK-CC5 %s
// CHECK-CC5: OverloadCandidate:{Text S}{LeftParen (}{CurrentParameter const S<int> &}{RightParen )} (1)
// CHECK-CC5: OverloadCandidate:{Text S}{LeftParen (}{CurrentParameter int}{Comma , }{Placeholder U}{Comma , }{Placeholder U}{RightParen )} (1)
// CHECK-CC5: Completion contexts:
// CHECK-CC5-NEXT: Any type
// CHECK-CC5-NEXT: Any value
// CHECK-CC5-NEXT: Enum tag
// CHECK-CC5-NEXT: Union tag
// CHECK-CC5-NEXT: Struct tag
// CHECK-CC5-NEXT: Class name
// CHECK-CC5-NEXT: Nested name specifier
// CHECK-CC5-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:13:15 %s | FileCheck -check-prefix=CHECK-CC6 %s
// CHECK-CC6: OverloadCandidate:{Text S}{LeftParen (}{Placeholder int}{Comma , }{CurrentParameter U}{Comma , }{Placeholder U}{RightParen )} (1)
// CHECK-CC6: Completion contexts:
// CHECK-CC6-NEXT: Any type
// CHECK-CC6-NEXT: Any value
// CHECK-CC6-NEXT: Enum tag
// CHECK-CC6-NEXT: Union tag
// CHECK-CC6-NEXT: Struct tag
// CHECK-CC6-NEXT: Class name
// CHECK-CC6-NEXT: Nested name specifier
// CHECK-CC6-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:13:19 %s | FileCheck -check-prefix=CHECK-CC7 %s
// CHECK-CC7: OverloadCandidate:{Text S}{LeftParen (}{Placeholder int}{Comma , }{Placeholder int}{Comma , }{CurrentParameter int}{RightParen )} (1)
// CHECK-CC7: Completion contexts:
// CHECK-CC7-NEXT: Any type
// CHECK-CC7-NEXT: Any value
// CHECK-CC7-NEXT: Enum tag
// CHECK-CC7-NEXT: Union tag
// CHECK-CC7-NEXT: Struct tag
// CHECK-CC7-NEXT: Class name
// CHECK-CC7-NEXT: Nested name specifier
// CHECK-CC7-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:15:21 %s | FileCheck -check-prefix=CHECK-CC8 %s
// CHECK-CC8: Completion contexts:
// CHECK-CC8-NEXT: Any type
// CHECK-CC8-NEXT: Any value
// CHECK-CC8-NEXT: Enum tag
// CHECK-CC8-NEXT: Union tag
// CHECK-CC8-NEXT: Struct tag
// CHECK-CC8-NEXT: Class name
// CHECK-CC8-NEXT: Nested name specifier
// CHECK-CC8-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:16:23 %s | FileCheck -check-prefix=CHECK-CC9 %s
// CHECK-CC9: Completion contexts:
// CHECK-CC9-NEXT: Any type
// CHECK-CC9-NEXT: Any value
// CHECK-CC9-NEXT: Enum tag
// CHECK-CC9-NEXT: Union tag
// CHECK-CC9-NEXT: Struct tag
// CHECK-CC9-NEXT: Class name
// CHECK-CC9-NEXT: Nested name specifier
// CHECK-CC9-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:18:7 %s | FileCheck -check-prefix=CHECK-CC10 %s
// CHECK-CC10: FunctionDecl:{ResultType int}{TypedText main}{LeftParen (}{RightParen )} (12)
// CHECK-CC10: Completion contexts:
// CHECK-CC10-NEXT: Any type
// CHECK-CC10-NEXT: Any value
// CHECK-CC10-NEXT: Enum tag
// CHECK-CC10-NEXT: Union tag
// CHECK-CC10-NEXT: Struct tag
// CHECK-CC10-NEXT: Class name
// CHECK-CC10-NEXT: Nested name specifier
// CHECK-CC10-NEXT: Objective-C interface
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/remap-load.c
|
// RUN: c-index-test -test-load-source all -remap-file="%s,%S/Inputs/remap-load-to.c" %s | FileCheck -check-prefix=CHECK %s
// CHECK: remap-load.c:1:5: FunctionDecl=foo:1:5 (Definition) Extent=[1:1 - 3:2]
// CHECK: remap-load.c:1:13: ParmDecl=parm1:1:13 (Definition) Extent=[1:9 - 1:18]
// CHECK: remap-load.c:1:26: ParmDecl=parm2:1:26 (Definition) Extent=[1:20 - 1:31]
// CHECK: remap-load.c:2:10: UnexposedExpr= Extent=[2:10 - 2:23]
// CHECK: remap-load.c:2:10: BinaryOperator= Extent=[2:10 - 2:23]
// CHECK: remap-load.c:2:10: UnexposedExpr=parm1:1:13 Extent=[2:10 - 2:15]
// CHECK: remap-load.c:2:10: DeclRefExpr=parm1:1:13 Extent=[2:10 - 2:15]
// CHECK: remap-load.c:2:18: DeclRefExpr=parm2:1:26 Extent=[2:18 - 2:23]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/unmatched-braces.c
|
void foo() {
int x;
if (x) {
}
// RUN: c-index-test -cursor-at=%s:2:7 %s > %t
// RUN: FileCheck %s -input-file %t
// CHECK: VarDecl=x:2:7
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/annotate-comments-availability-attrs.cpp
|
// rdar://12378879
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng %s > %t/out
// RUN: FileCheck %s < %t/out
// Ensure that XML we generate is not invalid.
// RUN: FileCheck %s -check-prefix=WRONG < %t/out
// WRONG-NOT: CommentXMLInvalid
/// Aaa.
void attr_availability_1() __attribute__((availability(macosx,obsoleted=10.0,introduced=8.0,deprecated=9.0, message="use availability_test in <foo.h>")))
__attribute__((availability(ios,unavailable, message="not for iOS")));
// CHECK: FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments-availability-attrs.cpp" line="[[@LINE-3]]" column="6"><Name>attr_availability_1</Name><USR>c:@F@attr_availability_1#</USR><Declaration>void attr_availability_1()</Declaration><Abstract><Para> Aaa.</Para></Abstract><Availability distribution="iOS"><DeprecationSummary>not for iOS</DeprecationSummary><Unavailable/></Availability><Availability distribution="OS X"><IntroducedInVersion>8.0</IntroducedInVersion><DeprecatedInVersion>9.0</DeprecatedInVersion><RemovedAfterVersion>10.0</RemovedAfterVersion><DeprecationSummary>use availability_test in <foo.h></DeprecationSummary></Availability></Function>]
/// Aaa.
void attr_availability_2() __attribute__((availability(macosx,obsoleted=10.0.1,introduced=8.0.1,deprecated=9.0.1)));
// CHECK: FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments-availability-attrs.cpp" line="[[@LINE-2]]" column="6"><Name>attr_availability_2</Name><USR>c:@F@attr_availability_2#</USR><Declaration>void attr_availability_2()</Declaration><Abstract><Para> Aaa.</Para></Abstract><Availability distribution="OS X"><IntroducedInVersion>8.0.1</IntroducedInVersion><DeprecatedInVersion>9.0.1</DeprecatedInVersion><RemovedAfterVersion>10.0.1</RemovedAfterVersion></Availability></Function>]
/// Aaa.
void attr_deprecated_1() __attribute__((deprecated));
// CHECK: FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments-availability-attrs.cpp" line="[[@LINE-2]]" column="6"><Name>attr_deprecated_1</Name><USR>c:@F@attr_deprecated_1#</USR><Declaration>void attr_deprecated_1()</Declaration><Abstract><Para> Aaa.</Para></Abstract><Deprecated/></Function>]
/// Aaa.
void attr_deprecated_2() __attribute__((deprecated("message 1 <foo.h>")));
// CHECK: FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments-availability-attrs.cpp" line="[[@LINE-2]]" column="6"><Name>attr_deprecated_2</Name><USR>c:@F@attr_deprecated_2#</USR><Declaration>void attr_deprecated_2()</Declaration><Abstract><Para> Aaa.</Para></Abstract><Deprecated>message 1 <foo.h></Deprecated></Function>]
/// Aaa.
void attr_unavailable_1() __attribute__((unavailable));
// CHECK: FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments-availability-attrs.cpp" line="[[@LINE-2]]" column="6"><Name>attr_unavailable_1</Name><USR>c:@F@attr_unavailable_1#</USR><Declaration>void attr_unavailable_1()</Declaration><Abstract><Para> Aaa.</Para></Abstract><Unavailable/></Function>]
/// Aaa.
void attr_unavailable_2() __attribute__((unavailable("message 2 <foo.h>")));
// CHECK: FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments-availability-attrs.cpp" line="[[@LINE-2]]" column="6"><Name>attr_unavailable_2</Name><USR>c:@F@attr_unavailable_2#</USR><Declaration>void attr_unavailable_2()</Declaration><Abstract><Para> Aaa.</Para></Abstract><Unavailable>message 2 <foo.h></Unavailable></Function>]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-qualified.cpp
|
template <typename X, typename Y>
class C
{
};
class Foo
{
public:
C<Foo, class Bar> c;
};
void foo()
{
Foo::
// RUN: c-index-test -code-completion-at=%s:14:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: FieldDecl:{ResultType C<Foo, class Bar>}{TypedText c} (35)
// CHECK-CC1: ClassDecl:{TypedText Foo} (35)
// CHECK-CC1: CXXMethod:{ResultType Foo &}{TypedText operator=}{LeftParen (}{Placeholder const Foo &}{RightParen )}
// CHECK-CC1: CXXDestructor:{ResultType void}{TypedText ~Foo}{LeftParen (}{RightParen )} (35)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/create-tu-fail.c
|
// RUN: rm -f %t.c
// RUN: touch %t.c
// RUN: c-index-test -write-pch %t.pch %t.c
// RUN: cp %s %t.c
// RUN: not c-index-test -test-load-tu %t.pch local 2>&1 | FileCheck %s
// rdar://11558355
// Unfortunately this would crash reliably only via valgrind.
// CHECK: Unable to load translation unit
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/index-suppress-refs.cpp
|
#include "index-suppress-refs.hpp"
class Sub : B1, B2 {
typedef B1 Base1;
typedef B2 Base2;
};
// RUN: env CINDEXTEST_SUPPRESSREFS=1 c-index-test -index-file %s | FileCheck %s
// CHECK: [indexDeclaration]: kind: c++-class | name: Sub
// CHECK-NOT: [indexEntityReference]: kind: c++-class | name: B1
// CHECK-NOT: [indexEntityReference]: kind: c++-class | name: B2
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/getcursor-pp-pch.c.h
|
#define OBSCURE(X) X
#define DECORATION
DECORATION
OBSCURE(DECORATION)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/print-mangled-name.cpp
|
// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-pch %s -o %t_linux.ast
// RUN: c-index-test -test-print-mangle %t_linux.ast | FileCheck %s --check-prefix=ITANIUM
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-pch %s -o %t_macho.ast
// RUN: c-index-test -test-print-mangle %t_macho.ast | FileCheck %s --check-prefix=MACHO
// RUN: %clang_cc1 -triple i686-pc-win32 -emit-pch %s -o %t_msft.ast
// RUN: c-index-test -test-print-mangle %t_msft.ast | FileCheck %s --check-prefix=MICROSOFT
int foo(int, int);
// ITANIUM: mangled=_Z3fooii
// MACHO: mangled=__Z3fooii
// MICROSOFT: mangled=?foo@@YAHHH
int foo(float, int);
// ITANIUM: mangled=_Z3foofi
// MACHO: mangled=__Z3foofi
// MICROSOFT: mangled=?foo@@YAHMH
struct S {
int x, y;
};
// ITANIUM: StructDecl{{.*}}mangled=]
// MACHO: StructDecl{{.*}}mangled=]
// MICROSOFT: StructDecl{{.*}}mangled=]
int foo(S, S&);
// ITANIUM: mangled=_Z3foo1SRS_
// MACHO: mangled=__Z3foo1SRS_
// MICROSOFT: mangled=?foo@@YAHUS
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-stmt.c
|
// Note: the run lines follow their respective tests, since line/column
// matter in this test.
typedef int Integer;
void f(int x) {
if (x) {
}
}
// RUN: env CINDEXTEST_CODE_COMPLETE_PATTERNS=1 c-index-test -code-completion-at=%s:7:4 %s | FileCheck -check-prefix=CHECK-IF-ELSE %s
// CHECK-IF-ELSE: NotImplemented:{TypedText else}{HorizontalSpace }{LeftBrace {}{VerticalSpace }{Placeholder statements}{VerticalSpace }{RightBrace }} (40)
// CHECK-IF-ELSE: NotImplemented:{TypedText else}{HorizontalSpace }{Text if}{HorizontalSpace }{LeftParen (}{Placeholder expression}{RightParen )}{HorizontalSpace }{LeftBrace {}{VerticalSpace }{Placeholder statements}{VerticalSpace }{RightBrace }} (40)
// RUN: c-index-test -code-completion-at=%s:7:4 %s | FileCheck -check-prefix=CHECK-IF-ELSE-SIMPLE %s
// CHECK-IF-ELSE-SIMPLE: NotImplemented:{TypedText else} (40)
// CHECK-IF-ELSE-SIMPLE: NotImplemented:{TypedText else}{HorizontalSpace }{Text if}{HorizontalSpace }{LeftParen (}{Placeholder expression}{RightParen )} (40)
// RUN: c-index-test -code-completion-at=%s:6:1 %s | FileCheck -check-prefix=CHECK-STMT %s
// CHECK-STMT: NotImplemented:{TypedText _Nonnull} (50)
// CHECK-STMT: NotImplemented:{TypedText _Nullable} (50)
// CHECK-STMT: NotImplemented:{TypedText char} (50)
// CHECK-STMT: NotImplemented:{TypedText const} (50)
// CHECK-STMT: NotImplemented:{TypedText double} (50)
// CHECK-STMT: NotImplemented:{TypedText enum} (50)
// CHECK-STMT: FunctionDecl:{ResultType void}{TypedText f}{LeftParen (}{Placeholder int x}{RightParen )} (50)
// CHECK-STMT: TypedefDecl:{TypedText Integer} (50)
// CHECK-STMT: ParmDecl:{ResultType int}{TypedText x} (34)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/annotate-tokens-include.h
|
int foo();
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/targeted-file-refs.c
|
#include "targeted-top.h"
#include "targeted-preamble.h"
extern int LocalVar;
int LocalVar;
// RUN: c-index-test -write-pch %t.h.pch %S/targeted-top.h -Xclang -detailed-preprocessing-record
// RUN: env CINDEXTEST_FAILONERROR=1 c-index-test -file-refs-at=%s:5:17 %s -include %t.h \
// RUN: -Xclang -error-on-deserialized-decl=NestedVar1 \
// RUN: -Xclang -error-on-deserialized-decl=TopVar \
// RUN: | FileCheck %s -check-prefix=LOCAL
// RUN: env CINDEXTEST_FAILONERROR=1 CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_NO_CACHING=1 \
// RUN: c-index-test -file-refs-at=%s:5:17 %s -include %t.h \
// RUN: -Xclang -error-on-deserialized-decl=PreambleVar \
// RUN: -Xclang -error-on-deserialized-decl=NestedVar1 \
// RUN: -Xclang -error-on-deserialized-decl=TopVar \
// RUN: | FileCheck %s -check-prefix=LOCAL
// LOCAL: VarDecl=LocalVar:5:12
// LOCAL: VarDecl=LocalVar:5:12 =[5:12 - 5:20]
// LOCAL: VarDecl=LocalVar:6:5 =[6:5 - 6:13]
// RUN: env CINDEXTEST_FAILONERROR=1 c-index-test -file-refs-at=%S/targeted-top.h:14:7 %s -include %t.h \
// RUN: -Xclang -error-on-deserialized-decl=NestedVar1 \
// RUN: | FileCheck %s -check-prefix=TOP
// RUN: env CINDEXTEST_FAILONERROR=1 CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_NO_CACHING=1 \
// RUN: c-index-test -file-refs-at=%S/targeted-top.h:14:7 %s -include %t.h \
// RUN: -Xclang -error-on-deserialized-decl=PreambleVar \
// RUN: -Xclang -error-on-deserialized-decl=NestedVar1 \
// RUN: | FileCheck %s -check-prefix=TOP
// TOP: FieldDecl=x:14:7 (Definition)
// TOP: FieldDecl=x:14:7 (Definition) =[14:7 - 14:8]
// TOP: MemberRefExpr=x:14:7 SingleRefName=[20:13 - 20:14] RefName=[20:13 - 20:14] =[20:13 - 20:14]
// RUN: env CINDEXTEST_FAILONERROR=1 c-index-test -file-refs-at=%S/targeted-nested1.h:2:16 %s -include %t.h \
// RUN: -Xclang -error-on-deserialized-decl=TopVar \
// RUN: | FileCheck %s -check-prefix=NESTED
// RUN: env CINDEXTEST_FAILONERROR=1 CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_NO_CACHING=1 \
// RUN: c-index-test -file-refs-at=%S/targeted-nested1.h:2:16 %s -include %t.h \
// RUN: -Xclang -error-on-deserialized-decl=PreambleVar \
// RUN: -Xclang -error-on-deserialized-decl=TopVar \
// RUN: | FileCheck %s -check-prefix=NESTED
// NESTED: VarDecl=NestedVar1:2:12
// NESTED: VarDecl=NestedVar1:2:12 =[2:12 - 2:22]
// RUN: env CINDEXTEST_FAILONERROR=1 CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_NO_CACHING=1 \
// RUN: c-index-test -file-refs-at=%S/targeted-preamble.h:2:15 %s -include %t.h \
// RUN: -Xclang -error-on-deserialized-decl=NestedVar1 \
// RUN: -Xclang -error-on-deserialized-decl=TopVar \
// RUN: | FileCheck %s -check-prefix=PREAMBLE
// PREAMBLE: VarDecl=PreambleVar:2:12
// PREAMBLE: VarDecl=PreambleVar:2:12 =[2:12 - 2:23]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-access-checks.cpp
|
struct X {
int member1;
void func1();
protected:
int member2;
void func2();
private:
int member3;
void func3();
};
struct Y: protected X {
void doSomething();
};
class Z {
public:
int member1;
void func1();
protected:
int member2;
void func2();
private:
int member3;
void func3();
};
void Y::doSomething() {
// RUN: c-index-test -code-completion-at=%s:30:9 %s | FileCheck -check-prefix=CHECK-SUPER-ACCESS %s
this->;
Z that;
// RUN: c-index-test -code-completion-at=%s:34:8 %s | FileCheck -check-prefix=CHECK-ACCESS %s
that.
}
// CHECK-SUPER-ACCESS: CXXMethod:{ResultType void}{TypedText doSomething}{LeftParen (}{RightParen )} (34)
// CHECK-SUPER-ACCESS: CXXMethod:{ResultType void}{Informative X::}{TypedText func1}{LeftParen (}{RightParen )} (36)
// CHECK-SUPER-ACCESS: CXXMethod:{ResultType void}{Informative X::}{TypedText func2}{LeftParen (}{RightParen )} (36) (inaccessible)
// CHECK-SUPER-ACCESS: CXXMethod:{ResultType void}{Informative X::}{TypedText func3}{LeftParen (}{RightParen )} (36) (inaccessible)
// CHECK-SUPER-ACCESS: FieldDecl:{ResultType int}{Informative X::}{TypedText member1} (37)
// CHECK-SUPER-ACCESS: FieldDecl:{ResultType int}{Informative X::}{TypedText member2} (37) (inaccessible)
// CHECK-SUPER-ACCESS: FieldDecl:{ResultType int}{Informative X::}{TypedText member3} (37) (inaccessible)
// CHECK-SUPER-ACCESS: CXXMethod:{ResultType Y &}{TypedText operator=}{LeftParen (}{Placeholder const Y &}{RightParen )} (34)
// CHECK-SUPER-ACCESS: CXXMethod:{ResultType X &}{Text X::}{TypedText operator=}{LeftParen (}{Placeholder const X &}{RightParen )} (36)
// CHECK-SUPER-ACCESS: StructDecl:{TypedText X}{Text ::} (77)
// CHECK-SUPER-ACCESS: StructDecl:{TypedText Y}{Text ::} (75)
// CHECK-SUPER-ACCESS: CXXDestructor:{ResultType void}{Informative X::}{TypedText ~X}{LeftParen (}{RightParen )} (36)
// CHECK-SUPER-ACCESS: CXXDestructor:{ResultType void}{TypedText ~Y}{LeftParen (}{RightParen )} (34)
// CHECK-ACCESS: CXXMethod:{ResultType void}{TypedText func1}{LeftParen (}{RightParen )} (34)
// CHECK-ACCESS: CXXMethod:{ResultType void}{TypedText func2}{LeftParen (}{RightParen )} (34) (inaccessible)
// CHECK-ACCESS: CXXMethod:{ResultType void}{TypedText func3}{LeftParen (}{RightParen )} (34) (inaccessible)
// CHECK-ACCESS: FieldDecl:{ResultType int}{TypedText member1} (35)
// CHECK-ACCESS: FieldDecl:{ResultType int}{TypedText member2} (35) (inaccessible)
// CHECK-ACCESS: FieldDecl:{ResultType int}{TypedText member3} (35) (inaccessible)
// CHECK-ACCESS: CXXMethod:{ResultType Z &}{TypedText operator=}{LeftParen (}{Placeholder const Z &}{RightParen )} (34)
// CHECK-ACCESS: ClassDecl:{TypedText Z}{Text ::} (75)
// CHECK-ACCESS: CXXDestructor:{ResultType void}{TypedText ~Z}{LeftParen (}{RightParen )} (34)
class P {
protected:
int member;
};
class Q : public P {
public:
using P::member;
};
void f(P x, Q y) {
// RUN: c-index-test -code-completion-at=%s:73:5 %s | FileCheck -check-prefix=CHECK-USING-INACCESSIBLE %s
x.; // member is inaccessible
// RUN: c-index-test -code-completion-at=%s:75:5 %s | FileCheck -check-prefix=CHECK-USING-ACCESSIBLE %s
y.; // member is accessible
}
// CHECK-USING-INACCESSIBLE: FieldDecl:{ResultType int}{TypedText member} (35) (inaccessible)
// CHECK-USING-INACCESSIBLE: CXXMethod:{ResultType P &}{TypedText operator=}{LeftParen (}{Placeholder const P &}{RightParen )} (34)
// CHECK-USING-INACCESSIBLE: ClassDecl:{TypedText P}{Text ::} (75)
// CHECK-USING-INACCESSIBLE: CXXDestructor:{ResultType void}{TypedText ~P}{LeftParen (}{RightParen )} (34)
// CHECK-USING-ACCESSIBLE: FieldDecl:{ResultType int}{TypedText member} (35)
// CHECK-USING-ACCESSIBLE: CXXMethod:{ResultType Q &}{TypedText operator=}{LeftParen (}{Placeholder const Q &}{RightParen )} (34)
// CHECK-USING-ACCESSIBLE: CXXMethod:{ResultType P &}{Text P::}{TypedText operator=}{LeftParen (}{Placeholder const P &}{RightParen )} (36)
// CHECK-USING-ACCESSIBLE: ClassDecl:{TypedText P}{Text ::} (77)
// CHECK-USING-ACCESSIBLE: ClassDecl:{TypedText Q}{Text ::} (75)
// CHECK-USING-ACCESSIBLE: CXXDestructor:{ResultType void}{Informative P::}{TypedText ~P}{LeftParen (}{RightParen )} (36)
// CHECK-USING-ACCESSIBLE: CXXDestructor:{ResultType void}{TypedText ~Q}{LeftParen (}{RightParen )} (34)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/targeted-fields.h
|
int z;
int w;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/get-cursor.cpp
|
// Test is line- and column-sensitive. Run lines are below.
struct X {
X();
X(int);
X(int, int);
X(const X&);
};
X getX(int value) {
switch (value) {
case 1: return X(value);
case 2: return X(value, value);
case 3: return (X)value;
default: break;
}
return X();
}
struct Y {
int member;
X getX();
};
X Y::getX() {
return member;
}
struct YDerived : Y {
X getAnotherX() { return member; }
};
void test() {
X foo;
try {
} catch (X e) {
X x;
}
struct LocalS {
void meth() {
int x;
++x;
}
};
}
template <bool (*tfn)(X*)>
struct TS {
void foo();
};
template <bool (*tfn)(X*)>
void TS<tfn>::foo() {}
template <typename T>
class TC {
void init();
};
template<> void TC<char>::init();
#define EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
EXTERN_TEMPLATE(class TC<char>)
class A {
A();
virtual ~A();
// Assignment operators
A& operator=(const A&);
A& operator=(A&&) noexcept;
// Unary operators
A operator+() const;
A operator-() const;
A operator~() const;
A operator*() const;
A operator&() const;
bool operator!() const;
// (pre-|post-) increment and decrement
A& operator++();
A& operator--();
A operator++(int);
A operator--(int);
// Arithmetic operators
A operator+(const A&) const;
A operator-(const A&) const;
A operator*(const A&) const;
A operator/(const A&) const;
A operator%(const A&) const;
A operator&(const A&) const;
A operator|(const A&) const;
A operator^(const A&) const;
A operator<<(const A&) const;
A operator>>(const A&) const;
// Arithmetic-assignment operators
A& operator+=(const A&);
A& operator-=(const A&);
A& operator*=(const A&);
A& operator/=(const A&);
A& operator%=(const A&);
A& operator&=(const A&);
A& operator|=(const A&);
A& operator^=(const A&);
A& operator<<=(const A&);
A& operator>>=(const A&);
// Logical operators
bool operator<(const A&) const;
bool operator>(const A&) const;
bool operator&&(const A&) const;
bool operator||(const A&) const;
bool operator<=(const A&) const;
bool operator>=(const A&) const;
bool operator!=(const A&) const;
bool operator==(const A&) const;
// Special operators
A& operator[](unsigned long long);
A* operator->();
A operator()(unsigned, int) const;
explicit operator bool() const;
};
struct TestColl {
int* begin();
int* end();
};
void test(TestColl coll) {
for (auto lv : coll) {
(void)lv;
}
}
// RUN: c-index-test -cursor-at=%s:6:4 %s | FileCheck -check-prefix=CHECK-COMPLETION-1 %s
// CHECK-COMPLETION-1: CXXConstructor=X:6:3
// CHECK-COMPLETION-1-NEXT: Completion string: {TypedText X}{LeftParen (}{Placeholder int}{Comma , }{Placeholder int}{RightParen )}
// RUN: c-index-test -cursor-at=%s:31:16 %s | FileCheck -check-prefix=CHECK-COMPLETION-2 %s
// CHECK-COMPLETION-2: CXXMethod=getAnotherX:31:5 (Definition)
// CHECK-COMPLETION-2-NEXT: Completion string: {ResultType X}{TypedText getAnotherX}{LeftParen (}{RightParen )}
// RUN: c-index-test -cursor-at=%s:12:20 %s | FileCheck -check-prefix=CHECK-VALUE-REF %s
// RUN: c-index-test -cursor-at=%s:13:21 %s | FileCheck -check-prefix=CHECK-VALUE-REF %s
// RUN: c-index-test -cursor-at=%s:13:28 %s | FileCheck -check-prefix=CHECK-VALUE-REF %s
// RUN: c-index-test -cursor-at=%s:14:23 %s | FileCheck -check-prefix=CHECK-VALUE-REF %s
// CHECK-VALUE-REF: DeclRefExpr=value:10:12
// RUN: c-index-test -cursor-at=%s:12:18 %s | FileCheck -check-prefix=CHECK-CONSTRUCTOR1 %s
// RUN: c-index-test -cursor-at=%s:13:18 %s | FileCheck -check-prefix=CHECK-CONSTRUCTOR2 %s
// RUN: c-index-test -cursor-at=%s:14:19 %s | FileCheck -check-prefix=CHECK-CONSTRUCTOR1 %s
// RUN: c-index-test -cursor-at=%s:17:10 %s | FileCheck -check-prefix=CHECK-CONSTRUCTOR3 %s
// CHECK-TYPE-REF: TypeRef=struct X:3:8
// CHECK-CONSTRUCTOR1: CallExpr=X:5:3
// CHECK-CONSTRUCTOR2: CallExpr=X:6:3
// CHECK-CONSTRUCTOR3: CallExpr=X:4:3
// RUN: c-index-test -cursor-at=%s:23:3 %s | FileCheck -check-prefix=CHECK-RETTYPE %s
// RUN: c-index-test -cursor-at=%s:26:1 %s | FileCheck -check-prefix=CHECK-RETTYPE %s
// CHECK-RETTYPE: TypeRef=struct X:3:8
// RUN: c-index-test -cursor-at=%s:23:7 %s | FileCheck -check-prefix=CHECK-MEMFUNC-DECL %s
// CHECK-MEMFUNC-DECL: CXXMethod=getX:23:5
// RUN: c-index-test -cursor-at=%s:26:7 %s | FileCheck -check-prefix=CHECK-MEMFUNC-DEF %s
// CHECK-MEMFUNC-DEF: CXXMethod=getX:26:6
// RUN: c-index-test -cursor-at=%s:26:3 %s | FileCheck -check-prefix=CHECK-TYPEREF-Y %s
// CHECK-TYPEREF-Y: TypeRef=struct Y:20:8
// RUN: c-index-test -cursor-at=%s:27:10 %s | FileCheck -check-prefix=CHECK-IMPLICIT-MEMREF %s
// RUN: c-index-test -cursor-at=%s:31:28 %s | FileCheck -check-prefix=CHECK-IMPLICIT-MEMREF %s
// CHECK-IMPLICIT-MEMREF: MemberRefExpr=member:21:7
// RUN: c-index-test -cursor-at=%s:35:5 %s | FileCheck -check-prefix=CHECK-DECL %s
// CHECK-DECL: VarDecl=foo:35:5
// RUN: c-index-test -cursor-at=%s:21:3 %s | FileCheck -check-prefix=CHECK-MEMBER %s
// CHECK-MEMBER: FieldDecl=member:21:7 (Definition)
// CHECK-MEMBER-NEXT: Completion string: {ResultType int}{TypedText member}
// RUN: c-index-test -cursor-at=%s:38:12 -cursor-at=%s:39:5 %s | FileCheck -check-prefix=CHECK-CXXCATCH %s
// CHECK-CXXCATCH: TypeRef=struct X:3:8
// CHECK-CXXCATCH-NEXT: TypeRef=struct X:3:8
// RUN: c-index-test -test-load-source-usrs local %s | FileCheck -check-prefix=CHECK-USR %s
// CHECK-USR: get-cursor.cpp c:get-cursor.cpp@472@F@test#@e Extent=[38:12 - 38:15]
// CHECK-USR: get-cursor.cpp c:get-cursor.cpp@483@F@test#@x Extent=[39:5 - 39:8]
// RUN: c-index-test -cursor-at=%s:45:9 %s | FileCheck -check-prefix=CHECK-LOCALCLASS %s
// CHECK-LOCALCLASS: 45:9 DeclRefExpr=x:44:11 Extent=[45:9 - 45:10] Spelling=x ([45:9 - 45:10])
// RUN: c-index-test -cursor-at=%s:50:23 -cursor-at=%s:55:23 %s | FileCheck -check-prefix=CHECK-TEMPLPARAM %s
// CHECK-TEMPLPARAM: 50:23 TypeRef=struct X:3:8 Extent=[50:23 - 50:24] Spelling=struct X ([50:23 - 50:24])
// CHECK-TEMPLPARAM: 55:23 TypeRef=struct X:3:8 Extent=[55:23 - 55:24] Spelling=struct X ([55:23 - 55:24])
// RUN: c-index-test -cursor-at=%s:66:23 %s | FileCheck -check-prefix=CHECK-TEMPLSPEC %s
// CHECK-TEMPLSPEC: 66:23 ClassDecl=TC:66:23 (Definition) [Specialization of TC:59:7] Extent=[66:1 - 66:31] Spelling=TC ([66:23 - 66:25])
// RUN: c-index-test -cursor-at=%s:69:3 -cursor-at=%s:70:11 -cursor-at=%s:73:6 -cursor-at=%s:74:6 -cursor-at=%s:77:8 -cursor-at=%s:78:8 -cursor-at=%s:79:8 -cursor-at=%s:80:8 -cursor-at=%s:81:8 -cursor-at=%s:82:8 -cursor-at=%s:85:6 -cursor-at=%s:86:6 -cursor-at=%s:87:6 -cursor-at=%s:88:6 -cursor-at=%s:91:5 -cursor-at=%s:92:5 -cursor-at=%s:93:5 -cursor-at=%s:94:5 -cursor-at=%s:95:5 -cursor-at=%s:96:5 -cursor-at=%s:97:5 -cursor-at=%s:98:5 -cursor-at=%s:100:5 -cursor-at=%s:101:5 -cursor-at=%s:104:6 -cursor-at=%s:105:6 -cursor-at=%s:106:6 -cursor-at=%s:107:6 -cursor-at=%s:108:6 -cursor-at=%s:109:6 -cursor-at=%s:110:6 -cursor-at=%s:111:6 -cursor-at=%s:113:6 -cursor-at=%s:114:6 -cursor-at=%s:117:8 -cursor-at=%s:118:8 -cursor-at=%s:120:8 -cursor-at=%s:121:8 -cursor-at=%s:122:8 -cursor-at=%s:123:8 -cursor-at=%s:124:8 -cursor-at=%s:125:8 -cursor-at=%s:128:6 -cursor-at=%s:129:6 -cursor-at=%s:130:6 -cursor-at=%s:132:3 -std=c++11 %s | FileCheck -check-prefix=CHECK-SPELLING %s
// CHECK-SPELLING: 69:3 CXXConstructor=A:69:3 Extent=[69:3 - 69:6] Spelling=A ([69:3 - 69:4])
// CHECK-SPELLING: 70:11 CXXDestructor=~A:70:11 (virtual) Extent=[70:3 - 70:15] Spelling=~A ([70:11 - 70:13])
// CHECK-SPELLING: 73:6 CXXMethod=operator=:73:6 Extent=[73:3 - 73:25] Spelling=operator= ([73:6 - 73:15])
// CHECK-SPELLING: 74:6 CXXMethod=operator=:74:6 Extent=[74:3 - 74:29] Spelling=operator= ([74:6 - 74:15])
// CHECK-SPELLING: 77:8 CXXMethod=operator+:77:8 (const) Extent=[77:3 - 77:25] Spelling=operator+ ([77:8 - 77:17])
// CHECK-SPELLING: 78:8 CXXMethod=operator-:78:8 (const) Extent=[78:3 - 78:25] Spelling=operator- ([78:8 - 78:17])
// CHECK-SPELLING: 79:8 CXXMethod=operator~:79:8 (const) Extent=[79:3 - 79:25] Spelling=operator~ ([79:8 - 79:17])
// CHECK-SPELLING: 80:8 CXXMethod=operator*:80:8 (const) Extent=[80:3 - 80:25] Spelling=operator* ([80:8 - 80:17])
// CHECK-SPELLING: 81:8 CXXMethod=operator&:81:8 (const) Extent=[81:3 - 81:25] Spelling=operator& ([81:8 - 81:17])
// CHECK-SPELLING: 82:8 CXXMethod=operator!:82:8 (const) Extent=[82:3 - 82:25] Spelling=operator! ([82:8 - 82:17])
// CHECK-SPELLING: 85:6 CXXMethod=operator++:85:6 Extent=[85:3 - 85:18] Spelling=operator++ ([85:6 - 85:16])
// CHECK-SPELLING: 86:6 CXXMethod=operator--:86:6 Extent=[86:3 - 86:18] Spelling=operator-- ([86:6 - 86:16])
// CHECK-SPELLING: 87:6 CXXMethod=operator++:87:6 Extent=[87:3 - 87:21] Spelling=operator++ ([87:6 - 87:16])
// CHECK-SPELLING: 88:6 CXXMethod=operator--:88:6 Extent=[88:3 - 88:21] Spelling=operator-- ([88:6 - 88:16])
// CHECK-SPELLING: 91:5 CXXMethod=operator+:91:5 (const) Extent=[91:3 - 91:30] Spelling=operator+ ([91:5 - 91:14])
// CHECK-SPELLING: 92:5 CXXMethod=operator-:92:5 (const) Extent=[92:3 - 92:30] Spelling=operator- ([92:5 - 92:14])
// CHECK-SPELLING: 93:5 CXXMethod=operator*:93:5 (const) Extent=[93:3 - 93:30] Spelling=operator* ([93:5 - 93:14])
// CHECK-SPELLING: 94:5 CXXMethod=operator/:94:5 (const) Extent=[94:3 - 94:30] Spelling=operator/ ([94:5 - 94:14])
// CHECK-SPELLING: 95:5 CXXMethod=operator%:95:5 (const) Extent=[95:3 - 95:30] Spelling=operator% ([95:5 - 95:14])
// CHECK-SPELLING: 96:5 CXXMethod=operator&:96:5 (const) Extent=[96:3 - 96:30] Spelling=operator& ([96:5 - 96:14])
// CHECK-SPELLING: 97:5 CXXMethod=operator|:97:5 (const) Extent=[97:3 - 97:30] Spelling=operator| ([97:5 - 97:14])
// CHECK-SPELLING: 98:5 CXXMethod=operator^:98:5 (const) Extent=[98:3 - 98:30] Spelling=operator^ ([98:5 - 98:14])
// CHECK-SPELLING: 100:5 CXXMethod=operator<<:100:5 (const) Extent=[100:3 - 100:31] Spelling=operator<< ([100:5 - 100:15])
// CHECK-SPELLING: 101:5 CXXMethod=operator>>:101:5 (const) Extent=[101:3 - 101:31] Spelling=operator>> ([101:5 - 101:15])
// CHECK-SPELLING: 104:6 CXXMethod=operator+=:104:6 Extent=[104:3 - 104:26] Spelling=operator+= ([104:6 - 104:16])
// CHECK-SPELLING: 105:6 CXXMethod=operator-=:105:6 Extent=[105:3 - 105:26] Spelling=operator-= ([105:6 - 105:16])
// CHECK-SPELLING: 106:6 CXXMethod=operator*=:106:6 Extent=[106:3 - 106:26] Spelling=operator*= ([106:6 - 106:16])
// CHECK-SPELLING: 107:6 CXXMethod=operator/=:107:6 Extent=[107:3 - 107:26] Spelling=operator/= ([107:6 - 107:16])
// CHECK-SPELLING: 108:6 CXXMethod=operator%=:108:6 Extent=[108:3 - 108:26] Spelling=operator%= ([108:6 - 108:16])
// CHECK-SPELLING: 109:6 CXXMethod=operator&=:109:6 Extent=[109:3 - 109:26] Spelling=operator&= ([109:6 - 109:16])
// CHECK-SPELLING: 110:6 CXXMethod=operator|=:110:6 Extent=[110:3 - 110:26] Spelling=operator|= ([110:6 - 110:16])
// CHECK-SPELLING: 111:6 CXXMethod=operator^=:111:6 Extent=[111:3 - 111:26] Spelling=operator^= ([111:6 - 111:16])
// CHECK-SPELLING: 113:6 CXXMethod=operator<<=:113:6 Extent=[113:3 - 113:27] Spelling=operator<<= ([113:6 - 113:17])
// CHECK-SPELLING: 114:6 CXXMethod=operator>>=:114:6 Extent=[114:3 - 114:27] Spelling=operator>>= ([114:6 - 114:17])
// CHECK-SPELLING: 117:8 CXXMethod=operator<:117:8 (const) Extent=[117:3 - 117:33] Spelling=operator< ([117:8 - 117:17])
// CHECK-SPELLING: 118:8 CXXMethod=operator>:118:8 (const) Extent=[118:3 - 118:33] Spelling=operator> ([118:8 - 118:17])
// CHECK-SPELLING: 120:8 CXXMethod=operator&&:120:8 (const) Extent=[120:3 - 120:34] Spelling=operator&& ([120:8 - 120:18])
// CHECK-SPELLING: 121:8 CXXMethod=operator||:121:8 (const) Extent=[121:3 - 121:34] Spelling=operator|| ([121:8 - 121:18])
// CHECK-SPELLING: 122:8 CXXMethod=operator<=:122:8 (const) Extent=[122:3 - 122:34] Spelling=operator<= ([122:8 - 122:18])
// CHECK-SPELLING: 123:8 CXXMethod=operator>=:123:8 (const) Extent=[123:3 - 123:34] Spelling=operator>= ([123:8 - 123:18])
// CHECK-SPELLING: 124:8 CXXMethod=operator!=:124:8 (const) Extent=[124:3 - 124:34] Spelling=operator!= ([124:8 - 124:18])
// CHECK-SPELLING: 125:8 CXXMethod=operator==:125:8 (const) Extent=[125:3 - 125:34] Spelling=operator== ([125:8 - 125:18])
// CHECK-SPELLING: 128:6 CXXMethod=operator[]:128:6 Extent=[128:3 - 128:36] Spelling=operator[] ([128:6 - 128:16])
// CHECK-SPELLING: 129:6 CXXMethod=operator->:129:6 Extent=[129:3 - 129:18] Spelling=operator-> ([129:6 - 129:16])
// CHECK-SPELLING: 130:6 CXXMethod=operator():130:6 (const) Extent=[130:3 - 130:37] Spelling=operator() ([130:6 - 130:16])
// CHECK-SPELLING: 132:12 CXXConversion=operator bool:132:12 (const) Extent=[132:3 - 132:33] Spelling=operator bool ([132:12 - 132:25])
// RUN: c-index-test -cursor-at=%s:141:13 -cursor-at=%s:141:18 -cursor-at=%s:142:11 -std=c++11 %s | FileCheck -check-prefix=CHECK-FORRANGE %s
// CHECK-FORRANGE: 141:13 VarDecl=lv:141:13 (Definition) Extent=[141:8 - 141:17] Spelling=lv ([141:13 - 141:15])
// CHECK-FORRANGE: 141:18 DeclRefExpr=coll:140:20 Extent=[141:18 - 141:22] Spelling=coll ([141:18 - 141:22])
// CHECK-FORRANGE: 142:11 DeclRefExpr=lv:141:13 Extent=[142:11 - 142:13] Spelling=lv ([142:11 - 142:13])
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-templates.cpp
|
// Tests are line- and column-sensive, so run lines are below.
template<typename T>
class X {
X();
X(const X&);
template<typename U> X(U);
};
template<typename T> void f(T);
void test() {
}
// RUN: c-index-test -code-completion-at=%s:14:2 %s | FileCheck %s
// CHECK: FunctionTemplate:{ResultType void}{TypedText f}{LeftParen (}{Placeholder T}{RightParen )} (50)
// CHECK: ClassTemplate:{TypedText X}{LeftAngle <}{Placeholder typename T}{RightAngle >} (50)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/comment-cplus-decls.cpp
|
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 %s > %t/out
// RUN: FileCheck %s < %t/out
// Ensure that XML we generate is not invalid.
// RUN: FileCheck %s -check-prefix=WRONG < %t/out
// WRONG-NOT: CommentXMLInvalid
// rdar://12378714
/**
* \brief plain c++ class
*/
class Test
{
public:
/**
* \brief plain c++ constructor
*/
Test () : reserved (new data()) {}
/**
* \brief plain c++ member function
*/
unsigned getID() const
{
return reserved->objectID;
}
/**
* \brief plain c++ destructor
*/
~Test () {}
protected:
struct data {
unsigned objectID;
};
/**
* \brief plain c++ data field
*/
data* reserved;
};
// CHECK: <Declaration>class Test {}</Declaration>
// CHECK: <Declaration>Test() : reserved(new Test::data())</Declaration>
// CHECK: <Declaration>unsigned int getID() const</Declaration>
// CHECK: <Declaration>~Test()</Declaration>
// CHECK: <Declaration>Test::data *reserved</Declaration>
class S {
/**
* \brief Aaa
*/
friend class Test;
/**
* \brief Bbb
*/
friend void foo() {}
/**
* \brief Ccc
*/
friend int int_func();
/**
* \brief Ddd
*/
friend bool operator==(const Test &, const Test &);
/**
* \brief Eee
*/
template <typename T> friend void TemplateFriend();
/**
* \brief Eee
*/
template <typename T> friend class TemplateFriendClass;
};
// CHECK: <Declaration>friend class Test</Declaration>
// CHECK: <Declaration>friend void foo()</Declaration>
// CHECK: <Declaration>friend int int_func()</Declaration>
// CHECK: <Declaration>friend bool operator==(const Test &, const Test &)</Declaration>
// CHECK: <Declaration>friend template <typename T> void TemplateFriend()</Declaration>
// CHECK: <Declaration>friend template <typename T> class TemplateFriendClass</Declaration>
namespace test0 {
namespace ns {
void f(int);
}
struct A {
/**
* \brief Fff
*/
friend void ns::f(int a);
};
}
// CHECK: <Declaration>friend void f(int a)</Declaration>
namespace test1 {
template <class T> struct Outer {
void foo(T);
struct Inner {
/**
* \brief Ggg
*/
friend void Outer::foo(T);
};
};
}
// CHECK: <Declaration>friend void foo(T)</Declaration>
namespace test2 {
namespace foo {
void Func(int x);
}
class Bar {
/**
* \brief Hhh
*/
friend void ::test2::foo::Func(int x);
};
}
// CHECK: <Declaration>friend void Func(int x)</Declaration>
namespace test3 {
template<class T> class vector {
public:
vector(int i) {}
/**
* \brief Iii
*/
void f(const T& t = T()) {}
};
class A {
private:
/**
* \brief Jjj
*/
friend void vector<A>::f(const A&);
};
}
// CHECK: <Declaration>void f(const T &t = T())</Declaration>
// CHECK: <Declaration>friend void f(const test3::A &)</Declaration>
class MyClass
{
/**
* \brief plain friend test.
*/
friend class MyClass;
};
// CHECK: <Declaration>friend class MyClass</Declaration>
template<class _Tp> class valarray
{
private:
/**
* \brief template friend test.
*/
template <class T> friend class valarray;
};
// CHECK: <Declaration>template <class T> class valarray</Declaration>
// CHECK: <Declaration>friend template <class T> class valarray</Declaration>
class gslice
{
valarray<unsigned> __size_;
};
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/preamble-reparse.c
|
// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 local "-remap-file=%S/Inputs/preamble-reparse-1.c,%S/Inputs/preamble-reparse-2.c" %S/Inputs/preamble-reparse-1.c | FileCheck %s
// CHECK: preamble-reparse-1.c:1:5: VarDecl=x:1:5 Extent=[1:1 - 1:6]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-exprs.cpp
|
// Line- and column-sensitive test; run lines follow.
class string {
public:
string();
string(const char *);
string(const char *, int n);
};
template<typename T>
class vector {
public:
vector(const T &, unsigned n);
template<typename InputIterator>
vector(InputIterator first, InputIterator last);
void push_back(const T&);
};
template<typename T> void vector<T>::push_back(const T&) { }
void f() {
}
int foo();
void g() {
vector<int>(foo(), foo());
}
struct X {
void f() const;
};
void X::f() const {
}
namespace N {
int x;
class C {
int member;
int f(int param) {
return member;
}
};
}
// RUN: c-index-test -code-completion-at=%s:20:2 %s -std=c++0x | FileCheck -check-prefix=CHECK-CC1 %s
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:20:2 -std=c++0x %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: NotImplemented:{ResultType size_t}{TypedText alignof}{LeftParen (}{Placeholder type}{RightParen )} (40)
// CHECK-CC1: NotImplemented:{ResultType bool}{TypedText noexcept}{LeftParen (}{Placeholder expression}{RightParen )} (40)
// CHECK-CC1: NotImplemented:{ResultType std::nullptr_t}{TypedText nullptr} (40)
// CHECK-CC1: NotImplemented:{TypedText operator} (40)
// CHECK-CC1-NOT: push_back
// CHECK-CC1: ClassDecl:{TypedText string} (50)
// CHECK-CC1: CXXConstructor:{TypedText string}{LeftParen (}{RightParen )} (50)
// CHECK-CC1: CXXConstructor:{TypedText string}{LeftParen (}{Placeholder const char *}{RightParen )} (50)
// CHECK-CC1: CXXConstructor:{TypedText string}{LeftParen (}{Placeholder const char *}{Comma , }{Placeholder int n}{RightParen )} (50)
// CHECK-CC1: ClassTemplate:{TypedText vector}{LeftAngle <}{Placeholder typename T}{RightAngle >} (50)
// CHECK-CC1: CXXConstructor:{TypedText vector}{LeftAngle <}{Placeholder typename T}{RightAngle >}{LeftParen (}{Placeholder const T &}{Comma , }{Placeholder unsigned int n}{RightParen )} (50)
// CHECK-CC1: FunctionTemplate:{ResultType void}{TypedText vector}{LeftAngle <}{Placeholder typename T}{RightAngle >}{LeftParen (}{Placeholder InputIterator first}{Comma , }{Placeholder InputIterator last}{RightParen )} (50)
// RUN: c-index-test -code-completion-at=%s:19:1 %s | FileCheck -check-prefix=CHECK-CC2 %s
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:19:1 %s | FileCheck -check-prefix=CHECK-CC2 %s
// CHECK-CC2: ClassDecl:{TypedText string} (50)
// CHECK-CC2-NOT: CXXConstructor
// CHECK-CC2: ClassTemplate:{TypedText vector}{LeftAngle <}{Placeholder typename T}{RightAngle >} (50)
// RUN: c-index-test -code-completion-at=%s:26:15 %s | FileCheck -check-prefix=CHECK-CC3 %s
// CHECK-CC3: NotImplemented:{TypedText float} (50)
// CHECK-CC3: FunctionDecl:{ResultType int}{TypedText foo}{LeftParen (}{RightParen )} (50)
// CHECK-CC3: FunctionDecl:{ResultType void}{TypedText g}{LeftParen (}{RightParen )} (50)
// CHECK-CC3: ClassTemplate:{TypedText vector}{LeftAngle <}{Placeholder typename T}{RightAngle >} (50)
// CHECK-CC3: CXXConstructor:{TypedText vector}{LeftAngle <}{Placeholder typename T}{RightAngle >}{LeftParen (}{Placeholder const T &}{Comma , }{Placeholder unsigned int n}{RightParen )} (50)
// CHECK-CC3: FunctionTemplate:{ResultType void}{TypedText vector}{LeftAngle <}{Placeholder typename T}{RightAngle >}{LeftParen (}{Placeholder InputIterator first}{Comma , }{Placeholder InputIterator last}{RightParen )} (50)
// RUN: c-index-test -code-completion-at=%s:34:1 %s -std=c++0x | FileCheck -check-prefix=CHECK-CC4 %s
// CHECK-CC4: NotImplemented:{ResultType const X *}{TypedText this} (40)
// RUN: c-index-test -code-completion-at=%s:43:14 %s | FileCheck -check-prefix=CHECK-CC5 %s
// CHECK-CC5: FieldDecl:{ResultType int}{TypedText member} (8)
// CHECK-CC5: ParmDecl:{ResultType int}{TypedText param} (8)
// CHECK-CC5: StructDecl:{TypedText X} (50)
// CHECK-CC5: VarDecl:{ResultType int}{TypedText x} (12)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/include_test.h
|
#include "include_test_2.h"
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/getcursor-preamble.h
|
@interface I {
struct AA {
int x;
} aa;
int var;
}
-(id)foo;
@end
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/cxx11-lambdas.cpp
|
// Test is line- and column-sensitive; see below.
typedef int Integer;
struct X {
void f() {
int localA, localB;
auto lambda = [&localA, localB] (Integer x) -> Integer {
return localA + localB + x;
};
}
};
// RUN: c-index-test -test-load-source all -std=c++11 %s | FileCheck -check-prefix=CHECK-LOAD %s
// CHECK-LOAD: cxx11-lambdas.cpp:7:19: LambdaExpr= Extent=[7:19 - 9:6]
// CHECK-LOAD: cxx11-lambdas.cpp:7:21: VariableRef=localA:6:9 Extent=[7:21 - 7:27]
// CHECK-LOAD: cxx11-lambdas.cpp:7:29: VariableRef=localB:6:17 Extent=[7:29 - 7:35]
// CHECK-LOAD: cxx11-lambdas.cpp:7:52: TypeRef=Integer:3:13 Extent=[7:52 - 7:59]
// CHECK-LOAD: cxx11-lambdas.cpp:7:46: ParmDecl=x:7:46 (Definition) Extent=[7:38 - 7:47]
// CHECK-LOAD: cxx11-lambdas.cpp:7:38: TypeRef=Integer:3:13 Extent=[7:38 - 7:45]
// CHECK-LOAD: cxx11-lambdas.cpp:7:60: CompoundStmt= Extent=[7:60 - 9:6]
// CHECK-LOAD: cxx11-lambdas.cpp:8:7: ReturnStmt= Extent=[8:7 - 8:33]
// CHECK-LOAD: cxx11-lambdas.cpp:8:14: DeclRefExpr=localA:6:9 Extent=[8:14 - 8:20]
// CHECK-LOAD: cxx11-lambdas.cpp:8:23: DeclRefExpr=localB:6:17 Extent=[8:23 - 8:29]
// CHECK-LOAD: cxx11-lambdas.cpp:8:32: DeclRefExpr=x:7:46 Extent=[8:32 - 8:33]
// RUN: env CINDEXTEST_INDEXLOCALSYMBOLS=1 c-index-test -index-file -std=c++11 %s | FileCheck -check-prefix=CHECK-INDEX %s
// CHECK-INDEX: [indexEntityReference]: kind: variable | name: localA | USR: c:cxx11-lambdas.cpp@100@S@X@F@f#@localA | lang: C | cursor: VariableRef=localA:6:9 | loc: 7:21
// CHECK-INDEX: [indexEntityReference]: kind: variable | name: localB | USR: c:cxx11-lambdas.cpp@100@S@X@F@f#@localB | lang: C | cursor: VariableRef=localB:6:17 | loc: 7:29
// CHECK-INDEX: [indexEntityReference]: kind: typedef | name: Integer | USR: c:cxx11-lambdas.cpp@T@Integer | lang: C | cursor: TypeRef=Integer:3:13 | loc: 7:52
// CHECK-INDEX: [indexEntityReference]: kind: typedef | name: Integer | USR: c:cxx11-lambdas.cpp@T@Integer | lang: C | cursor: TypeRef=Integer:3:13 | loc: 7:38
// CHECK-INDEX: [indexEntityReference]: kind: variable | name: localA | USR: c:cxx11-lambdas.cpp@100@S@X@F@f#@localA | lang: C | cursor: DeclRefExpr=localA:6:9 | loc: 8:14
// CHECK-INDEX: [indexEntityReference]: kind: variable | name: localB | USR: c:cxx11-lambdas.cpp@100@S@X@F@f#@localB | lang: C | cursor: DeclRefExpr=localB:6:17 | loc: 8:23
// CHECK-INDEX: [indexEntityReference]: kind: variable | name: x | USR: c:cxx11-lambdas.cpp@157@S@X@F@f#@Sa@F@operator()#I#1@x | lang: C | cursor: DeclRefExpr=x:7:46 | loc: 8:32
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-tabs.c
|
// Test code-completion in the presence of tabs
struct Point { int x, y; };
void f(struct Point *p) {
p->
// RUN: c-index-test -code-completion-at=%s:5:5 %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: {TypedText x}
// CHECK-CC1: {TypedText y}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/load-stmts.cpp
|
typedef int T;
struct X { int a, b; };
void f(int x) {
for (T y = x; T z = x; ++x) {
}
if (T *z2 = &x) { }
while (T *z3 = &x) { }
switch (T z4 = x) {
case 17: break;
}
}
// Test handling of C++ base specifiers.
class A {
void doA();
};
class B {
void doB();
};
class C : public A, private B {
void doC();
};
class D : virtual public C, virtual private A {};
namespace std {
class type_info { };
}
void test_exprs(C *c) {
int typeid_marker;
typeid(C);
typeid(c);
typedef int Integer;
Integer *int_ptr;
int_ptr->Integer::~Integer();
}
namespace N {
int f(int);
float f(float);
template<typename T> T g(T);
template<typename T> T g(T*);
}
template<typename T>
void test_dependent_exprs(T t) {
N::f(t);
typedef T type;
N::g<type>(t);
type::template f<type*>(t);
t->type::template f<type*>();
}
struct Y {
int f(int);
float f(float);
template<typename T> T g(T);
template<typename T> T g(T*);
};
template<typename T>
void test_more_dependent_exprs(T t, Y y) {
y.Y::f(t);
typedef T type;
y.g<type>(t);
}
struct Pair {
Pair(int, int);
};
void *operator new(__SIZE_TYPE__, void*) throw();
void test_more_exprs(void *mem, int i, int j) {
new (mem) Pair(i, j);
typedef int Integer;
(void)Integer(i);
(Integer)i;
Integer();
}
template<typename T>
void test_even_more_dependent_exprs(T t, Y y) {
typedef T type;
(void)type(t, y);
(void)__has_nothrow_assign(type);
}
struct Base {
Base(int);
};
struct Derived : public Base {
Derived(int x);
int member;
};
Derived::Derived(int x)
: member(x), Base(x) {
}
void considered_harmful(int x) {
start_over:
void *ptr = &&start_over;
if (x > 17)
goto *ptr;
else
goto start_over;
}
void casts(int *ip) {
(void)reinterpret_cast<float *>(ip);
}
// RUN: c-index-test -test-load-source all -fno-delayed-template-parsing -frtti %s | FileCheck %s
// CHECK: load-stmts.cpp:1:13: TypedefDecl=T:1:13 (Definition) Extent=[1:1 - 1:14]
// CHECK: load-stmts.cpp:2:8: StructDecl=X:2:8 (Definition) Extent=[2:1 - 2:23]
// CHECK: load-stmts.cpp:2:16: FieldDecl=a:2:16 (Definition) Extent=[2:12 - 2:17]
// CHECK: load-stmts.cpp:2:19: FieldDecl=b:2:19 (Definition) Extent=[2:12 - 2:20]
// CHECK: load-stmts.cpp:3:6: FunctionDecl=f:3:6 (Definition) Extent=[3:1 - 11:2]
// CHECK: load-stmts.cpp:3:12: ParmDecl=x:3:12 (Definition) Extent=[3:8 - 3:13]
// CHECK: load-stmts.cpp:4:10: VarDecl=y:4:10 (Definition) Extent=[4:8 - 4:15]
// CHECK: load-stmts.cpp:4:8: TypeRef=T:1:13 Extent=[4:8 - 4:9]
// CHECK: load-stmts.cpp:4:14: DeclRefExpr=x:3:12 Extent=[4:14 - 4:15]
// CHECK: load-stmts.cpp:4:19: VarDecl=z:4:19 (Definition) Extent=[4:17 - 4:24]
// CHECK: load-stmts.cpp:4:17: TypeRef=T:1:13 Extent=[4:17 - 4:18]
// CHECK: load-stmts.cpp:4:23: DeclRefExpr=x:3:12 Extent=[4:23 - 4:24]
// CHECK: load-stmts.cpp:4:19: UnexposedExpr=z:4:19 Extent=[4:19 - 4:20]
// CHECK: load-stmts.cpp:4:19: DeclRefExpr=z:4:19 Extent=[4:19 - 4:20]
// CHECK: load-stmts.cpp:4:26: UnaryOperator= Extent=[4:26 - 4:29]
// CHECK: load-stmts.cpp:4:28: DeclRefExpr=x:3:12 Extent=[4:28 - 4:29]
// CHECK: load-stmts.cpp:6:10: VarDecl=z2:6:10 (Definition) Extent=[6:7 - 6:17]
// CHECK: load-stmts.cpp:6:7: TypeRef=T:1:13 Extent=[6:7 - 6:8]
// CHECK: load-stmts.cpp:6:15: UnaryOperator= Extent=[6:15 - 6:17]
// CHECK: load-stmts.cpp:6:16: DeclRefExpr=x:3:12 Extent=[6:16 - 6:17]
// CHECK: load-stmts.cpp:6:10: UnexposedExpr=z2:6:10 Extent=[6:10 - 6:12]
// CHECK: load-stmts.cpp:6:10: DeclRefExpr=z2:6:10 Extent=[6:10 - 6:12]
// CHECK: load-stmts.cpp:7:13: VarDecl=z3:7:13 (Definition) Extent=[7:10 - 7:20]
// CHECK: load-stmts.cpp:7:10: TypeRef=T:1:13 Extent=[7:10 - 7:11]
// CHECK: load-stmts.cpp:7:18: UnaryOperator= Extent=[7:18 - 7:20]
// CHECK: load-stmts.cpp:7:19: DeclRefExpr=x:3:12 Extent=[7:19 - 7:20]
// CHECK: load-stmts.cpp:7:13: UnexposedExpr=z3:7:13 Extent=[7:13 - 7:15]
// CHECK: load-stmts.cpp:7:13: DeclRefExpr=z3:7:13 Extent=[7:13 - 7:15]
// CHECK: load-stmts.cpp:8:13: VarDecl=z4:8:13 (Definition) Extent=[8:11 - 8:19]
// CHECK: load-stmts.cpp:8:11: TypeRef=T:1:13 Extent=[8:11 - 8:12]
// CHECK: load-stmts.cpp:8:18: DeclRefExpr=x:3:12 Extent=[8:18 - 8:19]
// CHECK: load-stmts.cpp:8:13: DeclRefExpr=z4:8:13 Extent=[8:13 - 8:15]
// CHECK: load-stmts.cpp:9:8: IntegerLiteral= Extent=[9:8 - 9:10]
// CHECK: load-stmts.cpp:14:7: ClassDecl=A:14:7 (Definition) Extent=[14:1 - 16:2]
// CHECK: load-stmts.cpp:15:8: CXXMethod=doA:15:8 Extent=[15:3 - 15:13]
// CHECK: load-stmts.cpp:18:7: ClassDecl=B:18:7 (Definition) Extent=[18:1 - 20:2]
// CHECK: load-stmts.cpp:19:8: CXXMethod=doB:19:8 Extent=[19:3 - 19:13]
// CHECK: load-stmts.cpp:22:7: ClassDecl=C:22:7 (Definition) Extent=[22:1 - 24:2]
// CHECK: load-stmts.cpp:22:18: C++ base class specifier=class A:14:7 [access=public isVirtual=false]
// CHECK: load-stmts.cpp:22:29: C++ base class specifier=class B:18:7 [access=private isVirtual=false]
// CHECK: load-stmts.cpp:23:8: CXXMethod=doC:23:8 Extent=[23:3 - 23:13]
// CHECK: load-stmts.cpp:26:7: ClassDecl=D:26:7 (Definition) Extent=[26:1 - 26:49]
// CHECK: load-stmts.cpp:26:26: C++ base class specifier=class C:22:7 [access=public isVirtual=true]
// CHECK: load-stmts.cpp:26:45: C++ base class specifier=class A:14:7 [access=private isVirtual=true]
// CHECK: load-stmts.cpp:33:7: VarDecl=typeid_marker:33:7 (Definition)
// CHECK: load-stmts.cpp:34:10: TypeRef=class C:22:7 Extent=[34:10 - 34:11]
// CHECK: load-stmts.cpp:35:10: DeclRefExpr=c:32:20 Extent=[35:10 - 35:11]
// CHECK: load-stmts.cpp:37:12: VarDecl=int_ptr:37:12 (Definition) Extent=[37:3 - 37:19]
// CHECK: load-stmts.cpp:37:3: TypeRef=Integer:36:15 Extent=[37:3 - 37:10]
// CHECK: load-stmts.cpp:38:3: DeclRefExpr=int_ptr:37:12 Extent=[38:3 - 38:10]
// CHECK: load-stmts.cpp:38:12: TypeRef=Integer:36:15 Extent=[38:12 - 38:19]
// CHECK: load-stmts.cpp:38:22: TypeRef=Integer:36:15 Extent=[38:22 - 38:29]
// CHECK: load-stmts.cpp:50:6: FunctionTemplate=test_dependent_exprs:50:6 (Definition)
// CHECK: load-stmts.cpp:51:3: CallExpr= Extent=[51:3 - 51:10]
// CHECK: load-stmts.cpp:51:3: NamespaceRef=N:41:11 Extent=[51:3 - 51:4]
// CHECK: load-stmts.cpp:51:8: DeclRefExpr=t:50:29 Extent=[51:8 - 51:9]
// CHECK: load-stmts.cpp:52:13: TypedefDecl=type:52:13 (Definition) Extent=[52:3 - 52:17]
// CHECK: load-stmts.cpp:53:3: CallExpr= Extent=[53:3 - 53:16]
// CHECK: load-stmts.cpp:53:3: NamespaceRef=N:41:11 Extent=[53:3 - 53:4]
// CHECK: load-stmts.cpp:53:8: TypeRef=type:52:13 Extent=[53:8 - 53:12]
// CHECK: load-stmts.cpp:53:14: DeclRefExpr=t:50:29 Extent=[53:14 - 53:15]
// CHECK: load-stmts.cpp:54:3: CallExpr= Extent=[54:3 - 54:29]
// CHECK: load-stmts.cpp:54:3: TypeRef=type:52:13 Extent=[54:3 - 54:7]
// CHECK: load-stmts.cpp:54:20: TypeRef=type:52:13 Extent=[54:20 - 54:24]
// CHECK: load-stmts.cpp:54:27: DeclRefExpr=t:50:29 Extent=[54:27 - 54:28]
// CHECK: load-stmts.cpp:55:3: CallExpr= Extent=[55:3 - 55:31]
// CHECK: load-stmts.cpp:55:3: DeclRefExpr=t:50:29 Extent=[55:3 - 55:4]
// CHECK: load-stmts.cpp:55:23: TypeRef=type:52:13 Extent=[55:23 - 55:27]
// CHECK: load-stmts.cpp:67:6: FunctionTemplate=test_more_dependent_exprs:67:6 (Definition)
// CHECK: load-stmts.cpp:68:3: CallExpr= Extent=[68:3 - 68:12]
// CHECK: load-stmts.cpp:68:3: DeclRefExpr=y:67:39 Extent=[68:3 - 68:4]
// CHECK: load-stmts.cpp:68:5: TypeRef=struct Y:58:8 Extent=[68:5 - 68:6]
// CHECK: load-stmts.cpp:68:10: DeclRefExpr=t:67:34 Extent=[68:10 - 68:11]
// CHECK: load-stmts.cpp:70:3: CallExpr= Extent=[70:3 - 70:15]
// CHECK: load-stmts.cpp:70:3: DeclRefExpr=y:67:39 Extent=[70:3 - 70:4]
// CHECK: load-stmts.cpp:70:7: TypeRef=type:69:13 Extent=[70:7 - 70:11]
// CHECK: load-stmts.cpp:70:13: DeclRefExpr=t:67:34 Extent=[70:13 - 70:14]
// CHECK: load-stmts.cpp:79:6: FunctionDecl=test_more_exprs:79:6 (Definition)
// CHECK: load-stmts.cpp:80:8: DeclRefExpr=mem:79:28 Extent=[80:8 - 80:11]
// CHECK: load-stmts.cpp:80:13: TypeRef=struct Pair:73:8 Extent=[80:13 - 80:17]
// CHECK: load-stmts.cpp:80:18: DeclRefExpr=i:79:37 Extent=[80:18 - 80:19]
// CHECK: load-stmts.cpp:80:21: DeclRefExpr=j:79:44 Extent=[80:21 - 80:22]
// CHECK: load-stmts.cpp:82:9: TypeRef=Integer:81:15 Extent=[82:9 - 82:16]
// CHECK: load-stmts.cpp:82:17: DeclRefExpr=i:79:37 Extent=[82:17 - 82:18]
// CHECK: load-stmts.cpp:83:3: CStyleCastExpr= Extent=[83:3 - 83:13]
// CHECK: load-stmts.cpp:83:4: TypeRef=Integer:81:15 Extent=[83:4 - 83:11]
// CHECK: load-stmts.cpp:83:12: UnexposedExpr=i:79:37 Extent=[83:12 - 83:13]
// CHECK: load-stmts.cpp:83:12: DeclRefExpr=i:79:37 Extent=[83:12 - 83:13]
// CHECK: load-stmts.cpp:84:3: UnexposedExpr= Extent=[84:3 - 84:12]
// CHECK: load-stmts.cpp:84:3: TypeRef=Integer:81:15 Extent=[84:3 - 84:10]
// CHECK: load-stmts.cpp:90:9: TypeRef=type:89:13 Extent=[90:9 - 90:13]
// CHECK: load-stmts.cpp:90:14: DeclRefExpr=t:88:39 Extent=[90:14 - 90:15]
// CHECK: load-stmts.cpp:90:17: DeclRefExpr=y:88:44 Extent=[90:17 - 90:18]
// CHECK: load-stmts.cpp:91:9: UnexposedExpr= Extent=[91:9 - 91:35]
// CHECK: load-stmts.cpp:91:30: TypeRef=type:89:13 Extent=[91:30 - 91:34]
// CHECK: load-stmts.cpp:103:10: CXXConstructor=Derived:103:10 (Definition)
// CHECK: load-stmts.cpp:103:1: TypeRef=struct Derived:98:8 Extent=[103:1 - 103:
// FIXME: Missing TypeRef for constructor name.
// CHECK: load-stmts.cpp:103:22: ParmDecl=x:103:22 (Definition)
// CHECK: load-stmts.cpp:104:5: MemberRef=member:100:7 Extent=[104:5 - 104:11]
// CHECK: load-stmts.cpp:104:12: DeclRefExpr=x:103:22 Extent=[104:12 - 104:13]
// CHECK: load-stmts.cpp:104:16: TypeRef=struct Base:94:8 Extent=[104:16 - 104:2
// CHECK: load-stmts.cpp:104:16: CallExpr=Base:95:3 Extent=[104:16 - 104:23]
// CHECK: load-stmts.cpp:104:21: DeclRefExpr=x:103:22 Extent=[104:21 - 104:22]
// CHECK: load-stmts.cpp:107:6: FunctionDecl=considered_harmful:107:6 (Definition)
// CHECK: load-stmts.cpp:108:2: LabelStmt=start_over Extent=[108:2 - 109:28]
// CHECK: load-stmts.cpp:109:17: LabelRef=start_over:108:2 Extent=[109:17 - 109:27]
// CHECK: load-stmts.cpp:113:10: LabelRef=start_over:108:2 Extent=[113:10 - 113:20]
// CHECK: load-stmts.cpp:117:35: UnexposedExpr=ip:116:17 Extent=[117:35 - 117:37]
// CHECK: load-stmts.cpp:117:35: DeclRefExpr=ip:116:17 Extent=[117:35 - 117:37]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/warning-flags.c
|
int foo() { }
int *bar(float *f) { return f; }
// RUN: c-index-test -test-load-source all %s 2>&1|FileCheck -check-prefix=CHECK-BOTH-WARNINGS %s
// RUN: c-index-test -test-load-source-reparse 5 all %s 2>&1|FileCheck -check-prefix=CHECK-BOTH-WARNINGS %s
// RUN: c-index-test -test-load-source all -Wno-return-type %s 2>&1|FileCheck -check-prefix=CHECK-SECOND-WARNING %s
// RUN: c-index-test -test-load-source-reparse 5 all -Wno-return-type %s 2>&1|FileCheck -check-prefix=CHECK-SECOND-WARNING %s
// RUN: c-index-test -test-load-source all -w %s 2>&1|not grep warning:
// RUN: c-index-test -test-load-source-reparse 5 all -w %s 2>&1|not grep warning:
// CHECK-BOTH-WARNINGS: warning: control reaches end of non-void function
// CHECK-BOTH-WARNINGS: warning: incompatible pointer types returning 'float *' from a function with result type 'int *'
// CHECK-SECOND-WARNING-NOT:control reaches end of non-void
// CHECK-SECOND-WARNING: warning: incompatible pointer types returning 'float *' from a function with result type 'int *'
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/getcursor-pp-pch.c
|
typedef int T;
void OBSCURE(func)(int x) {
OBSCURE(T) DECORATION value;
}
// Without PCH
// RUN: c-index-test -cursor-at=%s.h:1:11 \
// RUN: -cursor-at=%s.h:2:14 \
// RUN: -cursor-at=%s.h:4:5 \
// RUN: -cursor-at=%s.h:5:5 \
// RUN: -cursor-at=%s.h:5:14 \
// RUN: -cursor-at=%s:5:7 \
// RUN: -cursor-at=%s:6:6 \
// RUN: -cursor-at=%s:6:19 \
// RUN: -include %s.h %s | FileCheck %s
// With PCH
// RUN: c-index-test -write-pch %t.h.pch %s.h -Xclang -detailed-preprocessing-record
// RUN: c-index-test -cursor-at=%s.h:1:11 \
// RUN: -cursor-at=%s.h:2:14 \
// RUN: -cursor-at=%s.h:4:5 \
// RUN: -cursor-at=%s.h:5:5 \
// RUN: -cursor-at=%s.h:5:14 \
// RUN: -cursor-at=%s:5:7 \
// RUN: -cursor-at=%s:6:6 \
// RUN: -cursor-at=%s:6:19 \
// RUN: -include %t.h %s | FileCheck %s
// From header
// CHECK: macro definition=OBSCURE
// CHECK: macro definition=DECORATION
// CHECK: macro expansion=DECORATION:2:9
// CHECK: macro expansion=OBSCURE:1:9
// CHECK: macro expansion=DECORATION:2:9
// From main file
// CHECK: macro expansion=OBSCURE:1:9
// CHECK: macro expansion=OBSCURE:1:9
// CHECK: macro expansion=DECORATION:2:9
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/index-many-call-ops.cpp
|
// RUN: c-index-test -index-file %s | FileCheck %s
// rdar://11289247
// Check that we don't get stack overflow trying to index a huge number of
// call operators.
// UBSan increses stack usage.
// REQUIRES: not_ubsan
struct S {
S &operator()();
};
// CHECK: [indexDeclaration]: kind: function | name: foo
void foo() {
S s;
s()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
;
}
// CHECK: [indexDeclaration]: kind: function | name: bar
void bar();
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/cindex-test-inclusions.c
|
// RUN: c-index-test -test-inclusion-stack-source %s 2>&1 | FileCheck %s
#include "include_test.h"
// CHECK: cindex-test-inclusions.c
// CHECK: included by:
// CHECK: include_test.h
// CHECK: included by:
// CHECK: cindex-test-inclusions.c:3:10
// CHECK: include_test_2.h
// CHECK: included by:
// CHECK: include_test.h:1:10
// CHECK: cindex-test-inclusions.c:3:10
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-with-annotations.cpp
|
class X {
void doSomething();
int field __attribute((annotate("one"), annotate("two"), annotate("three")));
public __attribute__((annotate("some annotation"))):
void func2();
int member2 __attribute__((annotate("another annotation")));
};
void X::doSomething() {
// RUN: c-index-test -code-completion-at=%s:13:9 %s | FileCheck %s
this->;
}
// CHECK: CXXMethod:{ResultType void}{TypedText doSomething}{LeftParen (}{RightParen )} (34)
// CHECK: FieldDecl:{ResultType int}{TypedText field} (35) ("three", "two", "one")
// 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)
// CHECK: ClassDecl:{TypedText X}{Text ::} (75)
// CHECK: CXXDestructor:{ResultType void}{TypedText ~X}{LeftParen (}{RightParen )} (34)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/print-type.c
|
typedef int FooType;
int *p;
int *f(int *p, char *x, FooType z, int arr[5], void (*fn)(int)) {
fn(*p);
const FooType w = z;
return p + z + arr[3];
}
typedef double OtherType;
typedef int ArrayType[5];
int __attribute__((vector_size(16))) x;
typedef int __attribute__((vector_size(16))) int4_t;
int f2(int incompletearray[]);
// RUN: c-index-test -test-print-type %s | FileCheck %s
// CHECK: FunctionDecl=f:3:6 (Definition) [type=int *(int *, char *, FooType, int *, void (*)(int))] [typekind=FunctionProto] [canonicaltype=int *(int *, char *, int, int *, void (*)(int))] [canonicaltypekind=FunctionProto] [resulttype=int *] [resulttypekind=Pointer] [args= [int *] [Pointer] [char *] [Pointer] [FooType] [Typedef] [int [5]] [ConstantArray] [void (*)(int)] [Pointer]] [isPOD=0]
// CHECK: ParmDecl=p:3:13 (Definition) [type=int *] [typekind=Pointer] [isPOD=1] [pointeetype=int] [pointeekind=Int]
// CHECK: ParmDecl=x:3:22 (Definition) [type=char *] [typekind=Pointer] [isPOD=1] [pointeetype=char] [pointeekind=Char_{{[US]}}]
// CHECK: ParmDecl=z:3:33 (Definition) [type=FooType] [typekind=Typedef] [canonicaltype=int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: TypeRef=FooType:1:13 [type=FooType] [typekind=Typedef] [canonicaltype=int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: ParmDecl=arr:3:40 (Definition) [type=int [5]] [typekind=ConstantArray] [isPOD=1]
// CHECK: IntegerLiteral= [type=int] [typekind=Int] [isPOD=1]
// CHECK: ParmDecl=fn:3:55 (Definition) [type=void (*)(int)] [typekind=Pointer] [canonicaltype=void (*)(int)] [canonicaltypekind=Pointer] [isPOD=1] [pointeetype=void (int)] [pointeekind=Unexposed]
// CHECK: ParmDecl=:3:62 (Definition) [type=int] [typekind=Int] [isPOD=1]
// CHECK: CompoundStmt= [type=] [typekind=Invalid] [isPOD=0]
// CHECK: CallExpr=fn:3:55 [type=void] [typekind=Void] [args= [int] [Int]] [isPOD=0]
// CHECK: DeclRefExpr=fn:3:55 [type=void (*)(int)] [typekind=Pointer] [canonicaltype=void (*)(int)] [canonicaltypekind=Pointer] [isPOD=1] [pointeetype=void (int)] [pointeekind=Unexposed]
// CHECK: UnaryOperator= [type=int] [typekind=Int] [isPOD=1]
// CHECK: DeclRefExpr=p:3:13 [type=int *] [typekind=Pointer] [isPOD=1] [pointeetype=int] [pointeekind=Int]
// CHECK: DeclStmt= [type=] [typekind=Invalid] [isPOD=0]
// CHECK: VarDecl=w:5:17 (Definition) [type=const FooType] [typekind=Typedef] const [canonicaltype=const int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: TypeRef=FooType:1:13 [type=FooType] [typekind=Typedef] [canonicaltype=int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: DeclRefExpr=z:3:33 [type=FooType] [typekind=Typedef] [canonicaltype=int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: ReturnStmt= [type=] [typekind=Invalid] [isPOD=0]
// CHECK: BinaryOperator= [type=int *] [typekind=Pointer] [isPOD=1] [pointeetype=int] [pointeekind=Int]
// CHECK: BinaryOperator= [type=int *] [typekind=Pointer] [isPOD=1] [pointeetype=int] [pointeekind=Int]
// CHECK: DeclRefExpr=p:3:13 [type=int *] [typekind=Pointer] [isPOD=1] [pointeetype=int] [pointeekind=Int]
// CHECK: DeclRefExpr=z:3:33 [type=FooType] [typekind=Typedef] [canonicaltype=int] [canonicaltypekind=Int] [isPOD=1]
// CHECK: ArraySubscriptExpr= [type=int] [typekind=Int] [isPOD=1]
// CHECK: UnexposedExpr=arr:3:40 [type=int [5]] [typekind=ConstantArray] [isPOD=1]
// CHECK: IntegerLiteral= [type=int] [typekind=Int] [isPOD=1]
// CHECK: TypedefDecl=OtherType:8:16 (Definition) [type=OtherType] [typekind=Typedef] [canonicaltype=double] [canonicaltypekind=Double] [isPOD=1]
// CHECK: TypedefDecl=ArrayType:9:13 (Definition) [type=ArrayType] [typekind=Typedef] [canonicaltype=int [5]] [canonicaltypekind=ConstantArray] [isPOD=1]
// CHECK: IntegerLiteral= [type=int] [typekind=Int] [isPOD=1]
// CHECK: VarDecl=x:10:38 [type=__attribute__((__vector_size__(4 * sizeof(int)))) int] [typekind=Vector] [isPOD=1]
// CHECK: TypedefDecl=int4_t:11:46 (Definition) [type=int4_t] [typekind=Typedef] [canonicaltype=__attribute__((__vector_size__(4 * sizeof(int)))) int] [canonicaltypekind=Vector] [isPOD=1]
// CHECK: ParmDecl=incompletearray:13:12 (Definition) [type=int []] [typekind=IncompleteArray] [isPOD=1]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/print-usrs.c
|
// RUN: c-index-test -print-usr-file %s | FileCheck %s
// This isn't really C code; it has a .c extension to get picked up by lit.
ObjCClass NSObject
ObjCCategory NSObject foo
ObjCIvar x c:objc(cs)NSObject
ObjCMethod foo: 0 c:objc(cs)NSObject
ObjCMethod baz:with 1 c:objc(cs)NSObject
ObjCProperty gimme c:objc(cs)NSObject
ObjCProtocol blah
// CHECK: c:objc(cs)NSObject
// CHECK: c:objc(cy)NSObject@foo
// CHECK: c:objc(cs)NSObject@x
// CHECK: c:objc(cs)NSObject(cm)foo:
// CHECK: c:objc(cs)NSObject(im)baz:with
// CHECK: c:objc(cs)NSObject(py)gimme
// CHECK: c:objc(pl)blah
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/annotate-tokens.c
|
typedef int T;
struct X { int a, b; };
void f(void *ptr) {
T* t_ptr = (T *)ptr;
(void)sizeof(T);
/* A comment */
struct X x = (struct X){1, 2};
void *xx = ptr ? : &x;
const char * hello = "Hello";
}
enum Color { Red, Green, Blue };
typedef int Int;
enum Color g(int i, ...) {
__builtin_va_list va;
(void)__builtin_va_arg(va, Int);
(void)__builtin_types_compatible_p(Int, Int);
struct X x = { 0, 0 };
do {
x.a++;
} while (x.a < 10);
enum Color c;
switch (c) {
case Red:
return Green;
case Green:
return Blue;
case Blue:
return Red;
}
}
__attribute__((unavailable)) Int __attribute__((unavailable)) test() __attribute__((unavailable));
#define HEADER() \
int x; \
int y; \
int z
#define TYPE_INST(name, ...) \
static const struct { \
HEADER(); \
} name = { \
__VA_ARGS__ \
}
void func1(void);
TYPE_INST(Foo,
.x = 0,
.y = 1,
.z = 2,
);
void func2(void);
typedef union {
struct {
int field : 16;
};
} r_t;
void test() {
r_t reg;
reg.field = 1;
}
// RUN: c-index-test -test-annotate-tokens=%s:4:1:37:1 %s | FileCheck %s
// CHECK: Identifier: "T" [4:3 - 4:4] TypeRef=T:1:13
// CHECK: Punctuation: "*" [4:4 - 4:5] VarDecl=t_ptr:4:6 (Definition)
// CHECK: Identifier: "t_ptr" [4:6 - 4:11] VarDecl=t_ptr:4:6 (Definition)
// CHECK: Punctuation: "=" [4:12 - 4:13] VarDecl=t_ptr:4:6 (Definition)
// CHECK: Punctuation: "(" [4:14 - 4:15] CStyleCastExpr=
// CHECK: Identifier: "T" [4:15 - 4:16] TypeRef=T:1:13
// CHECK: Identifier: "ptr" [4:19 - 4:22] DeclRefExpr=ptr:3:14
// CHECK: Punctuation: ";" [4:22 - 4:23] DeclStmt=
// CHECK: Punctuation: "(" [5:3 - 5:4] CStyleCastExpr=
// CHECK: Keyword: "void" [5:4 - 5:8] CStyleCastExpr=
// CHECK: Punctuation: ")" [5:8 - 5:9] CStyleCastExpr=
// CHECK: Keyword: "sizeof" [5:9 - 5:15] UnexposedExpr=
// CHECK: Punctuation: "(" [5:15 - 5:16] UnexposedExpr=
// CHECK: Identifier: "T" [5:16 - 5:17] TypeRef=T:1:13
// CHECK: Punctuation: ")" [5:17 - 5:18] UnexposedExpr=
// CHECK: Punctuation: ";" [5:18 - 5:19] CompoundStmt=
// CHECK: Keyword: "struct" [7:3 - 7:9] VarDecl=x:7:12 (Definition)
// CHECK: Identifier: "X" [7:10 - 7:11] TypeRef=struct X:2:8
// CHECK: Identifier: "x" [7:12 - 7:13] VarDecl=x:7:12 (Definition)
// CHECK: Punctuation: "=" [7:14 - 7:15] VarDecl=x:7:12 (Definition)
// CHECK: Punctuation: "(" [7:16 - 7:17] CompoundLiteralExpr=
// CHECK: Keyword: "struct" [7:17 - 7:23] CompoundLiteralExpr=
// CHECK: Identifier: "X" [7:24 - 7:25] TypeRef=struct X:2:8
// CHECK: Punctuation: ")" [7:25 - 7:26] CompoundLiteralExpr=
// CHECK: Punctuation: "{" [7:26 - 7:27] InitListExpr=
// CHECK: Literal: "1" [7:27 - 7:28] IntegerLiteral=
// CHECK: Punctuation: "," [7:28 - 7:29] InitListExpr=
// CHECK: Literal: "2" [7:30 - 7:31] IntegerLiteral=
// CHECK: Punctuation: "}" [7:31 - 7:32] InitListExpr=
// CHECK: Punctuation: ";" [7:32 - 7:33] DeclStmt=
// CHECK: Keyword: "void" [8:3 - 8:7] VarDecl=xx:8:9 (Definition)
// CHECK: Punctuation: "*" [8:8 - 8:9] VarDecl=xx:8:9 (Definition)
// CHECK: Identifier: "xx" [8:9 - 8:11] VarDecl=xx:8:9 (Definition)
// CHECK: Punctuation: "=" [8:12 - 8:13] VarDecl=xx:8:9 (Definition)
// CHECK: Identifier: "ptr" [8:14 - 8:17] DeclRefExpr=ptr:3:14
// CHECK: Punctuation: "?" [8:18 - 8:19] UnexposedExpr=
// CHECK: Punctuation: ":" [8:20 - 8:21] UnexposedExpr=
// CHECK: Punctuation: "&" [8:22 - 8:23] UnaryOperator=
// CHECK: Identifier: "x" [8:23 - 8:24] DeclRefExpr=x:7:12
// CHECK: Punctuation: ";" [8:24 - 8:25] DeclStmt=
// CHECK: Keyword: "const" [9:3 - 9:8] VarDecl=hello:9:16 (Definition)
// CHECK: Keyword: "char" [9:9 - 9:13] VarDecl=hello:9:16 (Definition)
// CHECK: Punctuation: "*" [9:14 - 9:15] VarDecl=hello:9:16 (Definition)
// CHECK: Identifier: "hello" [9:16 - 9:21] VarDecl=hello:9:16 (Definition)
// CHECK: Punctuation: "=" [9:22 - 9:23] VarDecl=hello:9:16 (Definition)
// CHECK: Literal: ""Hello"" [9:24 - 9:31] StringLiteral=
// CHECK: Punctuation: ";" [9:31 - 9:32] DeclStmt=
// CHECK: Punctuation: "}" [10:1 - 10:2] CompoundStmt=
// CHECK: Keyword: "__builtin_va_arg" [15:9 - 15:25] UnexposedExpr=
// CHECK: Identifier: "Int" [15:30 - 15:33] TypeRef=Int:12:13
// CHECK: Keyword: "__builtin_types_compatible_p" [16:9 - 16:37] UnexposedExpr=
// CHECK: Identifier: "Int" [16:38 - 16:41] TypeRef=Int:12:13
// CHECK: Punctuation: "," [16:41 - 16:42] UnexposedExpr=
// CHECK: Identifier: "Int" [16:43 - 16:46] TypeRef=Int:12:13
// CHECK: Keyword: "struct" [18:3 - 18:9] VarDecl=x:18:12 (Definition)
// CHECK: Identifier: "X" [18:10 - 18:11] TypeRef=struct X:2:8
// CHECK: Identifier: "x" [18:12 - 18:13] VarDecl=x:18:12 (Definition)
// CHECK: Keyword: "do" [19:3 - 19:5] DoStmt=
// CHECK: Identifier: "x" [20:5 - 20:6] DeclRefExpr=x:18:12
// CHECK: Punctuation: "." [20:6 - 20:7] MemberRefExpr=a:2:16
// CHECK: Identifier: "a" [20:7 - 20:8] MemberRefExpr=a:2:16
// CHECK: Punctuation: "++" [20:8 - 20:10] UnaryOperator=
// CHECK: Punctuation: ";" [20:10 - 20:11] CompoundStmt=
// CHECK: Punctuation: "}" [21:3 - 21:4] CompoundStmt=
// CHECK: Keyword: "while" [21:5 - 21:10] DoStmt=
// CHECK: Punctuation: "(" [21:11 - 21:12] DoStmt=
// CHECK: Identifier: "x" [21:12 - 21:13] DeclRefExpr=x:18:12
// CHECK: Punctuation: "." [21:13 - 21:14] MemberRefExpr=a:2:16
// CHECK: Identifier: "a" [21:14 - 21:15] MemberRefExpr=a:2:16
// CHECK: Keyword: "enum" [23:3 - 23:7] VarDecl=c:23:14 (Definition)
// CHECK: Identifier: "Color" [23:8 - 23:13] TypeRef=enum Color:11:6
// CHECK: Identifier: "c" [23:14 - 23:15] VarDecl=c:23:14 (Definition)
// CHECK: Punctuation: ";" [23:15 - 23:16] DeclStmt=
// CHECK: Keyword: "switch" [24:3 - 24:9] SwitchStmt=
// CHECK: Punctuation: "(" [24:10 - 24:11] SwitchStmt=
// CHECK: Identifier: "c" [24:11 - 24:12] DeclRefExpr=c:23:14
// CHECK: Punctuation: ")" [24:12 - 24:13] SwitchStmt=
// CHECK: Punctuation: "{" [24:14 - 24:15] CompoundStmt=
// CHECK: Keyword: "case" [25:3 - 25:7] CaseStmt=
// CHECK: Identifier: "Red" [25:8 - 25:11] DeclRefExpr=Red:11:14
// CHECK: Punctuation: ":" [25:11 - 25:12] CaseStmt=
// CHECK: Keyword: "return" [26:5 - 26:11] ReturnStmt=
// CHECK: Identifier: "Green" [26:12 - 26:17] DeclRefExpr=Green:11:19
// CHECK: Punctuation: ";" [26:17 - 26:18] CompoundStmt=
// CHECK: Keyword: "case" [28:3 - 28:7] CaseStmt=
// CHECK: Identifier: "Green" [28:8 - 28:13] DeclRefExpr=Green:11:19
// CHECK: Punctuation: ":" [28:13 - 28:14] CaseStmt=
// CHECK: Keyword: "return" [29:5 - 29:11] ReturnStmt=
// CHECK: Identifier: "Blue" [29:12 - 29:16] DeclRefExpr=Blue:11:26
// CHECK: Punctuation: ";" [29:16 - 29:17] CompoundStmt=
// CHECK: Keyword: "case" [31:3 - 31:7] CaseStmt=
// CHECK: Identifier: "Blue" [31:8 - 31:12] DeclRefExpr=Blue:11:26
// CHECK: Punctuation: ":" [31:12 - 31:13] CaseStmt=
// CHECK: Keyword: "return" [32:5 - 32:11] ReturnStmt=
// CHECK: Identifier: "Red" [32:12 - 32:15] DeclRefExpr=Red:11:14
// CHECK: Punctuation: ";" [32:15 - 32:16] CompoundStmt=
// CHECK: Keyword: "__attribute__" [36:1 - 36:14] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Punctuation: "(" [36:14 - 36:15] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Punctuation: "(" [36:15 - 36:16] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Identifier: "unavailable" [36:16 - 36:27] UnexposedAttr=
// CHECK: Punctuation: ")" [36:27 - 36:28] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Punctuation: ")" [36:28 - 36:29] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Identifier: "Int" [36:30 - 36:33] TypeRef=Int:12:13
// CHECK: Keyword: "__attribute__" [36:34 - 36:47] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Punctuation: "(" [36:47 - 36:48] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Punctuation: "(" [36:48 - 36:49] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Identifier: "unavailable" [36:49 - 36:60] UnexposedAttr=
// CHECK: Punctuation: ")" [36:60 - 36:61] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Punctuation: ")" [36:61 - 36:62] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Identifier: "test" [36:63 - 36:67] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Punctuation: "(" [36:67 - 36:68] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Punctuation: ")" [36:68 - 36:69] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Keyword: "__attribute__" [36:70 - 36:83] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Punctuation: "(" [36:83 - 36:84] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Punctuation: "(" [36:84 - 36:85] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Identifier: "unavailable" [36:85 - 36:96] UnexposedAttr=
// CHECK: Punctuation: ")" [36:96 - 36:97] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Punctuation: ")" [36:97 - 36:98] FunctionDecl=test:36:63 (unavailable) (always unavailable: "")
// CHECK: Punctuation: ";" [36:98 - 36:99]
// RUN: c-index-test -test-annotate-tokens=%s:4:1:165:32 %s | FileCheck %s
// RUN: c-index-test -test-annotate-tokens=%s:4:1:165:38 %s | FileCheck %s
// RUN: c-index-test -test-annotate-tokens=%s:50:1:55:1 %s | FileCheck %s -check-prefix=CHECK-RANGE1
// CHECK-RANGE1: Keyword: "void" [50:1 - 50:5] FunctionDecl=func1:50:6
// CHECK-RANGE1: Identifier: "func1" [50:6 - 50:11] FunctionDecl=func1:50:6
// CHECK-RANGE1: Punctuation: "(" [50:11 - 50:12] FunctionDecl=func1:50:6
// CHECK-RANGE1: Keyword: "void" [50:12 - 50:16] FunctionDecl=func1:50:6
// CHECK-RANGE1: Punctuation: ")" [50:16 - 50:17] FunctionDecl=func1:50:6
// CHECK-RANGE1: Punctuation: ";" [50:17 - 50:18]
// CHECK-RANGE1: Identifier: "TYPE_INST" [52:1 - 52:10] macro expansion=TYPE_INST:43:9
// CHECK-RANGE1: Punctuation: "(" [52:10 - 52:11]
// CHECK-RANGE1: Identifier: "Foo" [52:11 - 52:14] VarDecl=Foo:52:11 (Definition)
// CHECK-RANGE1: Punctuation: "," [52:14 - 52:15]
// CHECK-RANGE1: Punctuation: "." [53:5 - 53:6] UnexposedExpr=
// CHECK-RANGE1: Identifier: "x" [53:6 - 53:7] MemberRef=x:52:1
// CHECK-RANGE1: Punctuation: "=" [53:8 - 53:9] UnexposedExpr=
// CHECK-RANGE1: Literal: "0" [53:10 - 53:11] IntegerLiteral=
// CHECK-RANGE1: Punctuation: "," [53:11 - 53:12] InitListExpr=
// CHECK-RANGE1: Punctuation: "." [54:5 - 54:6] UnexposedExpr=
// CHECK-RANGE1: Identifier: "y" [54:6 - 54:7] MemberRef=y:52:1
// CHECK-RANGE1: Punctuation: "=" [54:8 - 54:9] UnexposedExpr=
// CHECK-RANGE1: Literal: "1" [54:10 - 54:11] IntegerLiteral=
// CHECK-RANGE1: Punctuation: "," [54:11 - 54:12] InitListExpr=
// RUN: c-index-test -test-annotate-tokens=%s:54:1:70:1 %s | FileCheck %s -check-prefix=CHECK-RANGE2
// CHECK-RANGE2: Punctuation: "." [54:5 - 54:6] UnexposedExpr=
// CHECK-RANGE2: Identifier: "y" [54:6 - 54:7] MemberRef=y:52:1
// CHECK-RANGE2: Punctuation: "=" [54:8 - 54:9] UnexposedExpr=
// CHECK-RANGE2: Literal: "1" [54:10 - 54:11] IntegerLiteral=
// CHECK-RANGE2: Punctuation: "," [54:11 - 54:12] InitListExpr=
// CHECK-RANGE2: Punctuation: "." [55:5 - 55:6] UnexposedExpr=
// CHECK-RANGE2: Identifier: "z" [55:6 - 55:7] MemberRef=z:52:1
// CHECK-RANGE2: Punctuation: "=" [55:8 - 55:9] UnexposedExpr=
// CHECK-RANGE2: Literal: "2" [55:10 - 55:11] IntegerLiteral=
// CHECK-RANGE2: Punctuation: "," [55:11 - 55:12] InitListExpr=
// CHECK-RANGE2: Punctuation: ")" [56:1 - 56:2]
// CHECK-RANGE2: Punctuation: ";" [56:2 - 56:3]
// CHECK-RANGE2: Keyword: "void" [58:1 - 58:5] FunctionDecl=func2:58:6
// CHECK-RANGE2: Identifier: "func2" [58:6 - 58:11] FunctionDecl=func2:58:6
// CHECK-RANGE2: Punctuation: "(" [58:11 - 58:12] FunctionDecl=func2:58:6
// CHECK-RANGE2: Keyword: "void" [58:12 - 58:16] FunctionDecl=func2:58:6
// CHECK-RANGE2: Punctuation: ")" [58:16 - 58:17] FunctionDecl=func2:58:6
// CHECK-RANGE2: Punctuation: ";" [58:17 - 58:18]
// CHECK-RANGE2: Identifier: "reg" [68:3 - 68:6] DeclRefExpr=reg:67:7
// CHECK-RANGE2: Punctuation: "." [68:6 - 68:7] MemberRefExpr=field:62:9
// CHECK-RANGE2: Identifier: "field" [68:7 - 68:12] MemberRefExpr=field:62:9
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/print-type-cxx11.cpp
|
struct RefQualifierTest {
void f() & {};
void f() && {};
};
// RUN: c-index-test -test-print-type -std=c++11 %s | FileCheck %s
// CHECK: CXXMethod=f:2:8 (Definition) [type=void () {{.*}}&] [typekind=FunctionProto] lvalue-ref-qualifier [resulttype=void] [resulttypekind=Void] [isPOD=0]
// CHECK: CXXMethod=f:3:8 (Definition) [type=void () {{.*}}&&] [typekind=FunctionProto] rvalue-ref-qualifier [resulttype=void] [resulttypekind=Void] [isPOD=0]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/preamble.c
|
#include "prefix.h"
#include "preamble.h"
#include "preamble-with-error.h"
#define MACRO_UNUSED 1
#define MACRO_USED 2
int wibble(int);
void f(int x) {
x = MACRO_USED
}
// RUN: c-index-test -write-pch %t.pch -x c-header %S/Inputs/prefix.h
// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 local -I %S/Inputs -include %t %s -Wunused-macros 2> %t.stderr.txt | FileCheck %s
// RUN: FileCheck -check-prefix CHECK-DIAG %s < %t.stderr.txt
// CHECK: preamble.h:1:12: FunctionDecl=bar:1:12 (Definition) Extent=[1:1 - 6:2]
// CHECK: preamble.h:4:3: BinaryOperator= Extent=[4:3 - 4:13]
// CHECK: preamble.h:4:3: DeclRefExpr=ptr:2:8 Extent=[4:3 - 4:6]
// CHECK: preamble.h:4:9: UnexposedExpr=ptr1:3:10 Extent=[4:9 - 4:13]
// CHECK: preamble.h:4:9: DeclRefExpr=ptr1:3:10 Extent=[4:9 - 4:13]
// CHECK: preamble.h:5:10: IntegerLiteral= Extent=[5:10 - 5:11]
// CHECK: preamble.c:8:5: FunctionDecl=wibble:8:5 Extent=[8:1 - 8:16]
// CHECK: preamble.c:8:15: ParmDecl=:8:15 (Definition) Extent=[8:12 - 8:15]
// CHECK-DIAG: preamble.h:4:7:{4:9-4:13}: warning: incompatible pointer types assigning to 'int *' from 'float *'
// FIXME: Should see:
// preamble.c:5:9: warning: macro is not used
// CHECK-DIAG-NOT: preamble.c:6:9: warning: macro is not used
// RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:11:1 -I %S/Inputs -include %t %s 2> %t.stderr.txt | FileCheck -check-prefix CHECK-CC %s
// CHECK-CC: FunctionDecl:{ResultType int}{TypedText bar}{LeftParen (}{Placeholder int i}{RightParen )} (50)
// CHECK-CC: FunctionDecl:{ResultType void}{TypedText f}{LeftParen (}{Placeholder int x}{RightParen )} (50)
// CHECK-CC: FunctionDecl:{ResultType int}{TypedText foo}{LeftParen (}{Placeholder int}{RightParen )} (50)
// CHECK-CC: FunctionDecl:{ResultType int}{TypedText wibble}{LeftParen (}{Placeholder int}{RightParen )} (50)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/load-namespaces.cpp
|
// Test is line- and column-sensitive; see below.
namespace std {
namespace rel_ops {
void f();
}
}
namespace std {
void g();
}
namespace std98 = std;
namespace std0x = std98;
using namespace std0x;
namespace std {
int g(int);
}
using std::g;
void std::g() {
}
namespace my_rel_ops = std::rel_ops;
// RUN: c-index-test -test-load-source all %s | FileCheck %s
// CHECK: load-namespaces.cpp:3:11: Namespace=std:3:11 (Definition) Extent=[3:1 - 7:2]
// CHECK: load-namespaces.cpp:4:13: Namespace=rel_ops:4:13 (Definition) Extent=[4:3 - 6:4]
// CHECK: load-namespaces.cpp:5:10: FunctionDecl=f:5:10 Extent=[5:5 - 5:13]
// CHECK: load-namespaces.cpp:9:11: Namespace=std:9:11 (Definition) Extent=[9:1 - 11:2]
// CHECK: load-namespaces.cpp:10:8: FunctionDecl=g:10:8 Extent=[10:3 - 10:11]
// CHECK: load-namespaces.cpp:13:11: NamespaceAlias=std98:13:11 Extent=[13:1 - 13:22]
// CHECK: load-namespaces.cpp:13:19: NamespaceRef=std:3:11 Extent=[13:19 - 13:22]
// CHECK: load-namespaces.cpp:14:11: NamespaceAlias=std0x:14:11 Extent=[14:1 - 14:24]
// CHECK: load-namespaces.cpp:14:19: NamespaceRef=std98:13:11 Extent=[14:19 - 14:24]
// CHECK: load-namespaces.cpp:16:17: UsingDirective=:16:17 Extent=[16:1 - 16:22]
// CHECK: load-namespaces.cpp:16:17: NamespaceRef=std0x:14:11 Extent=[16:17 - 16:22]
// CHECK: load-namespaces.cpp:18:11: Namespace=std:18:11 (Definition) Extent=[18:1 - 20:2]
// CHECK: load-namespaces.cpp:19:7: FunctionDecl=g:19:7 Extent=[19:3 - 19:13]
// CHECK: load-namespaces.cpp:19:12: ParmDecl=:19:12 (Definition) Extent=[19:9 - 19:12]
// CHECK: load-namespaces.cpp:22:12: UsingDeclaration=g[19:7, 10:8] Extent=[22:1 - 22:13]
// CHECK: load-namespaces.cpp:22:7: NamespaceRef=std:18:11 Extent=[22:7 - 22:10]
// CHECK: load-namespaces.cpp:24:11: FunctionDecl=g:24:11 (Definition) Extent=[24:1 - 25:2]
// CHECK: load-namespaces.cpp:24:6: NamespaceRef=std:18:11 Extent=[24:6 - 24:9]
// CHECK: load-namespaces.cpp:27:11: NamespaceAlias=my_rel_ops:27:11 Extent=[27:1 - 27:36]
// CHECK: load-namespaces.cpp:27:24: NamespaceRef=std:18:11 Extent=[27:24 - 27:27]
// CHECK: load-namespaces.cpp:27:29: NamespaceRef=rel_ops:4:13 Extent=[27:29 - 27:36]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-memfunc-cvquals.cpp
|
// The run lines are below, because this test is line- and
// column-number sensitive.
struct Foo {
void babble() const volatile;
void bar();
void baz() const;
void bingo() volatile;
void theend() const volatile;
};
template<typename T>
struct smart_ptr {
T *operator->();
const T* operator->() const;
};
void text(Foo f, Foo *fp, const Foo &fc, const Foo *fcp,
smart_ptr<Foo> sf, const smart_ptr<Foo> &sfc, Foo volatile *fvp) {
f.bar();
fp->bar();
fc.baz();
fcp->baz();
sf->bar();
sfc->baz();
fvp->babble();
}
void Foo::bar() {
}
void Foo::baz() const {
}
void Foo::bingo() volatile {
}
// Check member access expressions.
// RUN: c-index-test -code-completion-at=%s:19:5 %s | FileCheck -check-prefix=CHECK-NOQUALS %s
// RUN: c-index-test -code-completion-at=%s:20:7 %s | FileCheck -check-prefix=CHECK-NOQUALS %s
// RUN: c-index-test -code-completion-at=%s:23:7 %s | FileCheck -check-prefix=CHECK-NOQUALS %s
// CHECK-NOQUALS: CXXMethod:{ResultType void}{TypedText babble}{LeftParen (}{RightParen )}{Informative const volatile} (35)
// CHECK-NOQUALS: CXXMethod:{ResultType void}{TypedText bar}{LeftParen (}{RightParen )} (34)
// CHECK-NOQUALS: CXXMethod:{ResultType void}{TypedText baz}{LeftParen (}{RightParen )}{Informative const} (35)
// CHECK-NOQUALS: CXXMethod:{ResultType void}{TypedText bingo}{LeftParen (}{RightParen )}{Informative volatile} (35)
// RUN: c-index-test -code-completion-at=%s:21:6 %s | FileCheck -check-prefix=CHECK-CONST %s
// RUN: c-index-test -code-completion-at=%s:22:8 %s | FileCheck -check-prefix=CHECK-CONST %s
// RUN: c-index-test -code-completion-at=%s:24:8 %s | FileCheck -check-prefix=CHECK-CONST %s
// CHECK-CONST: CXXMethod:{ResultType void}{TypedText babble}{LeftParen (}{RightParen )}{Informative const volatile} (35)
// CHECK-CONST-NOT: bar
// CHECK-CONST: CXXMethod:{ResultType void}{TypedText baz}{LeftParen (}{RightParen )}{Informative const} (34)
// CHECK-CONST-NOT: bingo
// CHECK-CONST: theend
// RUN: c-index-test -code-completion-at=%s:25:8 %s | FileCheck -check-prefix=CHECK-VOLATILE %s
// CHECK-VOLATILE: CXXMethod:{ResultType void}{TypedText babble}{LeftParen (}{RightParen )}{Informative const volatile} (35)
// CHECK-VOLATILE-NOT: baz
// CHECK-VOLATILE: CXXMethod:{ResultType void}{TypedText bingo}{LeftParen (}{RightParen )}{Informative volatile} (34)
// Check implicit member access expressions.
// RUN: c-index-test -code-completion-at=%s:29:2 %s | FileCheck -check-prefix=CHECK-IMPLICIT-NOQUALS %s
// CHECK-IMPLICIT-NOQUALS: CXXMethod:{ResultType void}{TypedText babble}{LeftParen (}{RightParen )}{Informative const volatile} (35)
// CHECK-IMPLICIT-NOQUALS: CXXMethod:{ResultType void}{TypedText bar}{LeftParen (}{RightParen )} (34)
// CHECK-IMPLICIT-NOQUALS: CXXMethod:{ResultType void}{TypedText baz}{LeftParen (}{RightParen )}{Informative const} (35)
// CHECK-IMPLICIT-NOQUALS: CXXMethod:{ResultType void}{TypedText bingo}{LeftParen (}{RightParen )}{Informative volatile} (35)
// RUN: c-index-test -code-completion-at=%s:33:1 %s | FileCheck -check-prefix=CHECK-IMPLICIT-CONST %s
// CHECK-IMPLICIT-CONST: CXXMethod:{ResultType void}{TypedText babble}{LeftParen (}{RightParen )}{Informative const volatile} (35)
// CHECK-IMPLICIT-CONST-NOT: bar
// CHECK-IMPLICIT-CONST: CXXMethod:{ResultType void}{TypedText baz}{LeftParen (}{RightParen )}{Informative const} (34)
// CHECK-IMPLICIT-CONST-NOT: bingo
// CHECK-IMPLICIT-CONST: theend
// RUN: c-index-test -code-completion-at=%s:37:1 %s | FileCheck -check-prefix=CHECK-IMPLICIT-VOLATILE %s
// CHECK-IMPLICIT-VOLATILE: CXXMethod:{ResultType void}{TypedText babble}{LeftParen (}{RightParen )}{Informative const volatile} (35)
// CHECK-IMPLICIT-VOLATILE-NOT: baz
// CHECK-IMPLICIT-VOLATILE: CXXMethod:{ResultType void}{TypedText bingo}{LeftParen (}{RightParen )}{Informative volatile} (34)
// RUN: c-index-test -code-completion-at=%s:4:17 %s | FileCheck -check-prefix=CHECK-CVQUAL-AFTER %s
// CHECK-CVQUAL-AFTER: NotImplemented:{TypedText const} (40)
// CHECK-CVQUAL-AFTER: NotImplemented:{TypedText volatile} (40)
// RUN: c-index-test -code-completion-at=%s:4:23 %s | FileCheck -check-prefix=CHECK-CVQUAL-AFTER2 %s
// CHECK-CVQUAL-AFTER2-NOT: NotImplemented:{TypedText const} (40)
// CHECK-CVQUAL-AFTER2: NotImplemented:{TypedText volatile} (40)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/preamble-reparse-warn-macro.c
|
// RUN: mkdir -p %t
// RUN: touch %t/header.h
// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 2 local %s -I %t 2>&1 > %t.out.txt | FileCheck %s
// CHECK: preamble-reparse-warn-macro.c:[[@LINE+8]]:9: warning: 'MAC' macro redefined
// CHECK-NEXT: Number FIX-ITs = 0
// CHECK-NEXT: preamble-reparse-warn-macro.c:[[@LINE+2]]:9: note: previous definition is here
#define MAC 1
#include "header.h"
void test();
#define MAC 2
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/annotate-tokens-cxx0x.cpp
|
template<typename ...Args>
int f(Args ...args) {
return sizeof...(args) + sizeof...(Args);
}
void test() {
int a;
decltype(a) b;
typedef int Integer;
typedef float Float;
typedef bool Bool;
bool b2 = __is_trivially_constructible(Integer, Float, Bool);
}
typedef int Int;
class B {
virtual void foo(Int);
};
class S : public B {
virtual void foo(Int) override;
};
// Need std::initializer_list
namespace std {
typedef decltype(sizeof(int)) size_t;
// libc++'s implementation
template <class _E>
class initializer_list
{
const _E* __begin_;
size_t __size_;
initializer_list(const _E* __b, size_t __s)
: __begin_(__b),
__size_(__s)
{}
public:
typedef _E value_type;
typedef const _E& reference;
typedef const _E& const_reference;
typedef size_t size_type;
typedef const _E* iterator;
typedef const _E* const_iterator;
initializer_list() : __begin_(nullptr), __size_(0) {}
size_t size() const {return __size_;}
const _E* begin() const {return __begin_;}
const _E* end() const {return __begin_ + __size_;}
};
}
struct Foo {
Foo(std::initializer_list<int> il);
};
void test2() {
Foo{10};
}
// RUN: c-index-test -test-annotate-tokens=%s:1:1:5:1 -fno-delayed-template-parsing -std=c++11 %s | FileCheck %s
// CHECK: Identifier: "args" [3:20 - 3:24] SizeOfPackExpr=args:2:15
// CHECK: Identifier: "Args" [3:38 - 3:42] TypeRef=Args:1:22
// RUN: c-index-test -test-annotate-tokens=%s:8:1:9:1 -std=c++11 %s | FileCheck -check-prefix=CHECK-DECLTYPE %s
// CHECK-DECLTYPE: Identifier: "a" [8:12 - 8:13] DeclRefExpr=a:7:7
// RUN: c-index-test -test-annotate-tokens=%s:13:1:14:1 -std=c++11 %s | FileCheck -check-prefix=CHECK-TRAIT %s
// CHECK-TRAIT: Identifier: "Integer" [13:42 - 13:49] TypeRef=Integer:10:15
// CHECK-TRAIT: Identifier: "Float" [13:51 - 13:56] TypeRef=Float:11:17
// CHECK-TRAIT: Identifier: "Bool" [13:58 - 13:62] TypeRef=Bool:12:16
// RUN: c-index-test -test-annotate-tokens=%s:16:1:24:1 -std=c++11 %s | FileCheck -check-prefix=CHECK-WITH-OVERRIDE %s
// CHECK-WITH-OVERRIDE: Keyword: "virtual" [19:2 - 19:9] CXXMethod=foo:19:15 (virtual)
// CHECK-WITH-OVERRIDE: Keyword: "void" [19:10 - 19:14] CXXMethod=foo:19:15 (virtual)
// CHECK-WITH-OVERRIDE: Identifier: "foo" [19:15 - 19:18] CXXMethod=foo:19:15 (virtual)
// CHECK-WITH-OVERRIDE: Punctuation: "(" [19:18 - 19:19] CXXMethod=foo:19:15 (virtual)
// CHECK-WITH-OVERRIDE: Identifier: "Int" [19:19 - 19:22] TypeRef=Int:16:13
// CHECK-WITH-OVERRIDE: Punctuation: ")" [19:22 - 19:23] CXXMethod=foo:19:15 (virtual)
// CHECK-WITH-OVERRIDE: Punctuation: ";" [19:23 - 19:24] ClassDecl=B:18:7 (Definition)
// CHECK-WITH-OVERRIDE: Keyword: "virtual" [23:3 - 23:10] CXXMethod=foo:23:16 (virtual) [Overrides @19:15]
// CHECK-WITH-OVERRIDE: Keyword: "void" [23:11 - 23:15] CXXMethod=foo:23:16 (virtual) [Overrides @19:15]
// CHECK-WITH-OVERRIDE: Identifier: "foo" [23:16 - 23:19] CXXMethod=foo:23:16 (virtual) [Overrides @19:15]
// CHECK-WITH-OVERRIDE: Punctuation: "(" [23:19 - 23:20] CXXMethod=foo:23:16 (virtual) [Overrides @19:15]
// CHECK-WITH-OVERRIDE: Identifier: "Int" [23:20 - 23:23] TypeRef=Int:16:13
// CHECK-WITH-OVERRIDE: Punctuation: ")" [23:23 - 23:24] CXXMethod=foo:23:16 (virtual) [Overrides @19:15]
// CHECK-WITH-OVERRIDE: Keyword: "override" [23:25 - 23:33] attribute(override)=
// CHECK-WITH-OVERRIDE: Punctuation: ";" [23:33 - 23:34] ClassDecl=S:22:7 (Definition)
// RUN: c-index-test -test-annotate-tokens=%s:64:1:65:1 -std=c++11 %s | FileCheck -check-prefix=CHECK-INITLIST %s
// CHECK-INITLIST: Identifier: "Foo" [64:3 - 64:6] TypeRef=struct Foo:59:8
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/index-many-logical-ops.c
|
// RUN: c-index-test -index-file %s | FileCheck %s
// rdar://10941790
// Check that we don't get stack overflow trying to index a huge number of
// logical operators.
// UBSan increses stack usage.
// REQUIRES: not_ubsan
// CHECK: [indexDeclaration]: kind: function | name: foo
int foo(int x) {
return
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x &&
x;
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/annotate-comments-preprocessor.c
|
// RUN: %clang_cc1 -fsyntax-only -I%S/Inputs %s
// As long as none of this crashes, we don't care about comments in
// preprocessor directives.
#include "annotate-comments-preprocessor.h" /* Aaa. */ /* Bbb. */
#include "annotate-comments-preprocessor.h" /* Aaa. */
#include "annotate-comments-preprocessor.h" /** Aaa. */
#include "annotate-comments-preprocessor.h" /**< Aaa. */
#include "annotate-comments-preprocessor.h" // Aaa.
#include "annotate-comments-preprocessor.h" /// Aaa.
#include "annotate-comments-preprocessor.h" ///< Aaa.
#define A0 0
#define A1 1 /* Aaa. */
#define A2 1 /** Aaa. */
#define A3 1 /**< Aaa. */
#define A4 1 // Aaa.
#define A5 1 /// Aaa.
#define A6 1 ///< Aaa.
int A[] = { A0, A1, A2, A3, A4, A5, A6 };
#if A0 /** Aaa. */
int f(int a1[A1], int a2[A2], int a3[A3], int a4[A4], int a5[A5], int a6[A6]);
#endif /** Aaa. */
#if A1 /** Aaa. */
int g(int a1[A1], int a2[A2], int a3[A3], int a4[A4], int a5[A5], int a6[A6]);
#endif /* Aaa. */
#pragma once /** Aaa. */
#define FOO \
do { \
/* Aaa. */ \
/** Aaa. */ \
/**< Aaa. */ \
; \
} while(0)
void h(void) {
FOO;
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/index-templates.cpp
|
// Test is line- and column-sensitive. See run lines below.
template<typename T, T Value, template<typename U, U ValU> class X>
void f(X<T, Value> x);
template<typename T> class allocator;
template<typename T, typename Alloc = allocator<T> >
class vector {
void clear();
};
template<typename T>
class vector<T*> { };
struct Z1 { };
template class vector<Z1>;
struct Z2 { };
template<>
class vector<Z2> {
void clear();
};
template<typename T, typename U>
struct Y {
using typename T::type;
using U::operator Z2;
};
struct Z3 { };
const unsigned OneDimension = 1;
template<typename T, unsigned Dimensions = OneDimension>
struct array { };
template<template<typename, unsigned> class DataStructure = array>
struct storage { };
typedef unsigned Unsigned;
template<typename T, Unsigned Value>
struct value_c;
template class vector<int*>;
struct Z4 {
template<typename T> T getAs();
};
void template_exprs() {
f<Unsigned, OneDimension, array>(array<Unsigned, OneDimension>());
Z4().getAs<Unsigned>();
}
template<typename T> void swap(T&, T&);
template<typename T, typename U> void swap(Y<T, U>&, Y<T, U>&);
void swap(Z4&, Z4&);
struct Z5 {
int f(int);
float f(float);
};
template<typename T>
void unresolved_exprs(T &x) {
swap(x, x);
Z5 z5;
z5.f(x);
swap<T>(x, x);
}
template<typename T, typename U>
struct Pair {
T first;
U second;
};
template<typename T, typename U>
void init_list(T t, U u) {
typedef U second_type;
Pair<T, U> p = { t, second_type(u) };
}
template<typename T>
struct compare { };
template<typename Key, typename Value,
typename Comparison = compare<Pair<Key, Value> >,
typename Allocator = allocator<Pair<Key, Value> > >
struct map;
void f(map<Z4, Pair<int, Z4> >);
template class Pair<int, int>;
template<typename T, typename U>
struct SuperPair : Pair<int, int>, Pair<T, U> { };
enum FxnTmplEnum {
FxnTmplEnum_A, FxnTmplEnum_B, FxnTmplEnum_C,
};
template <typename T, int I, FxnTmplEnum, int E>
void foo(T Value) {}
static const int FxnTmpl_Var = 7;
template <>
void foo<float, 9, FxnTmplEnum_B, FxnTmpl_Var + 7>(float Value);
// RUN: c-index-test -test-load-source all -fno-delayed-template-parsing %s | FileCheck -check-prefix=CHECK-LOAD %s
// CHECK-LOAD: index-templates.cpp:4:6: FunctionTemplate=f:4:6 Extent=[3:1 - 4:22]
// CHECK-LOAD: index-templates.cpp:3:19: TemplateTypeParameter=T:3:19 (Definition) Extent=[3:10 - 3:20]
// CHECK-LOAD: index-templates.cpp:3:24: NonTypeTemplateParameter=Value:3:24 (Definition) Extent=[3:22 - 3:29]
// FIXME: Need the template type parameter here
// CHECK-LOAD: index-templates.cpp:3:66: TemplateTemplateParameter=X:3:66 (Definition) Extent=[3:31 - 3:67]
// CHECK-LOAD: index-templates.cpp:4:20: ParmDecl=x:4:20 (Definition) Extent=[4:8 - 4:21]
// CHECK-LOAD: index-templates.cpp:4:8: TemplateRef=X:3:66 Extent=[4:8 - 4:9]
// FIXME: Need the template type parameter here
// CHECK-LOAD: index-templates.cpp:4:13: DeclRefExpr=Value:3:24 Extent=[4:13 - 4:18]
// CHECK-LOAD: index-templates.cpp:6:28: ClassTemplate=allocator:6:28 Extent=[6:1 - 6:37]
// CHECK-LOAD: index-templates.cpp:6:19: TemplateTypeParameter=T:6:19 (Definition) Extent=[6:10 - 6:20]
// CHECK-LOAD: index-templates.cpp:9:7: ClassTemplate=vector:9:7 (Definition) Extent=[8:1 - 11:2]
// CHECK-LOAD: index-templates.cpp:8:19: TemplateTypeParameter=T:8:19 (Definition) Extent=[8:10 - 8:20]
// CHECK-LOAD: index-templates.cpp:8:31: TemplateTypeParameter=Alloc:8:31 (Definition) Extent=[8:22 - 8:51]
// CHECK-LOAD: index-templates.cpp:8:39: TemplateRef=allocator:6:28 Extent=[8:39 - 8:48]
// CHECK-LOAD: index-templates.cpp:10:8: CXXMethod=clear:10:8 Extent=[10:3 - 10:15]
// CHECK-LOAD: index-templates.cpp:14:7: ClassTemplatePartialSpecialization=vector:14:7 (Definition) [Specialization of vector:9:7] Extent=[13:1 - 14:21]
// CHECK-LOAD: index-templates.cpp:13:19: TemplateTypeParameter=T:13:19 (Definition) Extent=[13:10 - 13:20]
// CHECK-LOAD: index-templates.cpp:16:8: StructDecl=Z1:16:8 (Definition) Extent=[16:1 - 16:14]
// CHECK-LOAD: index-templates.cpp:18:16: ClassDecl=vector:18:16 (Definition) [Specialization of vector:9:7] Extent=[18:1 - 18:26]
// CHECK-LOAD: index-templates.cpp:18:23: TypeRef=struct Z1:16:8 Extent=[18:23 - 18:25]
// CHECK-LOAD-NOT: CXXMethod=clear
// CHECK-LOAD: index-templates.cpp:20:8: StructDecl=Z2:20:8 (Definition) Extent=[20:1 - 20:14]
// CHECK-LOAD: index-templates.cpp:23:7: ClassDecl=vector:23:7 (Definition) [Specialization of vector:9:7] Extent=[22:1 - 25:2]
// CHECK-LOAD: index-templates.cpp:23:14: TypeRef=struct Z2:20:8 Extent=[23:14 - 23:16]
// CHECK-LOAD: index-templates.cpp:24:8: CXXMethod=clear:24:8 Extent=[24:3 - 24:15]
// CHECK-LOAD: index-templates.cpp:28:8: ClassTemplate=Y:28:8 (Definition) Extent=[27:1 - 31:2]
// CHECK-LOAD: index-templates.cpp:27:19: TemplateTypeParameter=T:27:19 (Definition) Extent=[27:10 - 27:20]
// CHECK-LOAD: index-templates.cpp:27:31: TemplateTypeParameter=U:27:31 (Definition) Extent=[27:22 - 27:32]
// CHECK-LOAD: index-templates.cpp:29:21: UsingDeclaration=type:29:21 Extent=[29:3 - 29:25]
// CHECK-LOAD: index-templates.cpp:30:12: UsingDeclaration=operator Z2:30:12 Extent=[30:3 - 30:23]
// CHECK-LOAD: index-templates.cpp:30:21: TypeRef=struct Z2:20:8 Extent=[30:21 - 30:23]
// CHECK-LOAD: index-templates.cpp:35:16: VarDecl=OneDimension:35:16 (Definition) Extent=[35:1 - 35:32]
// CHECK-LOAD: index-templates.cpp:35:31: UnexposedExpr= Extent=[35:31 - 35:32]
// CHECK-LOAD: index-templates.cpp:35:31: IntegerLiteral= Extent=[35:31 - 35:32]
// CHECK-LOAD: index-templates.cpp:37:8: ClassTemplate=array:37:8 (Definition) Extent=[36:1 - 37:17]
// CHECK-LOAD: index-templates.cpp:36:19: TemplateTypeParameter=T:36:19 (Definition) Extent=[36:10 - 36:20]
// CHECK-LOAD: index-templates.cpp:36:31: NonTypeTemplateParameter=Dimensions:36:31 (Definition) Extent=[36:22 - 36:56]
// CHECK-LOAD: index-templates.cpp:36:44: DeclRefExpr=OneDimension:35:16 Extent=[36:44 - 36:56]
// CHECK-LOAD: index-templates.cpp:40:8: ClassTemplate=storage:40:8 (Definition) Extent=[39:1 - 40:19]
// CHECK-LOAD: index-templates.cpp:39:45: TemplateTemplateParameter=DataStructure:39:45 (Definition) Extent=[39:10 - 39:66]
// CHECK-LOAD: index-templates.cpp:39:19: TemplateTypeParameter=:39:19 (Definition) Extent=[39:19 - 39:27]
// CHECK-LOAD: index-templates.cpp:39:37: NonTypeTemplateParameter=:39:37 (Definition) Extent=[39:29 - 39:37]
// CHECK-LOAD: index-templates.cpp:39:61: TemplateRef=array:37:8 Extent=[39:61 - 39:66]
// CHECK-LOAD: index-templates.cpp:42:18: TypedefDecl=Unsigned:42:18 (Definition) Extent=[42:1 - 42:26]
// CHECK-LOAD: index-templates.cpp:45:8: ClassTemplate=value_c:45:8 Extent=[44:1 - 45:15]
// CHECK-LOAD: index-templates.cpp:44:19: TemplateTypeParameter=T:44:19 (Definition) Extent=[44:10 - 44:20]
// CHECK-LOAD: index-templates.cpp:44:31: NonTypeTemplateParameter=Value:44:31 (Definition) Extent=[44:22 - 44:36]
// CHECK-LOAD: index-templates.cpp:44:22: TypeRef=Unsigned:42:18 Extent=[44:22 - 44:30]
// CHECK-LOAD: index-templates.cpp:47:16: ClassDecl=vector:47:16 (Definition) [Specialization of vector:14:7] Extent=[47:1 - 47:28]
// CHECK-LOAD: index-templates.cpp:49:8: StructDecl=Z4:49:8 (Definition) Extent=[49:1 - 51:2]
// CHECK-LOAD: index-templates.cpp:50:26: FunctionTemplate=getAs:50:26 Extent=[50:3 - 50:33]
// CHECK-LOAD: index-templates.cpp:50:21: TemplateTypeParameter=T:50:21 (Definition) Extent=[50:12 - 50:22]
// CHECK-LOAD: index-templates.cpp:53:6: FunctionDecl=template_exprs:53:6 (Definition)
// CHECK-LOAD: index-templates.cpp:54:3: CallExpr=f:4:6 Extent=[54:3 - 54:68]
// CHECK-LOAD: index-templates.cpp:54:3: UnexposedExpr=f:4:6 Extent=[54:3 - 54:35]
// CHECK-LOAD: index-templates.cpp:54:3: DeclRefExpr=f:4:6 RefName=[54:3 - 54:4] RefName=[54:4 - 54:35] Extent=[54:3 - 54:35]
// CHECK-LOAD: index-templates.cpp:54:5: TypeRef=Unsigned:42:18 Extent=[54:5 - 54:13]
// CHECK-LOAD: index-templates.cpp:54:15: DeclRefExpr=OneDimension:35:16 Extent=[54:15 - 54:27]
// CHECK-LOAD: index-templates.cpp:54:29: TemplateRef=array:37:8 Extent=[54:29 - 54:34]
// CHECK-LOAD: index-templates.cpp:55:8: MemberRefExpr=getAs:50:26 SingleRefName=[55:8 - 55:13] RefName=[55:8 - 55:13] Extent=[55:3 - 55:23]
// CHECK-LOAD: index-templates.cpp:55:3: CallExpr=Z4:49:8 Extent=[55:3 - 55:7]
// CHECK-LOAD: index-templates.cpp:55:14: TypeRef=Unsigned:42:18 Extent=[55:14 - 55:22]
// CHECK-LOAD: index-templates.cpp:68:6: FunctionTemplate=unresolved_exprs:68:6 (Definition)
// CHECK-LOAD: index-templates.cpp:69:3: OverloadedDeclRef=swap[60:6, 59:39, 58:27]
// CHECK-LOAD: index-templates.cpp:71:6: OverloadedDeclRef=f[63:7, 64:9]
// CHECK-LOAD: index-templates.cpp:72:3: OverloadedDeclRef=swap[58:27, 59:39]
// CHECK-LOAD: index-templates.cpp:82:6: FunctionTemplate=init_list:82:6 (Definition)
// CHECK-LOAD: index-templates.cpp:85:14: VarDecl=p:85:14 (Definition)
// CHECK-LOAD: index-templates.cpp:85:20: DeclRefExpr=t:82:18 Extent=[85:20 - 85:21]
// CHECK-LOAD: index-templates.cpp:85:23: TypeRef=second_type:83:13 Extent=[85:23 - 85:34]
// CHECK-LOAD: index-templates.cpp:85:35: DeclRefExpr=u:82:23 Extent=[85:35 - 85:36]
// CHECK-LOAD: index-templates.cpp:101:8: ClassTemplate=SuperPair:101:8 (Definition) Extent=[100:1 - 101:50]
// CHECK-LOAD: index-templates.cpp:100:19: TemplateTypeParameter=T:100:19 (Definition) Extent=[100:10 - 100:20]
// CHECK-LOAD: index-templates.cpp:100:31: TemplateTypeParameter=U:100:31 (Definition) Extent=[100:22 - 100:32]
// CHECK-LOAD: index-templates.cpp:101:20: C++ base class specifier=Pair<int, int>:98:16 [access=public isVirtual=false] Extent=[101:20 - 101:34]
// CHECK-LOAD: index-templates.cpp:101:36: C++ base class specifier=Pair<T, U>:76:8 [access=public isVirtual=false] Extent=[101:36 - 101:46]
// CHECK-LOAD: index-templates.cpp:111:6: FunctionDecl=foo:111:6 [Specialization of foo:107:6] [Template arg 0: kind: 1, type: float] [Template arg 1: kind: 4, intval: 9] [Template arg 2: kind: 4, intval: 1] [Template arg 3: kind: 4, intval: 14] Extent=[110:1 - 111:64]
// RUN: c-index-test -test-load-source-usrs all -fno-delayed-template-parsing %s | FileCheck -check-prefix=CHECK-USRS %s
// CHECK-USRS: index-templates.cpp c:@FT@>3#T#Nt0.0#t>2#T#Nt1.0f#>t0.22S0_#v# Extent=[3:1 - 4:22]
// CHECK-USRS: index-templates.cpp c:index-templates.cpp@70 Extent=[3:10 - 3:20]
// CHECK-USRS: index-templates.cpp c:index-templates.cpp@82 Extent=[3:22 - 3:29]
// CHECK-USRS: index-templates.cpp c:index-templates.cpp@91 Extent=[3:31 - 3:67]
// CHECK-USRS: index-templates.cpp c:index-templates.cpp@136@FT@>3#T#Nt0.0#t>2#T#Nt1.0f#>t0.22S0_#v#@x Extent=[4:8 - 4:21]
// CHECK-USRS: index-templates.cpp c:@ST>1#T@allocator Extent=[6:1 - 6:37]
// CHECK-USRS: index-templates.cpp c:index-templates.cpp@162 Extent=[6:10 - 6:20]
// CHECK-USRS: index-templates.cpp c:@ST>2#T#T@vector Extent=[8:1 - 11:2]
// CHECK-USRS: index-templates.cpp c:index-templates.cpp@201 Extent=[8:10 - 8:20]
// CHECK-USRS: index-templates.cpp c:index-templates.cpp@213 Extent=[8:22 - 8:51]
// CHECK-USRS: index-templates.cpp c:@ST>2#T#T@vector@F@clear# Extent=[10:3 - 10:15]
// CHECK-USRS: index-templates.cpp c:@SP>1#T@vector>#*t0.0#>@ST>1#T@allocator1S0_ Extent=[13:1 - 14:21]
// CHECK-USRS: index-templates.cpp c:index-templates.cpp@289 Extent=[13:10 - 13:20]
// CHECK-USRS: index-templates.cpp c:@S@Z1 Extent=[16:1 - 16:14]
// CHECK-USRS: index-templates.cpp c:@S@vector>#$@S@Z1#$@S@allocator>#S0_ Extent=[18:1 - 18:26]
// CHECK-USRS: index-templates.cpp c:@S@Z2 Extent=[20:1 - 20:14]
// CHECK-USRS: index-templates.cpp c:@S@vector>#$@S@Z2#$@S@allocator>#S0_ Extent=[22:1 - 25:2]
// CHECK-USRS: index-templates.cpp c:@S@vector>#$@S@Z2#$@S@allocator>#S0_@F@clear# Extent=[24:3 - 24:15]
// CHECK-USRS: index-templates.cpp c:@ST>2#T#T@Y Extent=[27:1 - 31:2]
// CHECK-USRS: index-templates.cpp c:index-templates.cpp@443 Extent=[27:10 - 27:20]
// CHECK-USRS: index-templates.cpp c:index-templates.cpp@455 Extent=[27:22 - 27:32]
// CHECK-USRS-NOT: type
// CHECK-USRS: index-templates.cpp c:@S@Z3 Extent=[33:1 - 33:14]
// CHECK-USRS: index-templates.cpp c:@F@f#$@S@map>#$@S@Z4#$@S@Pair>#I#S1_#$@S@compare>#$@S@Pair>#S1_#S2_#$@S@allocator>#S4_#
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-cxx-inline-methods.cpp
|
namespace {
class MyCls {
void in_foo() {
vec.x = 0;
}
void out_foo();
struct Vec { int x, y; };
Vec vec;
};
void MyCls::out_foo() {
vec.x = 0;
}
class OtherClass : public MyCls {
public:
OtherClass(const OtherClass &other) : MyCls(other), value(value) { }
private:
int value;
MyCls *object;
};
}
// RUN: c-index-test -code-completion-at=%s:4:9 -std=c++98 %s | FileCheck %s
// RUN: c-index-test -code-completion-at=%s:13:7 -std=c++98 %s | FileCheck %s
// CHECK: CXXMethod:{ResultType MyCls::Vec &}{TypedText operator=}{LeftParen (}{Placeholder const MyCls::Vec &}{RightParen )} (34)
// CHECK-NEXT: StructDecl:{TypedText Vec}{Text ::} (75)
// CHECK-NEXT: FieldDecl:{ResultType int}{TypedText x} (35)
// CHECK-NEXT: FieldDecl:{ResultType int}{TypedText y} (35)
// CHECK-NEXT: CXXDestructor:{ResultType void}{TypedText ~Vec}{LeftParen (}{RightParen )} (34)
// CHECK-NEXT: Completion contexts:
// CHECK-NEXT: Dot member access
// CHECK-NEXT: Container Kind: StructDecl
// RUN: c-index-test -code-completion-at=%s:18:41 %s | FileCheck -check-prefix=CHECK-CTOR-INIT %s
// CHECK-CTOR-INIT: NotImplemented:{TypedText MyCls}{LeftParen (}{Placeholder args}{RightParen )} (7)
// CHECK-CTOR-INIT: MemberRef:{TypedText object}{LeftParen (}{Placeholder args}{RightParen )} (35)
// CHECK-CTOR-INIT: MemberRef:{TypedText value}{LeftParen (}{Placeholder args}{RightParen )} (35)
// RUN: c-index-test -code-completion-at=%s:18:55 %s | FileCheck -check-prefix=CHECK-CTOR-INIT-2 %s
// CHECK-CTOR-INIT-2-NOT: NotImplemented:{TypedText MyCls}{LeftParen (}{Placeholder args}{RightParen )}
// CHECK-CTOR-INIT-2: MemberRef:{TypedText object}{LeftParen (}{Placeholder args}{RightParen )} (35)
// CHECK-CTOR-INIT-2: MemberRef:{TypedText value}{LeftParen (}{Placeholder args}{RightParen )} (7)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-documentation.cpp
|
// Note: the run lines follow their respective tests, since line/column
// matter in this test.
/// Aaa.
void T1(float x, float y);
/// Bbb.
class T2 {
public:
/// Ccc.
void T3();
int T4; ///< Ddd.
};
/// Eee.
namespace T5 {
}
struct T6 {
/// \brief Fff.
void T7();
/// \brief Ggg.
void T8();
};
void T6::T7() {
}
void test1() {
T2 t2;
t2.T4;
T6 t6;
t6.T8();
}
// RUN: env CINDEXTEST_COMPLETION_BRIEF_COMMENTS=1 c-index-test -code-completion-at=%s:32:1 %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: FunctionDecl:{ResultType void}{TypedText T1}{{.*}}(brief comment: Aaa.)
// CHECK-CC1: ClassDecl:{TypedText T2}{{.*}}(brief comment: Bbb.)
// CHECK-CC1: Namespace:{TypedText T5}{{.*}}(brief comment: Eee.)
// RUN: env CINDEXTEST_COMPLETION_BRIEF_COMMENTS=1 c-index-test -code-completion-at=%s:34:6 %s | FileCheck -check-prefix=CHECK-CC2 %s
// CHECK-CC2: CXXMethod:{ResultType void}{TypedText T3}{{.*}}(brief comment: Ccc.)
// CHECK-CC2: FieldDecl:{ResultType int}{TypedText T4}{{.*}}(brief comment: Ddd.)
// RUN: env CINDEXTEST_COMPLETION_BRIEF_COMMENTS=1 c-index-test -code-completion-at=%s:37:6 %s | FileCheck -check-prefix=CHECK-CC3 %s
// CHECK-CC3: CXXMethod:{ResultType void}{TypedText T7}{LeftParen (}{RightParen )} (34)(brief comment: Fff.)
// CHECK-CC3: CXXMethod:{ResultType void}{TypedText T8}{LeftParen (}{RightParen )} (34)(brief comment: Ggg.)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/preamble-reparse-import.m-1.h
|
#ifdef PARSED2
#error parsed twice
#endif
#define PARSED2 1
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-enums.c
|
// Note: the run lines follow their respective tests, since line/column
// matter in this test.
enum __attribute__((deprecated)) Color {
Color_Red = 17,
Color_Green,
Color_Blue
};
int Greeby();
void f(enum Color color) {
switch (color) {
case Red:
}
}
// RUN: c-index-test -code-completion-at=%s:11:1 %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: EnumConstantDecl:{ResultType enum Color}{TypedText Color_Red} (65) (deprecated)
// RUN: c-index-test -code-completion-at=%s:12:8 %s | FileCheck -check-prefix=CHECK-CC2 %s
// CHECK-CC2: EnumConstantDecl:{ResultType enum Color}{TypedText Color_Blue} (7) (deprecated)
// CHECK-CC2-NEXT: EnumConstantDecl:{ResultType enum Color}{TypedText Color_Green} (7) (deprecated)
// CHECK-CC2-NEXT: EnumConstantDecl:{ResultType enum Color}{TypedText Color_Red} (7) (deprecated)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/annotate-tokens-preamble.c
|
// A comment line.
void f(void *ptr) {
}
// RUN: c-index-test -test-annotate-tokens=%s:1:1:5:1 %s | FileCheck %s
// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-annotate-tokens=%s:1:1:5:1 %s | FileCheck %s
// CHECK: Comment: "// A comment line." [1:1 - 1:19]
// CHECK: Keyword: "void" [3:1 - 3:5] FunctionDecl=f:3:6 (Definition)
// CHECK: Identifier: "f" [3:6 - 3:7] FunctionDecl=f:3:6 (Definition)
// CHECK: Punctuation: "(" [3:7 - 3:8] FunctionDecl=f:3:6 (Definition)
// CHECK: Keyword: "void" [3:8 - 3:12] ParmDecl=ptr:3:14 (Definition)
// CHECK: Punctuation: "*" [3:13 - 3:14] ParmDecl=ptr:3:14 (Definition)
// CHECK: Identifier: "ptr" [3:14 - 3:17] ParmDecl=ptr:3:14 (Definition)
// CHECK: Punctuation: ")" [3:17 - 3:18] FunctionDecl=f:3:6 (Definition)
// CHECK: Punctuation: "{" [3:19 - 3:20] CompoundStmt=
// CHECK: Punctuation: "}" [4:1 - 4:2] CompoundStmt=
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-macro-args.c
|
struct Point {
float x;
float y;
float z;
};
#define MACRO2(x) x
#define MACRO(x) MACRO2(x)
void test(struct Point *p) {
p->x;
MACRO(p->x);
}
#define MACRO3(x,y,z) x;y;z
void test2(struct Point *p) {
MACRO3(p->x);
MACRO3(p->x
}
#define FM(x) x
void test3(struct Point *p) {
FM(p->x, a);
}
#define VGM(...) 0
#define VGM2(...) __VA_ARGS__
// These need to be last, to test proper handling of EOF.
#ifdef EOF_TEST1
void test3(struct Point *p) {
VGM(1,2, p->x
#elif EOF_TEST2
void test3(struct Point *p) {
VGM2(VGM(1,2, p->x
#endif
// RUN: c-index-test -code-completion-at=%s:11:12 %s | FileCheck %s
// RUN: c-index-test -code-completion-at=%s:12:12 %s | FileCheck %s
// RUN: c-index-test -code-completion-at=%s:18:13 %s | FileCheck %s
// RUN: c-index-test -code-completion-at=%s:19:13 %s | FileCheck %s
// RUN: c-index-test -code-completion-at=%s:24:9 %s | FileCheck %s
// CHECK: FieldDecl:{ResultType float}{TypedText x} (35)
// CHECK-NEXT: FieldDecl:{ResultType float}{TypedText y} (35)
// CHECK-NEXT: FieldDecl:{ResultType float}{TypedText z} (35)
// CHECK-NEXT: Completion contexts:
// CHECK-NEXT: Arrow member access
// CHECK-NEXT: Container Kind: StructDecl
// With these, code-completion is unknown because the macro argument (and the
// completion point) is not expanded by the macro definition.
// RUN: c-index-test -code-completion-at=%s:33:15 %s -DEOF_TEST1 | FileCheck %s -check-prefix=CHECK-EOF
// RUN: c-index-test -code-completion-at=%s:37:20 %s -DEOF_TEST2 | FileCheck %s -check-prefix=CHECK-EOF
// CHECK-EOF: Completion contexts:
// CHECK-EOF: Unknown
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/preamble-reparse-cmd-define.c
|
// RUN: c-index-test -write-pch %t.h.pch %s.h
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_REMAP_AFTER_TRIAL=1 c-index-test -test-load-source-reparse 3 local \
// RUN: "-remap-file=%s,%s.remap" %s -include %t.h -D CMD_MACRO=1 2>&1 | FileCheck %s
// CHECK-NOT: error:
int foo() {
return x;
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-optional-params.cpp
|
// Note: the run lines follow their respective tests, since line/column
// matter in this test.
void foo(int a = 42, int = 42);
void bar(int a, int b = 42, int c = 42);
void baz(int a = 42, ...);
struct S{ S(int a = 42, int = 42) {} };
int main() {
foo(42, 42);
bar(42, 42, 42);
baz(42, 42, 42);
S s(42, 42);
}
// RUN: c-index-test -code-completion-at=%s:10:9 %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: OverloadCandidate:{ResultType void}{Text foo}{LeftParen (}{Optional {CurrentParameter int a}{Optional {Comma , }{Placeholder int}}}{RightParen )} (1)
// CHECK-CC1: Completion contexts:
// CHECK-CC1-NEXT: Any type
// CHECK-CC1-NEXT: Any value
// CHECK-CC1-NEXT: Enum tag
// CHECK-CC1-NEXT: Union tag
// CHECK-CC1-NEXT: Struct tag
// CHECK-CC1-NEXT: Class name
// CHECK-CC1-NEXT: Nested name specifier
// CHECK-CC1-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:11:9 %s | FileCheck -check-prefix=CHECK-CC2 %s
// CHECK-CC2: OverloadCandidate:{ResultType void}{Text bar}{LeftParen (}{CurrentParameter int a}{Optional {Comma , }{Placeholder int b}{Optional {Comma , }{Placeholder int c}}}{RightParen )} (1)
// CHECK-CC2: Completion contexts:
// CHECK-CC2-NEXT: Any type
// CHECK-CC2-NEXT: Any value
// CHECK-CC2-NEXT: Enum tag
// CHECK-CC2-NEXT: Union tag
// CHECK-CC2-NEXT: Struct tag
// CHECK-CC2-NEXT: Class name
// CHECK-CC2-NEXT: Nested name specifier
// CHECK-CC2-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:11:16 %s | FileCheck -check-prefix=CHECK-CC3 %s
// CHECK-CC3: OverloadCandidate:{ResultType void}{Text bar}{LeftParen (}{Placeholder int a}{Optional {Comma , }{Placeholder int b}{Optional {Comma , }{CurrentParameter int c}}}{RightParen )} (1)
// CHECK-CC3: Completion contexts:
// CHECK-CC3-NEXT: Any type
// CHECK-CC3-NEXT: Any value
// CHECK-CC3-NEXT: Enum tag
// CHECK-CC3-NEXT: Union tag
// CHECK-CC3-NEXT: Struct tag
// CHECK-CC3-NEXT: Class name
// CHECK-CC3-NEXT: Nested name specifier
// CHECK-CC3-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:12:16 %s | FileCheck -check-prefix=CHECK-CC4 %s
// CHECK-CC4: OverloadCandidate:{ResultType void}{Text baz}{LeftParen (}{Optional {Placeholder int a}{Optional {Comma , }{CurrentParameter ...}}}{RightParen )} (1)
// CHECK-CC4: Completion contexts:
// CHECK-CC4-NEXT: Any type
// CHECK-CC4-NEXT: Any value
// CHECK-CC4-NEXT: Enum tag
// CHECK-CC4-NEXT: Union tag
// CHECK-CC4-NEXT: Struct tag
// CHECK-CC4-NEXT: Class name
// CHECK-CC4-NEXT: Nested name specifier
// CHECK-CC4-NEXT: Objective-C interface
// RUN: c-index-test -code-completion-at=%s:13:9 %s | FileCheck -check-prefix=CHECK-CC5 %s
// CHECK-CC5: OverloadCandidate:{Text S}{LeftParen (}{Optional {CurrentParameter int a}{Optional {Comma , }{Placeholder int}}}{RightParen )} (1)
// CHECK-CC5: OverloadCandidate:{Text S}{LeftParen (}{CurrentParameter const S &}{RightParen )} (1)
// CHECK-CC5: Completion contexts:
// CHECK-CC5-NEXT: Any type
// CHECK-CC5-NEXT: Any value
// CHECK-CC5-NEXT: Enum tag
// CHECK-CC5-NEXT: Union tag
// CHECK-CC5-NEXT: Struct tag
// CHECK-CC5-NEXT: Class name
// CHECK-CC5-NEXT: Nested name specifier
// CHECK-CC5-NEXT: Objective-C interface
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-macros.h
|
#ifndef COMPLETE_MACROS_H_GUARD
#define COMPLETE_MACROS_H_GUARD
void in_header(int);
#endif
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/initializer-memory.cpp
|
// RUN: c-index-test -test-load-source-memory-usage none %s 2>&1 | FileCheck %s
// rdar://9275920 - We would create millions of Exprs to fill out the initializer.
double data[1000000] = {0};
double data_empty_init[1000000] = {};
struct S {
S(int);
S();
};
S data2[1000000] = {0};
S data_empty_init2[1000000] = {};
// CHECK: TOTAL = {{.*}} (0.{{.*}} MBytes)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/index-pch.cpp
|
// RUN: c-index-test -write-pch %t.pch -fshort-wchar %s
// RUN: env LIBCLANG_NOTHREADS=1 c-index-test -index-tu %t.pch | FileCheck %s
// CHECK: [indexDeclaration]: kind: variable | name: wideStr
const wchar_t *wideStr = L"123";
// CHECK: [indexDeclaration]: kind: struct | name: __is_void
struct __is_void {};
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/reparse-instantiate.cpp
|
int main()
{
return 0;
}
// RUN: c-index-test -write-pch %t.pch -fno-delayed-template-parsing -x c++-header %S/Inputs/reparse-instantiate.h
// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 local -fno-delayed-template-parsing -I %S/Inputs -include %t %s
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-preamble.h
|
namespace std {
void wibble();
}
namespace std {
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/format-comment-cdecls.c
|
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 %s \
// RUN: | FileCheck %s
/**
* \brief Aaa.
*/
int global_function();
// CHECK: <Declaration>int global_function()</Declaration>
/**
* \param x1 Aaa.
*/
extern void external_function(int x1);
// CHECK: <Declaration>extern void external_function(int x1)</Declaration>
/**
* \brief global variable;
*/
int global_variable;
// CHECK: <Declaration>int global_variable</Declaration>
/**
* \brief local variable;
*/
static int static_variable;
// CHECK: <Declaration>static int static_variable</Declaration>
/**
* \brief external variable
*/
extern int external_variable;
// CHECK: <Declaration>extern int external_variable</Declaration>
int global_function() {
/**
* \brief a local variable
*/
int local = 10;
return local;
}
// CHECK: <Declaration>int global_function()</Declaration>
// CHECK: <Declaration>int local = 10</Declaration>
/**
* \brief initialized decl.
*/
int initialized_global = 100;
// CHECK: <Declaration>int initialized_global = 100</Declaration>
/**
* \brief typedef example
*/
typedef int INT_T;
// CHECK: <Declaration>typedef int INT_T</Declaration>
/**
* \brief aggregate type example
*/
struct S {
/**
* \brief iS1;
*/
int iS1;
/**
* \brief dS1;
*/
double dS1;
};
// CHECK: <Declaration>struct S {}</Declaration>
// CHECK: <Declaration>int iS1</Declaration>
// CHECK: <Declaration>double dS1</Declaration>
/**
* \brief enum e;
*/
enum e {
One,
/**
* \brief Two;
*/
Two,
Three
};
// CHECK: <Declaration>enum e {}</Declaration>
// CHECK: <Declaration>Two</Declaration>
/**
*\brief block declaration
*/
int (^Block) (int i, int j);
// CHECK: <Declaration>int (^Block)(int, int)</Declaration>
/**
*\brief block declaration
*/
int (^Block1) (int i, int j) = ^(int i, int j) { return i + j; };
// CHECK: <Declaration>int (^Block1)(int, int) = ^(int i, int j) {\n}</Declaration>
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/index-suppress-refs.hpp
|
class B1 {};
class B2 {};
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-unterminated.c
|
typedef int Integer;
#if 0
#endif
/* blah */
void f0(const char*);
void f1(char);
const char *hello = "Hello, world";
const char a = 'a';
#define FOO(a, b) a b
FOO(int, x);
// RUN: c-index-test -code-completion-at=%s:5:1 -pedantic %s 2> %t.err | FileCheck %s
// RUN: not grep error %t.err
// CHECK: {TypedText Integer}
// RUN: c-index-test -code-completion-at=%s:8:6 -pedantic %s 2> %t.err
// RUN: not grep error %t.err
// RUN: c-index-test -code-completion-at=%s:10:28 -pedantic %s 2> %t.err
// RUN: not grep unterminated %t.err
// RUN: c-index-test -code-completion-at=%s:11:17 -pedantic %s 2> %t.err
// RUN: not grep unterminated %t.err
// RUN: c-index-test -code-completion-at=%s:18:10 -pedantic %s 2> %t.err
// RUN: not grep unterminated %t.err
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/comment-cplus-template-decls.cpp
|
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 std=c++11 %s > %t/out
// RUN: FileCheck %s < %t/out
// Ensure that XML we generate is not invalid.
// RUN: FileCheck %s -check-prefix=WRONG < %t/out
// WRONG-NOT: CommentXMLInvalid
// rdar://12378714
/**
* \brief Aaa
*/
template<typename T> struct A {
/**
* \brief Bbb
*/
A();
/**
* \brief Ccc
*/
~A();
/**
* \brief Ddd
*/
void f() { }
};
// CHECK: <Declaration>template <typename T> struct A {}</Declaration>
// CHECK: <Declaration>A<T>()</Declaration>
// CHECK: <Declaration>~A<T>()</Declaration>
/**
* \Brief Eee
*/
template <typename T> struct D : A<T> {
/**
* \brief
*/
using A<T>::f;
void f();
};
// CHECK: <Declaration>template <typename T> struct D : A<T> {}</Declaration>
// CHECK: <Declaration>using A<T>::f</Declaration>
struct Base {
int foo;
};
/**
* \brief
*/
template<typename T> struct E : Base {
/**
* \brief
*/
using Base::foo;
};
// CHECK: <Declaration>template <typename T> struct E : Base {}</Declaration>
// CHECK: <Declaration>using Base::foo</Declaration>
/// \tparam
/// \param AAA Blah blah
template<typename T>
void func_template_1(T AAA);
// CHECK: <Declaration>template <typename T> void func_template_1(T AAA)</Declaration>
template<template<template<typename CCC> class DDD, class BBB> class AAA>
void func_template_2();
// FIXME: There is not Declaration field in the generated output.
namespace rdar16128173 {
// CHECK: <Declaration>template <class PtrTy> class OpaquePtr {}</Declaration>
/// \brief Wrapper for void* pointer.
/// \tparam PtrTy Either a pointer type like 'T*' or a type that behaves like
/// a pointer.
template <class PtrTy>
class OpaquePtr {};
// CHECK: <Declaration>typedef OpaquePtr<int> DeclGroupPtrTy</Declaration>
typedef OpaquePtr<int> DeclGroupPtrTy;
DeclGroupPtrTy blah;
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-lambdas.cpp
|
// This test is line- and column-sensitive. See below for run lines.
int global;
struct X {
static int member;
void f(int zed) {
int local;
static int local_static;
[=] {
int inner_local;
[local, this, inner_local] {
}
}();
}
};
// RUN: c-index-test -code-completion-at=%s:12:8 -std=c++11 %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: VarDecl:{ResultType int}{TypedText inner_local} (34)
// CHECK-CC1-NEXT: VarDecl:{ResultType int}{TypedText local} (34)
// CHECK-CC1-NEXT: NotImplemented:{ResultType X *}{TypedText this} (40)
// CHECK-CC1-NEXT: ParmDecl:{ResultType int}{TypedText zed} (34)
// RUN: c-index-test -code-completion-at=%s:12:15 -std=c++11 %s | FileCheck -check-prefix=CHECK-CC2 %s
// CHECK-CC2: VarDecl:{ResultType int}{TypedText inner_local} (34)
// CHECK-CC2-NEXT: NotImplemented:{ResultType X *}{TypedText this} (40)
// CHECK-CC2-NEXT: ParmDecl:{ResultType int}{TypedText zed} (34)
// RUN: c-index-test -code-completion-at=%s:12:21 -std=c++11 %s | FileCheck -check-prefix=CHECK-CC3 %s
// CHECK-CC3: VarDecl:{ResultType int}{TypedText inner_local} (34)
// CHECK-CC3-NEXT: ParmDecl:{ResultType int}{TypedText zed} (34)
// RUN: c-index-test -code-completion-at=%s:12:8 -x objective-c++ -std=c++11 %s | FileCheck -check-prefix=CHECK-CC4 %s
// CHECK-CC4: TypedefDecl:{TypedText Class} (50)
// CHECK-CC4: TypedefDecl:{TypedText id} (50)
// CHECK-CC4: VarDecl:{ResultType int}{TypedText inner_local} (34)
// CHECK-CC4: VarDecl:{ResultType int}{TypedText local} (34)
// CHECK-CC4: NotImplemented:{ResultType X *}{TypedText this} (40)
// CHECK-CC4: ParmDecl:{ResultType int}{TypedText zed} (34)
// RUN: c-index-test -code-completion-at=%s:12:15 -x objective-c++ -std=c++11 %s | FileCheck -check-prefix=CHECK-CC2 %s
// RUN: c-index-test -code-completion-at=%s:12:21 -x objective-c++ -std=c++11 %s | FileCheck -check-prefix=CHECK-CC3 %s
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/comment-cplus11-specific.cpp
|
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng std=c++11 %s > %t/out
// RUN: FileCheck %s < %t/out
// rdar://13752382
namespace inner {
//! This documentation should be inherited.
struct Opaque;
}
// CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]
namespace borrow {
//! This is documentation for the typedef (which shows up).
typedef inner::Opaque Typedef;
// CHECK: (CXComment_Text Text=[ This is documentation for the typedef (which shows up).])))]
//! This is documentation for the alias (which shows up).
using Alias = inner::Opaque;
// CHECK: (CXComment_Text Text=[ This is documentation for the alias (which shows up).])))]
typedef inner::Opaque NoDocTypedef;
// CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]
using NoDocAlias = inner::Opaque;
// CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/fix-its.c
|
// RUN: c-index-test -test-load-source all -fspell-checking %s 2> %t
// RUN: FileCheck %s < %t
struct X {
int wibble;
};
#define MACRO(X) X
void f(struct X *x) {
// CHECK: error: no member named 'wobble' in 'struct X'; did you mean 'wibble'?
// CHECK: FIX-IT: Replace [13:12 - 13:18] with "wibble"
// CHECK: note: 'wibble' declared here
MACRO(x->wobble = 17);
// CHECK: error: no member named 'wabble' in 'struct X'; did you mean 'wibble'?
// CHECK: FIX-IT: Replace [17:6 - 17:12] with "wibble"
// CHECK: note: 'wibble' declared here
x->wabble = 17;
}
int printf(const char *restrict, ...);
void f2() {
unsigned long index;
// CHECK: warning: format specifies type 'int' but the argument has type 'unsigned long'
// CHECK: FIX-IT: Replace [26:17 - 26:19] with "%lu"
MACRO(printf("%d", index));
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/c-index-unsupported-warning-test.c
|
// RUN: c-index-test -code-completion-at=%s:1:1 -Wunknown-foo-bar-warning -Werror %s
void f();
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/pch-opaque-value.cpp
|
struct S {
S();
S(int);
S(const S &);
~S();
};
void f() {
try {
} catch (S e) {
}
}
// RUN: c-index-test -write-pch %t.pch %s
// RUN: c-index-test -test-load-tu-usrs %t.pch local | FileCheck %s
// CHECK: pch-opaque-value.cpp c:pch-opaque-value.cpp@86@F@f#@e Extent=[10:12 - 10:15]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/annotate-toplevel-in-objccontainer.m.h
|
@interface FooPCH
void funcPCH1(int);
void funcPCH2(int);
enum E { Cake };
-(void)meth1;
-(void)meth2;
@end
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/linkage.c
|
// RUN: c-index-test -test-print-linkage-source %s | FileCheck %s
enum Baz { Qux = 0 };
int x;
void foo();
static int w;
void bar(int y) {
static int z;
int k;
}
extern int n;
static int wibble(int);
void ena(int (*dio)(int tria));
static int test2;
void f16(void) {
extern int test2;
}
// CHECK: EnumDecl=Baz:3:6 (Definition)linkage=External
// CHECK: EnumConstantDecl=Qux:3:12 (Definition)linkage=External
// CHECK: VarDecl=x:4:5linkage=External
// CHECK: FunctionDecl=foo:5:6linkage=External
// CHECK: VarDecl=w:6:12linkage=Internal
// CHECK: FunctionDecl=bar:7:6 (Definition)linkage=External
// CHECK: ParmDecl=y:7:14 (Definition)linkage=NoLinkage
// CHECK: VarDecl=z:8:14 (Definition)linkage=NoLinkage
// CHECK: VarDecl=k:9:7 (Definition)linkage=NoLinkage
// CHECK: VarDecl=n:11:12linkage=External
// CHECK: FunctionDecl=wibble:12:12linkage=Internal
// CHECK: ParmDecl=:12:22 (Definition)linkage=NoLinkage
// CHECK: FunctionDecl=ena:14:6linkage=External
// CHECK: ParmDecl=dio:14:16 (Definition)linkage=NoLinkage
// CHECK: ParmDecl=tria:14:25 (Definition)linkage=NoLinkage
// CHECK: VarDecl=test2{{.*}}linkage=Internal
// CHECK: VarDecl=test2{{.*}}linkage=Internal
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/index-suppress-refs.h
|
@interface I
@end
@interface B
@end
@protocol P
@end
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/complete-preamble.cpp
|
#include "complete-preamble.h"
void f() {
std::
}
// RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:3:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: {ResultType void}{TypedText wibble}{LeftParen (}{RightParen )} (50)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/asm-attribute.c
|
int foo(int x) __asm__("_foo_");
// RUN: c-index-test -test-load-source all %s | FileCheck %s
// CHECK: asm-attribute.c:1:5: FunctionDecl=foo:1:5 Extent=[1:1 - 1:32]
// CHECK: asm-attribute.c:1:24: asm label=_foo_ Extent=[1:24 - 1:31]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/pragma-diag-reparse.c
|
#pragma clang diagnostic ignored "-Wtautological-compare"
#include "pragma_disable_warning.h"
int main (int argc, const char * argv[])
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
int x=0;
#pragma clang diagnostic pop
return x;
}
void foo() { int b=0; while (b==b); }
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_FAILONERROR=1 c-index-test -test-load-source-reparse 5 local \
// RUN: -I%S/Inputs \
// RUN: %s -Wall -Werror | FileCheck %s
// CHECK: pragma-diag-reparse.c:8:7: VarDecl=x:8:7 (Definition) Extent=[8:3 - 8:10]
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/comment-to-html-xml-conversion.cpp
|
// RUN: rm -rf %t
// RUN: mkdir %t
// This file contains UTF-8 sequences. Please don't "fix" them!
// Check that we serialize comment source locations properly.
// RUN: %clang_cc1 -x c++ -std=c++11 -emit-pch -o %t/out.pch %s
// RUN: %clang_cc1 -x c++ -std=c++11 -include-pch %t/out.pch -fsyntax-only %s
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng %s -std=c++11 > %t/out.c-index-direct
// RUN: c-index-test -test-load-tu %t/out.pch all > %t/out.c-index-pch
// RUN: FileCheck %s -check-prefix=WRONG < %t/out.c-index-direct
// RUN: FileCheck %s -check-prefix=WRONG < %t/out.c-index-pch
// Ensure that XML is not invalid
// WRONG-NOT: CommentXMLInvalid
// RUN: FileCheck %s < %t/out.c-index-direct
// RUN: FileCheck %s < %t/out.c-index-pch
// XFAIL: msan
// XFAIL: valgrind
#ifndef HEADER
#define HEADER
//===---
// Tests for \brief and its aliases.
//===---
/// Aaa.
void test_cmd_brief_like_1();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_1:{{.*}} BriefComment=[Aaa.] FullCommentAsHTML=[<p class="para-brief"> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_1</Name><USR>c:@F@test_cmd_brief_like_1#</USR><Declaration>void test_cmd_brief_like_1()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.])))]
/// \brief Aaa.
void test_cmd_brief_like_2();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_2:{{.*}} BriefComment=[Aaa.] FullCommentAsHTML=[<p class="para-brief"> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_2</Name><USR>c:@F@test_cmd_brief_like_2#</USR><Declaration>void test_cmd_brief_like_2()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
/// \short Aaa.
void test_cmd_brief_like_3();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_3:{{.*}} BriefComment=[Aaa.] FullCommentAsHTML=[<p class="para-brief"> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_3</Name><USR>c:@F@test_cmd_brief_like_3#</USR><Declaration>void test_cmd_brief_like_3()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[short]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
/// Aaa.
///
/// \brief Bbb.
void test_cmd_brief_like_4();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_4:{{.*}} BriefComment=[Bbb.] FullCommentAsHTML=[<p class="para-brief"> Bbb.</p><p> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_4</Name><USR>c:@F@test_cmd_brief_like_4#</USR><Declaration>void test_cmd_brief_like_4()</Declaration><Abstract><Para> Bbb.</Para></Abstract><Discussion><Para> Aaa.</Para></Discussion></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
/// Aaa.
///
/// \brief Bbb.
///
/// Ccc.
void test_cmd_brief_like_5();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_5:{{.*}} BriefComment=[Bbb.] FullCommentAsHTML=[<p class="para-brief"> Bbb.</p><p> Aaa.</p><p> Ccc.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_5</Name><USR>c:@F@test_cmd_brief_like_5#</USR><Declaration>void test_cmd_brief_like_5()</Declaration><Abstract><Para> Bbb.</Para></Abstract><Discussion><Para> Aaa.</Para><Para> Ccc.</Para></Discussion></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.])))
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Ccc.])))]
/// \brief Aaa.
/// \brief Bbb.
void test_cmd_brief_like_6();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_6:{{.*}} BriefComment=[Bbb.] FullCommentAsHTML=[<p class="para-brief"> Aaa. </p><p class="para-brief"> Bbb.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_6</Name><USR>c:@F@test_cmd_brief_like_6#</USR><Declaration>void test_cmd_brief_like_6()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Discussion><Para> Bbb.</Para></Discussion></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
/// \abstract Aaa.
///
/// Bbb.
void test_cmd_brief_like_7();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_7:{{.*}} BriefComment=[Aaa.] FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><p> Bbb.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_7</Name><USR>c:@F@test_cmd_brief_like_7#</USR><Declaration>void test_cmd_brief_like_7()</Declaration><Abstract><Para> Aaa.</Para></Abstract><Discussion><Para> Bbb.</Para></Discussion></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[abstract]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.])))
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.])))]
//===---
// Tests for \returns and its aliases.
//===---
/// Aaa.
///
/// \return Bbb.
void test_cmd_returns_like_1();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_returns_like_1:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><div class="result-discussion"><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p></div>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_returns_like_1</Name><USR>c:@F@test_cmd_returns_like_1#</USR><Declaration>void test_cmd_returns_like_1()</Declaration><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Bbb.</Para></ResultDiscussion></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[return]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
/// Aaa.
///
/// \returns Bbb.
void test_cmd_returns_like_2();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_returns_like_2:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><div class="result-discussion"><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p></div>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_returns_like_2</Name><USR>c:@F@test_cmd_returns_like_2#</USR><Declaration>void test_cmd_returns_like_2()</Declaration><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Bbb.</Para></ResultDiscussion></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
/// Aaa.
///
/// \result Bbb.
void test_cmd_returns_like_3();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_returns_like_3:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><div class="result-discussion"><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p></div>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_returns_like_3</Name><USR>c:@F@test_cmd_returns_like_3#</USR><Declaration>void test_cmd_returns_like_3()</Declaration><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Bbb.</Para></ResultDiscussion></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[result]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
/// \returns Aaa.
/// \returns Bbb.
void test_cmd_returns_like_4();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_returns_like_4:{{.*}} FullCommentAsHTML=[<div class="result-discussion"><p class="para-returns"><span class="word-returns">Returns</span> Aaa. </p><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p></div>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_returns_like_4</Name><USR>c:@F@test_cmd_returns_like_4#</USR><Declaration>void test_cmd_returns_like_4()</Declaration><ResultDiscussion><Para> Aaa. </Para><Para> Bbb.</Para></ResultDiscussion></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
/// Aaa.
///
/// Bbb.
///
/// \returns Ccc.
void test_cmd_returns_like_5();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_returns_like_5:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><p> Bbb.</p><div class="result-discussion"><p class="para-returns"><span class="word-returns">Returns</span> Ccc.</p></div>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_returns_like_5</Name><USR>c:@F@test_cmd_returns_like_5#</USR><Declaration>void test_cmd_returns_like_5()</Declaration><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Ccc.</Para></ResultDiscussion><Discussion><Para> Bbb.</Para></Discussion></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Ccc.]))))]
//===---
// Tests for \param.
//===---
/// \param
void test_cmd_param_1(int x1);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_param_1:{{.*}} FullCommentAsHTML=[] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_param_1</Name><USR>c:@F@test_cmd_param_1#I#</USR><Declaration>void test_cmd_param_1(int x1)</Declaration></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[] ParamIndex=Invalid
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace)))]
/// \param x1 Aaa.
void test_cmd_param_2(int x1);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_param_2:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-0">x1</dt><dd class="param-descr-index-0"> Aaa.</dd></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_param_2</Name><USR>c:@F@test_cmd_param_2#I#</USR><Declaration>void test_cmd_param_2(int x1)</Declaration><Parameters><Parameter><Name>x1</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa.</Para></Discussion></Parameter></Parameters></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
/// \param zzz Aaa.
void test_cmd_param_3(int x1);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_param_3:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-invalid">zzz</dt><dd class="param-descr-index-invalid"> Aaa.</dd></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_param_3</Name><USR>c:@F@test_cmd_param_3#I#</USR><Declaration>void test_cmd_param_3(int x1)</Declaration><Parameters><Parameter><Name>zzz</Name><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa.</Para></Discussion></Parameter></Parameters></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[zzz] ParamIndex=Invalid
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
/// \param x2 Bbb.
/// \param x1 Aaa.
void test_cmd_param_4(int x1, int x2);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_param_4:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-0">x1</dt><dd class="param-descr-index-0"> Aaa.</dd><dt class="param-name-index-1">x2</dt><dd class="param-descr-index-1"> Bbb. </dd></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_param_4</Name><USR>c:@F@test_cmd_param_4#I#I#</USR><Declaration>void test_cmd_param_4(int x1, int x2)</Declaration><Parameters><Parameter><Name>x1</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa.</Para></Discussion></Parameter><Parameter><Name>x2</Name><Index>1</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Bbb. </Para></Discussion></Parameter></Parameters></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
/// \param x2 Bbb.
/// \param zzz Aaa.
/// \param x1 Aaa.
void test_cmd_param_5(int x1, int x2);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_param_5:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-0">x1</dt><dd class="param-descr-index-0"> Aaa.</dd><dt class="param-name-index-1">x2</dt><dd class="param-descr-index-1"> Bbb. </dd><dt class="param-name-index-invalid">zzz</dt><dd class="param-descr-index-invalid"> Aaa. </dd></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_param_5</Name><USR>c:@F@test_cmd_param_5#I#I#</USR><Declaration>void test_cmd_param_5(int x1, int x2)</Declaration><Parameters><Parameter><Name>x1</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa.</Para></Discussion></Parameter><Parameter><Name>x2</Name><Index>1</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Bbb. </Para></Discussion></Parameter><Parameter><Name>zzz</Name><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa. </Para></Discussion></Parameter></Parameters></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[zzz] ParamIndex=Invalid
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
/// \param x1 Aaa.
/// \param ... Bbb.
void test_cmd_param_6(int x1, ...);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_param_6:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-0">x1</dt><dd class="param-descr-index-0"> Aaa. </dd><dt class="param-name-index-vararg">...</dt><dd class="param-descr-index-vararg"> Bbb.</dd></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_param_6</Name><USR>c:@F@test_cmd_param_6#I.#</USR><Declaration>void test_cmd_param_6(int x1, ...)</Declaration><Parameters><Parameter><Name>x1</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa. </Para></Discussion></Parameter><Parameter><Name>...</Name><IsVarArg /><Direction isExplicit="0">in</Direction><Discussion><Para> Bbb.</Para></Discussion></Parameter></Parameters></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[...] ParamIndex=4294967295
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
//===---
// Tests for \tparam.
//===---
/// \tparam
/// \param aaa Blah blah
template<typename T>
void test_cmd_tparam_1(T aaa);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=test_cmd_tparam_1:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-0">aaa</dt><dd class="param-descr-index-0"> Blah blah</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_tparam_1</Name><USR>c:@FT@>1#Ttest_cmd_tparam_1#t0.0#v#</USR><Declaration>template <typename T> void test_cmd_tparam_1(T aaa)</Declaration><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah</Para></Discussion></Parameter></Parameters></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[] ParamPosition=Invalid
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[aaa] ParamIndex=0
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Blah blah]))))]
/// \tparam T
/// \param aaa Blah blah
template<typename T>
void test_cmd_tparam_2(T aaa);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=test_cmd_tparam_2:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-0">aaa</dt><dd class="param-descr-index-0"> Blah blah</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_tparam_2</Name><USR>c:@FT@>1#Ttest_cmd_tparam_2#t0.0#v#</USR><Declaration>template <typename T> void test_cmd_tparam_2(T aaa)</Declaration><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah</Para></Discussion></Parameter></Parameters></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T] ParamPosition={0}
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[aaa] ParamIndex=0
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Blah blah]))))]
/// \tparam T2 Bbb
/// \tparam T1 Aaa
template<typename T1, typename T2>
void test_cmd_tparam_3(T1 aaa, T2 bbb);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=test_cmd_tparam_3:{{.*}} FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">T1</dt><dd class="tparam-descr-index-0"> Aaa</dd><dt class="tparam-name-index-1">T2</dt><dd class="tparam-descr-index-1"> Bbb </dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_tparam_3</Name><USR>c:@FT@>2#T#Ttest_cmd_tparam_3#t0.0#t0.1#v#</USR><Declaration>template <typename T1, typename T2> void test_cmd_tparam_3(T1 aaa, T2 bbb)</Declaration><TemplateParameters><Parameter><Name>T1</Name><Index>0</Index><Discussion><Para> Aaa</Para></Discussion></Parameter><Parameter><Name>T2</Name><Index>1</Index><Discussion><Para> Bbb </Para></Discussion></Parameter></TemplateParameters></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T2] ParamPosition={1}
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T1] ParamPosition={0}
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa]))))]
/// \tparam T2 Bbb
/// \tparam U Zzz
/// \tparam V Ccc
/// \tparam T1 Aaa
template<typename T1, typename T2, int V>
void test_cmd_tparam_4(T1 aaa, T2 bbb);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=test_cmd_tparam_4:{{.*}} FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">T1</dt><dd class="tparam-descr-index-0"> Aaa</dd><dt class="tparam-name-index-1">T2</dt><dd class="tparam-descr-index-1"> Bbb </dd><dt class="tparam-name-index-2">V</dt><dd class="tparam-descr-index-2"> Ccc </dd><dt class="tparam-name-index-invalid">U</dt><dd class="tparam-descr-index-invalid"> Zzz </dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_tparam_4</Name><USR>c:@FT@>3#T#T#NItest_cmd_tparam_4#t0.0#t0.1#v#</USR><Declaration>template <typename T1, typename T2, int V>\nvoid test_cmd_tparam_4(T1 aaa, T2 bbb)</Declaration><TemplateParameters><Parameter><Name>T1</Name><Index>0</Index><Discussion><Para> Aaa</Para></Discussion></Parameter><Parameter><Name>T2</Name><Index>1</Index><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>V</Name><Index>2</Index><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>U</Name><Discussion><Para> Zzz </Para></Discussion></Parameter></TemplateParameters></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T2] ParamPosition={1}
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[U] ParamPosition=Invalid
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Zzz] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[V] ParamPosition={2}
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Ccc] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T1] ParamPosition={0}
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa]))))]
/// \tparam TTT Ddd
/// \tparam C Ccc
/// \tparam T Aaa
/// \tparam TT Bbb
template<template<template<typename T> class TT, class C> class TTT>
void test_cmd_tparam_5();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=test_cmd_tparam_5:{{.*}} FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">TTT</dt><dd class="tparam-descr-index-0"> Ddd </dd><dt class="tparam-name-index-other">C</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">T</dt><dd class="tparam-descr-index-other"> Aaa </dd><dt class="tparam-name-index-other">TT</dt><dd class="tparam-descr-index-other"> Bbb</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_tparam_5</Name><USR>c:@FT@>1#t>2#t>1#T#Ttest_cmd_tparam_5#v#</USR><Declaration>template <template <template <typename T> class TT, class C> class TTT>\nvoid test_cmd_tparam_5()</Declaration><TemplateParameters><Parameter><Name>TTT</Name><Index>0</Index><Discussion><Para> Ddd </Para></Discussion></Parameter><Parameter><Name>C</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>T</Name><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>TT</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[TTT] ParamPosition={0}
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Ddd] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[C] ParamPosition={0, 1}
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Ccc] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T] ParamPosition={0, 0, 0}
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[TT] ParamPosition={0, 0}
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb]))))]
//===---
// Tests for interaction between commands.
//===---
/// \brief Aaa.
///
/// Bbb.
///
/// \param x2 Ddd.
/// \param x1 Ccc.
/// \returns Eee.
void test_full_comment_1(int x1, int x2);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_full_comment_1:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><p> Bbb.</p><dl><dt class="param-name-index-0">x1</dt><dd class="param-descr-index-0"> Ccc. </dd><dt class="param-name-index-1">x2</dt><dd class="param-descr-index-1"> Ddd. </dd></dl><div class="result-discussion"><p class="para-returns"><span class="word-returns">Returns</span> Eee.</p></div>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_full_comment_1</Name><USR>c:@F@test_full_comment_1#I#I#</USR><Declaration>void test_full_comment_1(int x1, int x2)</Declaration><Abstract><Para> Aaa.</Para></Abstract><Parameters><Parameter><Name>x1</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Ccc. </Para></Discussion></Parameter><Parameter><Name>x2</Name><Index>1</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Ddd. </Para></Discussion></Parameter></Parameters><ResultDiscussion><Para> Eee.</Para></ResultDiscussion><Discussion><Para> Bbb.</Para></Discussion></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.])))
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Ddd.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Ccc.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Eee.]))))]
//===---
// Misc tests.
//===---
/// <br><a href="http://example.com/">Aaa</a>
void comment_to_html_conversion_24();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_24:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <br><a href="http://example.com/">Aaa</a></p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_24</Name><USR>c:@F@comment_to_html_conversion_24#</USR><Declaration>void comment_to_html_conversion_24()</Declaration><Abstract><Para> <rawHTML><![CDATA[<br>]]></rawHTML><rawHTML><![CDATA[<a href="http://example.com/">]]></rawHTML>Aaa<rawHTML></a></rawHTML></Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_HTMLStartTag Name=[br])
// CHECK-NEXT: (CXComment_HTMLStartTag Name=[a] Attrs: href=http://example.com/)
// CHECK-NEXT: (CXComment_Text Text=[Aaa])
// CHECK-NEXT: (CXComment_HTMLEndTag Name=[a])))]
/// \verbatim
/// <a href="http://example.com/">Aaa</a>
/// <a href='http://example.com/'>Aaa</a>
/// \endverbatim
void comment_to_html_conversion_25();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_25:{{.*}} FullCommentAsHTML=[<pre> <a href="http://example.com/">Aaa</a>\n <a href='http://example.com/'>Aaa</a></pre>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_25</Name><USR>c:@F@comment_to_html_conversion_25#</USR><Declaration>void comment_to_html_conversion_25()</Declaration><Discussion><Verbatim xml:space="preserve" kind="verbatim"> <a href="http://example.com/">Aaa</a>\n <a href='http://example.com/'>Aaa</a></Verbatim></Discussion></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_VerbatimBlockCommand CommandName=[verbatim]
// CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ <a href="http://example.com/">Aaa</a>])
// CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ <a href='http://example.com/'>Aaa</a>])))]
/// \def foo_def
/// \fn foo_fn
/// \namespace foo_namespace
/// \overload foo_overload
/// \property foo_property
/// \typedef foo_typedef
/// \var foo_var
/// \function foo_function
/// \class foo_class
/// \method foo_method
/// \interface foo_interface
/// Blah blah.
void comment_to_html_conversion_26();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_26:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Blah blah.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_26</Name><USR>c:@F@comment_to_html_conversion_26#</USR><Declaration>void comment_to_html_conversion_26()</Declaration><Abstract><Para> Blah blah.</Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_def])
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_fn])
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_namespace])
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_overload])
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_property])
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_typedef])
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_var])
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_function])
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_class])
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_method])
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_interface])
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Blah blah.])))]
/// \unknown
void comment_to_html_conversion_27();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_27:{{.*}} FullCommentAsHTML=[<p class="para-brief"> </p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_27</Name><USR>c:@F@comment_to_html_conversion_27#</USR><Declaration>void comment_to_html_conversion_27()</Declaration><Abstract><Para> </Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[unknown] RenderNormal)))]
/// \b Aaa
void comment_to_html_conversion_28();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_28:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <b>Aaa</b></p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_28</Name><USR>c:@F@comment_to_html_conversion_28#</USR><Declaration>void comment_to_html_conversion_28()</Declaration><Abstract><Para> <bold>Aaa</bold></Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[b] RenderBold Arg[0]=Aaa)))]
/// \c Aaa \p Bbb
void comment_to_html_conversion_29();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_29:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <tt>Aaa</tt> <tt>Bbb</tt></p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_29</Name><USR>c:@F@comment_to_html_conversion_29#</USR><Declaration>void comment_to_html_conversion_29()</Declaration><Abstract><Para> <monospaced>Aaa</monospaced> <monospaced>Bbb</monospaced></Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[c] RenderMonospaced Arg[0]=Aaa)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[p] RenderMonospaced Arg[0]=Bbb)))]
/// \a Aaa \e Bbb \em Ccc
void comment_to_html_conversion_30();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_30:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <em>Aaa</em> <em>Bbb</em> <em>Ccc</em></p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_30</Name><USR>c:@F@comment_to_html_conversion_30#</USR><Declaration>void comment_to_html_conversion_30()</Declaration><Abstract><Para> <emphasized>Aaa</emphasized> <emphasized>Bbb</emphasized> <emphasized>Ccc</emphasized></Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[a] RenderEmphasized Arg[0]=Aaa)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[e] RenderEmphasized Arg[0]=Bbb)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[em] RenderEmphasized Arg[0]=Ccc)))]
/// \a 1<2 \e 3<4 \em 5<6 \param 7<8 aaa \tparam 9<10 bbb
void comment_to_html_conversion_31();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_31:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <em>1<2</em> <em>3<4</em> <em>5<6</em> </p><dl><dt class="tparam-name-index-invalid">9<10</dt><dd class="tparam-descr-index-invalid"> bbb</dd></dl><dl><dt class="param-name-index-invalid">7<8</dt><dd class="param-descr-index-invalid"> aaa </dd></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_31</Name><USR>c:@F@comment_to_html_conversion_31#</USR><Declaration>void comment_to_html_conversion_31()</Declaration><Abstract><Para> <emphasized>1<2</emphasized> <emphasized>3<4</emphasized> <emphasized>5<6</emphasized> </Para></Abstract><TemplateParameters><Parameter><Name>9<10</Name><Discussion><Para> bbb</Para></Discussion></Parameter></TemplateParameters><Parameters><Parameter><Name>7<8</Name><Direction isExplicit="0">in</Direction><Discussion><Para> aaa </Para></Discussion></Parameter></Parameters></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[a] RenderEmphasized Arg[0]=1<2)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[e] RenderEmphasized Arg[0]=3<4)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[em] RenderEmphasized Arg[0]=5<6)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[7<8] ParamIndex=Invalid
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ aaa ])))
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[9<10] ParamPosition=Invalid
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ bbb]))))]
/// \\ \@ \& \$ \# \< \> \% \" \. \::
void comment_to_html_conversion_32();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_32:{{.*}} FullCommentAsHTML=[<p class="para-brief"> \ @ & $ # < > % " . ::</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_32</Name><USR>c:@F@comment_to_html_conversion_32#</USR><Declaration>void comment_to_html_conversion_32()</Declaration><Abstract><Para> \ @ & $ # < > % " . ::</Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[\])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[@])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[&])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[$])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[#])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[<])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[>])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[%])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=["])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[.])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[::])))]
/// & < > " ' meow meow
void comment_to_html_conversion_33();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_33:{{.*}} FullCommentAsHTML=[<p class="para-brief"> & < > " ' meow meow</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_33</Name><USR>c:@F@comment_to_html_conversion_33#</USR><Declaration>void comment_to_html_conversion_33()</Declaration><Abstract><Para> & < > " ' meow meow</Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[&])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[<])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[>])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=["])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=['])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[m])
// CHECK-NEXT: (CXComment_Text Text=[e])
// CHECK-NEXT: (CXComment_Text Text=[o])
// CHECK-NEXT: (CXComment_Text Text=[w])
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[m])
// CHECK-NEXT: (CXComment_Text Text=[e])
// CHECK-NEXT: (CXComment_Text Text=[o])
// CHECK-NEXT: (CXComment_Text Text=[w])))]
/// <em>0<i</em>
void comment_to_html_conversion_34();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_34:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <em>0<i</em></p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_34</Name><USR>c:@F@comment_to_html_conversion_34#</USR><Declaration>void comment_to_html_conversion_34()</Declaration><Abstract><Para> <rawHTML><![CDATA[<em>]]></rawHTML>0<i<rawHTML></em></rawHTML></Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_HTMLStartTag Name=[em])
// CHECK-NEXT: (CXComment_Text Text=[0])
// CHECK-NEXT: (CXComment_Text Text=[<])
// CHECK-NEXT: (CXComment_Text Text=[i])
// CHECK-NEXT: (CXComment_HTMLEndTag Name=[em])))]
// rdar://12392215
/// © the copyright symbol
/// ™ the trade mark symbol
/// ® the registered trade mark symbol
/// a non-breakable space.
/// Δ Greek letter Delta Δ.
/// Γ Greek letter Gamma Γ.
void comment_to_html_conversion_35();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_35:{{.*}} FullCommentAsHTML=[<p class="para-brief"> © the copyright symbol ™ the trade mark symbol ® the registered trade mark symbol a non-breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_35</Name><USR>c:@F@comment_to_html_conversion_35#</USR><Declaration>void comment_to_html_conversion_35()</Declaration><Abstract><Para> © the copyright symbol ™ the trade mark symbol ® the registered trade mark symbol a non-breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ.</Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[©])
// CHECK-NEXT: (CXComment_Text Text=[ the copyright symbol] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[™])
// CHECK-NEXT: (CXComment_Text Text=[ the trade mark symbol] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[®])
// CHECK-NEXT: (CXComment_Text Text=[ the registered trade mark symbol] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[ ])
// CHECK-NEXT: (CXComment_Text Text=[ a non-breakable space.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[Δ])
// CHECK-NEXT: (CXComment_Text Text=[ Greek letter Delta Δ.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_Text Text=[Γ])
// CHECK-NEXT: (CXComment_Text Text=[ Greek letter Gamma Γ.])))]
/// <h1 id="]]>">Aaa</h1>
void comment_to_html_conversion_36();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_36:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <h1 id="]]>">Aaa</h1></p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_36</Name><USR>c:@F@comment_to_html_conversion_36#</USR><Declaration>void comment_to_html_conversion_36()</Declaration><Abstract><Para> <rawHTML><![CDATA[<h1 id="]]]]><![CDATA[>">]]></rawHTML>Aaa<rawHTML></h1></rawHTML></Para></Abstract></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
// CHECK-NEXT: (CXComment_HTMLStartTag Name=[h1] Attrs: id=]]>)
// CHECK-NEXT: (CXComment_Text Text=[Aaa])
// CHECK-NEXT: (CXComment_HTMLEndTag Name=[h1])))]
/// Aaa.
class comment_to_xml_conversion_01 {
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:7: ClassDecl=comment_to_xml_conversion_01:{{.*}} FullCommentAsXML=[<Class file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="7"><Name>comment_to_xml_conversion_01</Name><USR>c:@S@comment_to_xml_conversion_01</USR><Declaration>class comment_to_xml_conversion_01 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
/// \param aaa Blah blah.
comment_to_xml_conversion_01(int aaa);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:3: CXXConstructor=comment_to_xml_conversion_01:{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="3"><Name>comment_to_xml_conversion_01</Name><USR>c:@S@comment_to_xml_conversion_01@F@comment_to_xml_conversion_01#I#</USR><Declaration>comment_to_xml_conversion_01(int aaa)</Declaration><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah.</Para></Discussion></Parameter></Parameters></Function>]
/// Aaa.
~comment_to_xml_conversion_01();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:3: CXXDestructor=~comment_to_xml_conversion_01:{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="3"><Name>~comment_to_xml_conversion_01</Name><USR>c:@S@comment_to_xml_conversion_01@F@~comment_to_xml_conversion_01#</USR><Declaration>~comment_to_xml_conversion_01()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
/// \param aaa Blah blah.
int comment_to_xml_conversion_02(int aaa);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:7: CXXMethod=comment_to_xml_conversion_02:{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="7"><Name>comment_to_xml_conversion_02</Name><USR>c:@S@comment_to_xml_conversion_01@F@comment_to_xml_conversion_02#I#</USR><Declaration>int comment_to_xml_conversion_02(int aaa)</Declaration><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah.</Para></Discussion></Parameter></Parameters></Function>]
/// \param aaa Blah blah.
static int comment_to_xml_conversion_03(int aaa);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:14: CXXMethod=comment_to_xml_conversion_03:{{.*}} FullCommentAsXML=[<Function isClassMethod="1" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="14"><Name>comment_to_xml_conversion_03</Name><USR>c:@S@comment_to_xml_conversion_01@F@comment_to_xml_conversion_03#I#S</USR><Declaration>static int comment_to_xml_conversion_03(int aaa)</Declaration><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah.</Para></Discussion></Parameter></Parameters></Function>]
/// Aaa.
int comment_to_xml_conversion_04;
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:7: FieldDecl=comment_to_xml_conversion_04:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="7"><Name>comment_to_xml_conversion_04</Name><USR>c:@S@comment_to_xml_conversion_01@FI@comment_to_xml_conversion_04</USR><Declaration>int comment_to_xml_conversion_04</Declaration><Abstract><Para> Aaa.</Para></Abstract></Variable>]
/// Aaa.
static int comment_to_xml_conversion_05;
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:14: VarDecl=comment_to_xml_conversion_05:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="14"><Name>comment_to_xml_conversion_05</Name><USR>c:@S@comment_to_xml_conversion_01@comment_to_xml_conversion_05</USR><Declaration>static int comment_to_xml_conversion_05</Declaration><Abstract><Para> Aaa.</Para></Abstract></Variable>]
/// \param aaa Blah blah.
void operator()(int aaa);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:8: CXXMethod=operator():{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="8"><Name>operator()</Name><USR>c:@S@comment_to_xml_conversion_01@F@operator()#I#</USR><Declaration>void operator()(int aaa)</Declaration><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah.</Para></Discussion></Parameter></Parameters></Function>]
/// Aaa.
operator bool();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:3: CXXConversion=operator bool:{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="3"><Name>operator bool</Name><USR>c:@S@comment_to_xml_conversion_01@F@operator bool#</USR><Declaration>operator bool()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
/// Aaa.
typedef int comment_to_xml_conversion_06;
// USR is line-dependent here, so filter it with a regexp.
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-3]]:15: TypedefDecl=comment_to_xml_conversion_06:{{.*}} FullCommentAsXML=[<Typedef file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-3]]" column="15"><Name>comment_to_xml_conversion_06</Name><USR>{{[^<]+}}</USR><Declaration>typedef int comment_to_xml_conversion_06</Declaration><Abstract><Para> Aaa.</Para></Abstract></Typedef>]
/// Aaa.
using comment_to_xml_conversion_07 = int;
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:9: TypeAliasDecl=comment_to_xml_conversion_07:{{.*}} FullCommentAsXML=[<Typedef file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="9"><Name>comment_to_xml_conversion_07</Name><USR>c:@S@comment_to_xml_conversion_01@comment_to_xml_conversion_07</USR><Declaration>using comment_to_xml_conversion_07 = int</Declaration><Abstract><Para> Aaa.</Para></Abstract></Typedef>]
/// Aaa.
template<typename T, typename U>
class comment_to_xml_conversion_08 { };
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:9: ClassTemplate=comment_to_xml_conversion_08:{{.*}} FullCommentAsXML=[<Class templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="9"><Name>comment_to_xml_conversion_08</Name><USR>c:@S@comment_to_xml_conversion_01@ST>2#T#T@comment_to_xml_conversion_08</USR><Declaration>template <typename T, typename U> class comment_to_xml_conversion_08 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
/// Aaa.
template<typename T>
using comment_to_xml_conversion_09 = comment_to_xml_conversion_08<T, int>;
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:3: UnexposedDecl=comment_to_xml_conversion_09:{{.*}} FullCommentAsXML=[<Typedef file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="3"><Name>comment_to_xml_conversion_09</Name><USR>c:@S@comment_to_xml_conversion_01@comment_to_xml_conversion_09</USR><Declaration>template <typename T>\nusing comment_to_xml_conversion_09 = comment_to_xml_conversion_08<T, int></Declaration><Abstract><Para> Aaa.</Para></Abstract></Typedef>]
};
/// Aaa.
template<typename T, typename U>
void comment_to_xml_conversion_10(T aaa, U bbb);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=comment_to_xml_conversion_10:{{.*}} FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_xml_conversion_10</Name><USR>c:@FT@>2#T#Tcomment_to_xml_conversion_10#t0.0#t0.1#v#</USR><Declaration>template <typename T, typename U>\nvoid comment_to_xml_conversion_10(T aaa, U bbb)</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
/// Aaa.
template<>
void comment_to_xml_conversion_10(int aaa, int bbb);
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_xml_conversion_10:{{.*}} FullCommentAsXML=[<Function templateKind="specialization" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_xml_conversion_10</Name><USR>c:@F@comment_to_xml_conversion_10<#I#I>#I#I#</USR><Declaration>void comment_to_xml_conversion_10(int aaa, int bbb)</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
/// Aaa.
template<typename T, typename U>
class comment_to_xml_conversion_11 { };
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:7: ClassTemplate=comment_to_xml_conversion_11:{{.*}} FullCommentAsXML=[<Class templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="7"><Name>comment_to_xml_conversion_11</Name><USR>c:@ST>2#T#T@comment_to_xml_conversion_11</USR><Declaration>template <typename T, typename U> class comment_to_xml_conversion_11 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
/// Aaa.
template<typename T>
class comment_to_xml_conversion_11<T, int> { };
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:7: ClassTemplatePartialSpecialization=comment_to_xml_conversion_11:{{.*}} FullCommentAsXML=[<Class templateKind="partialSpecialization" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="7"><Name>comment_to_xml_conversion_11</Name><USR>c:@SP>1#T@comment_to_xml_conversion_11>#t0.0#I</USR><Declaration>class comment_to_xml_conversion_11 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
/// Aaa.
template<>
class comment_to_xml_conversion_11<int, int> { };
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:7: ClassDecl=comment_to_xml_conversion_11:{{.*}} FullCommentAsXML=[<Class templateKind="specialization" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="7"><Name>comment_to_xml_conversion_11</Name><USR>c:@S@comment_to_xml_conversion_11>#I#I</USR><Declaration>class comment_to_xml_conversion_11 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
/// Aaa.
int comment_to_xml_conversion_12;
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:5: VarDecl=comment_to_xml_conversion_12:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="5"><Name>comment_to_xml_conversion_12</Name><USR>c:@comment_to_xml_conversion_12</USR><Declaration>int comment_to_xml_conversion_12</Declaration><Abstract><Para> Aaa.</Para></Abstract></Variable>]
/// Aaa.
namespace comment_to_xml_conversion_13 {
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:11: Namespace=comment_to_xml_conversion_13:{{.*}} FullCommentAsXML=[<Namespace file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="11"><Name>comment_to_xml_conversion_13</Name><USR>c:@N@comment_to_xml_conversion_13</USR><Declaration>namespace comment_to_xml_conversion_13 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Namespace>]
/// Aaa.
namespace comment_to_xml_conversion_14 {
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:13: Namespace=comment_to_xml_conversion_14:{{.*}} FullCommentAsXML=[<Namespace file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="13"><Name>comment_to_xml_conversion_14</Name><USR>c:@N@comment_to_xml_conversion_13@N@comment_to_xml_conversion_14</USR><Declaration>namespace comment_to_xml_conversion_14 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Namespace>]
}
}
/// Aaa.
enum comment_to_xml_conversion_15 {
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: EnumDecl=comment_to_xml_conversion_15:{{.*}} FullCommentAsXML=[<Enum file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_15</Name><USR>c:@E@comment_to_xml_conversion_15</USR><Declaration>enum comment_to_xml_conversion_15{{( : int)?}} {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Enum>]
/// Aaa.
comment_to_xml_conversion_16
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:3: EnumConstantDecl=comment_to_xml_conversion_16:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="3"><Name>comment_to_xml_conversion_16</Name><USR>c:@E@comment_to_xml_conversion_15@comment_to_xml_conversion_16</USR><Declaration>comment_to_xml_conversion_16</Declaration><Abstract><Para> Aaa.</Para></Abstract></Variable>]
};
/// Aaa.
enum class comment_to_xml_conversion_17 {
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:12: EnumDecl=comment_to_xml_conversion_17:{{.*}} FullCommentAsXML=[<Enum file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="12"><Name>comment_to_xml_conversion_17</Name><USR>c:@E@comment_to_xml_conversion_17</USR><Declaration>enum class comment_to_xml_conversion_17 : int {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Enum>]
/// Aaa.
comment_to_xml_conversion_18
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:3: EnumConstantDecl=comment_to_xml_conversion_18:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="3"><Name>comment_to_xml_conversion_18</Name><USR>c:@E@comment_to_xml_conversion_17@comment_to_xml_conversion_18</USR><Declaration>comment_to_xml_conversion_18</Declaration><Abstract><Para> Aaa.</Para></Abstract></Variable>]
};
/// <a href="http://example.org/">
void comment_to_xml_conversion_unsafe_html_01();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_01:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_01</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_01#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_01()</Declaration><Abstract><Para> <rawHTML isMalformed="1"><![CDATA[<a href="http://example.org/">]]></rawHTML></Para></Abstract></Function>]
/// <a href="http://example.org/"><em>Aaa</em>
void comment_to_xml_conversion_unsafe_html_02();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_02:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_02</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_02#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_02()</Declaration><Abstract><Para> <rawHTML isMalformed="1"><![CDATA[<a href="http://example.org/">]]></rawHTML><rawHTML><![CDATA[<em>]]></rawHTML>Aaa<rawHTML></em></rawHTML></Para></Abstract></Function>]
/// <em>Aaa
void comment_to_xml_conversion_unsafe_html_03();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_03:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_03</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_03#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_03()</Declaration><Abstract><Para> <rawHTML isMalformed="1"><![CDATA[<em>]]></rawHTML>Aaa</Para></Abstract></Function>]
/// <em>Aaa</b></em>
void comment_to_xml_conversion_unsafe_html_04();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_04:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_04</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_04#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_04()</Declaration><Abstract><Para> <rawHTML><![CDATA[<em>]]></rawHTML>Aaa<rawHTML isMalformed="1"></b></rawHTML><rawHTML></em></rawHTML></Para></Abstract></Function>]
/// <em>Aaa</em></b>
void comment_to_xml_conversion_unsafe_html_05();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_05:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_05</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_05#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_05()</Declaration><Abstract><Para> <rawHTML><![CDATA[<em>]]></rawHTML>Aaa<rawHTML></em></rawHTML><rawHTML isMalformed="1"></b></rawHTML></Para></Abstract></Function>]
/// </table>
void comment_to_xml_conversion_unsafe_html_06();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_06:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_06</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_06#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_06()</Declaration><Abstract><Para> <rawHTML isMalformed="1"></table></rawHTML></Para></Abstract></Function>]
/// <div onclick="alert('meow');">Aaa</div>
void comment_to_xml_conversion_unsafe_html_07();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_07:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_07</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_07#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_07()</Declaration><Abstract><Para> <rawHTML><![CDATA[<div onclick="alert('meow');">]]></rawHTML>Aaa<rawHTML></div></rawHTML></Para></Abstract></Function>]
//===---
// Check that we attach comments from the base class to derived classes if they don't have a comment.
// rdar://13647476
//===---
/// BaseToSuper1_Base
class BaseToSuper1_Base {};
class BaseToSuper1_Derived : public BaseToSuper1_Base {};
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:7: ClassDecl=BaseToSuper1_Derived:{{.*}} FullCommentAsXML=[<Class file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="7"><Name>BaseToSuper1_Base</Name><USR>c:@S@BaseToSuper1_Base</USR><Declaration>class BaseToSuper1_Derived : public BaseToSuper1_Base {}</Declaration><Abstract><Para> BaseToSuper1_Base</Para></Abstract></Class>]
/// BaseToSuper2_Base
class BaseToSuper2_Base {};
/// BaseToSuper2_Derived
class BaseToSuper2_Derived : public BaseToSuper2_Base {};
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:7: ClassDecl=BaseToSuper2_Derived:{{.*}} FullCommentAsXML=[<Class file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="7"><Name>BaseToSuper2_Derived</Name><USR>c:@S@BaseToSuper2_Derived</USR><Declaration>class BaseToSuper2_Derived : public BaseToSuper2_Base {}</Declaration><Abstract><Para> BaseToSuper2_Derived</Para></Abstract></Class>]
class BaseToSuper2_MoreDerived : public BaseToSuper2_Derived {};
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:7: ClassDecl=BaseToSuper2_MoreDerived:{{.*}} FullCommentAsXML=[<Class file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="7"><Name>BaseToSuper2_Derived</Name><USR>c:@S@BaseToSuper2_Derived</USR><Declaration>class BaseToSuper2_MoreDerived : public BaseToSuper2_Derived {}</Declaration><Abstract><Para> BaseToSuper2_Derived</Para></Abstract></Class>]
/// BaseToSuper3_Base
class BaseToSuper3_Base {};
class BaseToSuper3_DerivedA : public virtual BaseToSuper3_Base {};
class BaseToSuper3_DerivedB : public virtual BaseToSuper3_Base {};
class BaseToSuper3_MoreDerived : public BaseToSuper3_DerivedA, public BaseToSuper3_DerivedB {};
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:7: ClassDecl=BaseToSuper3_MoreDerived:{{.*}} FullCommentAsXML=[<Class file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="7"><Name>BaseToSuper3_Base</Name><USR>c:@S@BaseToSuper3_Base</USR><Declaration>class BaseToSuper3_MoreDerived : public BaseToSuper3_DerivedA,\n public BaseToSuper3_DerivedB {}</Declaration><Abstract><Para> BaseToSuper3_Base</Para></Abstract></Class>]
// Check that we propagate comments only through public inheritance.
/// BaseToSuper4_Base
class BaseToSuper4_Base {};
/// BaseToSuper4_DerivedA
class BaseToSuper4_DerivedA : virtual BaseToSuper4_Base {};
class BaseToSuper4_DerivedB : public virtual BaseToSuper4_Base {};
class BaseToSuper4_MoreDerived : BaseToSuper4_DerivedA, public BaseToSuper4_DerivedB {};
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:7: ClassDecl=BaseToSuper4_MoreDerived:{{.*}} FullCommentAsXML=[<Class file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="7"><Name>BaseToSuper4_Base</Name><USR>c:@S@BaseToSuper4_Base</USR><Declaration>class BaseToSuper4_MoreDerived : BaseToSuper4_DerivedA,\n public BaseToSuper4_DerivedB {}</Declaration><Abstract><Para> BaseToSuper4_Base</Para></Abstract></Class>]
//===---
// Check the representation of \todo in XML.
//===---
/// Aaa.
/// \todo Bbb.
void comment_to_xml_conversion_todo_1();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_todo_1:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_todo_1</Name><USR>c:@F@comment_to_xml_conversion_todo_1#</USR><Declaration>void comment_to_xml_conversion_todo_1()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Discussion><Para kind="todo"> Bbb.</Para></Discussion></Function>]
/// Aaa.
/// \todo Bbb.
///
/// Ccc.
void comment_to_xml_conversion_todo_2();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_todo_2:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_todo_2</Name><USR>c:@F@comment_to_xml_conversion_todo_2#</USR><Declaration>void comment_to_xml_conversion_todo_2()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Discussion><Para kind="todo"> Bbb.</Para><Para> Ccc.</Para></Discussion></Function>]
/// Aaa.
/// \todo Bbb.
///
/// Ccc.
/// \todo Ddd.
void comment_to_xml_conversion_todo_3();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_todo_3:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_todo_3</Name><USR>c:@F@comment_to_xml_conversion_todo_3#</USR><Declaration>void comment_to_xml_conversion_todo_3()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Discussion><Para kind="todo"> Bbb.</Para><Para> Ccc. </Para><Para kind="todo"> Ddd.</Para></Discussion></Function>]
/// Aaa.
/// \todo Bbb.
/// \todo Ccc.
void comment_to_xml_conversion_todo_4();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_todo_4:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_todo_4</Name><USR>c:@F@comment_to_xml_conversion_todo_4#</USR><Declaration>void comment_to_xml_conversion_todo_4()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Discussion><Para kind="todo"> Bbb. </Para><Para kind="todo"> Ccc.</Para></Discussion></Function>]
//===---
// Test the representation of exception specifications in AST and XML.
//===---
/// Aaa.
/// \throws Bbb.
void comment_to_xml_conversion_exceptions_1();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_exceptions_1:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_exceptions_1</Name><USR>c:@F@comment_to_xml_conversion_exceptions_1#</USR><Declaration>void comment_to_xml_conversion_exceptions_1()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Exceptions><Para> Bbb.</Para></Exceptions></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
/// Aaa.
/// \throw Bbb.
void comment_to_xml_conversion_exceptions_2();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_exceptions_2:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_exceptions_2</Name><USR>c:@F@comment_to_xml_conversion_exceptions_2#</USR><Declaration>void comment_to_xml_conversion_exceptions_2()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Exceptions><Para> Bbb.</Para></Exceptions></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throw]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
/// Aaa.
/// \exception Bbb.
void comment_to_xml_conversion_exceptions_3();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_exceptions_3:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_exceptions_3</Name><USR>c:@F@comment_to_xml_conversion_exceptions_3#</USR><Declaration>void comment_to_xml_conversion_exceptions_3()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Exceptions><Para> Bbb.</Para></Exceptions></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[exception]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
/// Aaa.
/// \throws Bbb.
/// \throws Ccc.
/// \throws Ddd.
void comment_to_xml_conversion_exceptions_4();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_exceptions_4:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_exceptions_4</Name><USR>c:@F@comment_to_xml_conversion_exceptions_4#</USR><Declaration>void comment_to_xml_conversion_exceptions_4()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Exceptions><Para> Bbb. </Para><Para> Ccc. </Para><Para> Ddd.</Para></Exceptions></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Ccc.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Ddd.]))))]
/// Aaa.
/// \throws Bbb.
/// \throw Ccc.
void comment_to_xml_conversion_exceptions_5();
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_exceptions_5:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_exceptions_5</Name><USR>c:@F@comment_to_xml_conversion_exceptions_5#</USR><Declaration>void comment_to_xml_conversion_exceptions_5()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Exceptions><Para> Bbb. </Para><Para> Ccc.</Para></Exceptions></Function>]
// CHECK-NEXT: CommentAST=[
// CHECK-NEXT: (CXComment_FullComment
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throw]
// CHECK-NEXT: (CXComment_Paragraph
// CHECK-NEXT: (CXComment_Text Text=[ Ccc.]))))]
#endif
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/preamble-reparse-warn-end-of-file.c
|
// RUN: mkdir -p %t
// RUN: touch %t/header.h
// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 2 local %s -I %t 2>&1 > %t.out.txt | FileCheck -check-prefix=STDERR %s
// RUN: FileCheck -input-file=%t.out.txt %s
// CHECK: preamble-reparse-warn-end-of-file.c:[[@LINE+6]]:6: FunctionDecl=test:[[@LINE+6]]:6
// STDERR: preamble-reparse-warn-end-of-file.c:[[@LINE+5]]:14: error: expected '}'
// STDERR: preamble-reparse-warn-end-of-file.c:[[@LINE+4]]:14: error: expected '}'
#include "header.h"
void test() {
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/annotate-context-sensitive.cpp
|
class Base {
public:
virtual void f();
};
class Derived final : public Base {
virtual void f() override final;
struct final { };
};
typedef int override;
struct Base2 {
virtual int override();
};
struct Derived2 : Base2 {
::override override() override;
};
// RUN: c-index-test -test-annotate-tokens=%s:6:1:19:1 %s | FileCheck -check-prefix=CHECK-OVERRIDE-FINAL %s
// CHECK-OVERRIDE-FINAL: Keyword: "class" [6:1 - 6:6] ClassDecl=Derived:6:7 (Definition)
// CHECK-OVERRIDE-FINAL: Identifier: "Derived" [6:7 - 6:14] ClassDecl=Derived:6:7 (Definition)
// CHECK-OVERRIDE-FINAL: Keyword: "final" [6:15 - 6:20] attribute(final)=
// CHECK-OVERRIDE-FINAL: Punctuation: ":" [6:21 - 6:22] ClassDecl=Derived:6:7 (Definition)
// CHECK-OVERRIDE-FINAL: Keyword: "public" [6:23 - 6:29] C++ base class specifier=class Base:1:7 [access=public isVirtual=false]
// CHECK-OVERRIDE-FINAL: Identifier: "Base" [6:30 - 6:34] TypeRef=class Base:1:7
// CHECK-OVERRIDE-FINAL: Punctuation: "{" [6:35 - 6:36] ClassDecl=Derived:6:7 (Definition)
// CHECK-OVERRIDE-FINAL: Keyword: "virtual" [7:3 - 7:10] CXXMethod=f:7:16 (virtual) [Overrides @3:16]
// CHECK-OVERRIDE-FINAL: Keyword: "void" [7:11 - 7:15] CXXMethod=f:7:16 (virtual) [Overrides @3:16]
// CHECK-OVERRIDE-FINAL: Identifier: "f" [7:16 - 7:17] CXXMethod=f:7:16 (virtual) [Overrides @3:16]
// CHECK-OVERRIDE-FINAL: Punctuation: "(" [7:17 - 7:18] CXXMethod=f:7:16 (virtual) [Overrides @3:16]
// CHECK-OVERRIDE-FINAL: Punctuation: ")" [7:18 - 7:19] CXXMethod=f:7:16 (virtual) [Overrides @3:16]
// CHECK-OVERRIDE-FINAL: Keyword: "override" [7:20 - 7:28] attribute(override)=
// CHECK-OVERRIDE-FINAL: Keyword: "final" [7:29 - 7:34] attribute(final)=
// CHECK-OVERRIDE-FINAL: Punctuation: ";" [7:34 - 7:35] ClassDecl=Derived:6:7 (Definition)
// CHECK-OVERRIDE-FINAL: Keyword: "struct" [9:3 - 9:9] StructDecl=final:9:10 (Definition)
// CHECK-OVERRIDE-FINAL: Identifier: "final" [9:10 - 9:15] StructDecl=final:9:10 (Definition)
// CHECK-OVERRIDE-FINAL: Punctuation: "{" [9:16 - 9:17] StructDecl=final:9:10 (Definition)
// CHECK-OVERRIDE-FINAL: Punctuation: "}" [9:18 - 9:19] StructDecl=final:9:10 (Definition)
// CHECK-OVERRIDE-FINAL: Punctuation: ";" [9:19 - 9:20] ClassDecl=Derived:6:7 (Definition)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/annotate-tokens-pp.c
|
#define NOTHING(X,Y)
#define STILL_NOTHING NOTHING(honk,warble)
#define BAR baz
#define WIBBLE(X, Y) X##Y
NOTHING(more,junk) float WIBBLE(int, float);
int BAR STILL_NOTHING;
#include "foo.h"
#undef BAR
#define REVERSE_MACRO(x,y) y + x
#define TWICE_MACRO(y) y + y
void test_macro_args() {
int z = 1;
int t = 2;
int k = REVERSE_MACRO(t,z);
int j = TWICE_MACRO(k + k);
int w = j + j;
}
#define fun_with_macro_bodies(x, y) do { if (x) y } while (0)
void test() {
int x = 10;
fun_with_macro_bodies(x, { int z = x; ++z; });
}
#include "pragma-once.h"
#include "guarded.h"
const char *fname = __FILE__;
#define SOME_MACRO 3
#ifdef SOME_MACRO
#endif
struct A
{
#ifdef SOME_MACRO
int x;
#endif
};
// RUN: c-index-test -test-annotate-tokens=%s:2:1:44:1 -I%S/Inputs %s | FileCheck %s
// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-annotate-tokens=%s:2:1:44:1 -I%S/Inputs %s | FileCheck %s
// CHECK: Punctuation: "#" [2:1 - 2:2] preprocessing directive=
// CHECK: Identifier: "define" [2:2 - 2:8] preprocessing directive=
// CHECK: Identifier: "STILL_NOTHING" [2:9 - 2:22] macro definition=STILL_NOTHING
// CHECK: Identifier: "NOTHING" [2:23 - 2:30] macro expansion=NOTHING:1:9
// CHECK: Punctuation: "(" [2:30 - 2:31] macro definition=STILL_NOTHING
// CHECK: Identifier: "honk" [2:31 - 2:35] macro definition=STILL_NOTHING
// CHECK: Punctuation: "," [2:35 - 2:36] macro definition=STILL_NOTHING
// CHECK: Identifier: "warble" [2:36 - 2:42] macro definition=STILL_NOTHING
// CHECK: Punctuation: ")" [2:42 - 2:43] macro definition=STILL_NOTHING
// CHECK: Punctuation: "#" [3:1 - 3:2] preprocessing directive=
// CHECK: Identifier: "define" [3:2 - 3:8] preprocessing directive=
// CHECK: Identifier: "BAR" [3:9 - 3:12] macro definition=BAR
// CHECK: Identifier: "baz" [3:13 - 3:16] macro definition=BAR
// CHECK: Punctuation: "#" [4:1 - 4:2] preprocessing directive=
// CHECK: Identifier: "define" [4:2 - 4:8] preprocessing directive=
// CHECK: Identifier: "WIBBLE" [4:9 - 4:15] macro definition=WIBBLE
// CHECK: Punctuation: "(" [4:15 - 4:16] macro definition=WIBBLE
// CHECK: Identifier: "X" [4:16 - 4:17] macro definition=WIBBLE
// CHECK: Punctuation: "," [4:17 - 4:18] macro definition=WIBBLE
// CHECK: Identifier: "Y" [4:19 - 4:20] macro definition=WIBBLE
// CHECK: Punctuation: ")" [4:20 - 4:21] macro definition=WIBBLE
// CHECK: Identifier: "X" [4:22 - 4:23] macro definition=WIBBLE
// CHECK: Punctuation: "##" [4:23 - 4:25] macro definition=WIBBLE
// CHECK: Identifier: "Y" [4:25 - 4:26] macro definition=WIBBLE
// CHECK: Identifier: "NOTHING" [5:1 - 5:8] macro expansion=NOTHING:1:9
// CHECK: Punctuation: "(" [5:8 - 5:9]
// CHECK: Identifier: "more" [5:9 - 5:13]
// CHECK: Punctuation: "," [5:13 - 5:14]
// CHECK: Identifier: "junk" [5:14 - 5:18]
// CHECK: Punctuation: ")" [5:18 - 5:19]
// CHECK: Keyword: "float" [5:20 - 5:25]
// CHECK: Identifier: "WIBBLE" [5:26 - 5:32] macro expansion=WIBBLE:4:9
// CHECK: Punctuation: "(" [5:32 - 5:33]
// CHECK: Keyword: "int" [5:33 - 5:36]
// CHECK: Punctuation: "," [5:36 - 5:37]
// CHECK: Keyword: "float" [5:38 - 5:43]
// CHECK: Punctuation: ")" [5:43 - 5:44]
// CHECK: Punctuation: ";" [5:44 - 5:45]
// CHECK: Keyword: "int" [6:1 - 6:4]
// CHECK: Identifier: "BAR" [6:5 - 6:8] macro expansion=BAR:3:9
// CHECK: Identifier: "STILL_NOTHING" [6:9 - 6:22] macro expansion=STILL_NOTHING:2:9
// CHECK: Punctuation: ";" [6:22 - 6:23]
// CHECK: Punctuation: "#" [7:1 - 7:2] inclusion directive=foo.h
// CHECK: Identifier: "include" [7:2 - 7:9] inclusion directive=foo.h
// CHECK: Literal: ""foo.h"" [7:10 - 7:17] inclusion directive=foo.h
// CHECK: Punctuation: "#" [8:1 - 8:2] preprocessing directive=
// CHECK: Identifier: "undef" [8:2 - 8:7] preprocessing directive=
// CHECK: Identifier: "BAR" [8:8 - 8:11] preprocessing directive=
// CHECK: Punctuation: "#" [10:1 - 10:2] preprocessing directive=
// CHECK: Identifier: "define" [10:2 - 10:8] preprocessing directive=
// CHECK: Identifier: "REVERSE_MACRO" [10:9 - 10:22] macro definition=REVERSE_MACRO
// CHECK: Punctuation: "(" [10:22 - 10:23] macro definition=REVERSE_MACRO
// CHECK: Identifier: "x" [10:23 - 10:24] macro definition=REVERSE_MACRO
// CHECK: Punctuation: "," [10:24 - 10:25] macro definition=REVERSE_MACRO
// CHECK: Identifier: "y" [10:25 - 10:26] macro definition=REVERSE_MACRO
// CHECK: Punctuation: ")" [10:26 - 10:27] macro definition=REVERSE_MACRO
// CHECK: Identifier: "y" [10:28 - 10:29] macro definition=REVERSE_MACRO
// CHECK: Punctuation: "+" [10:30 - 10:31] macro definition=REVERSE_MACRO
// CHECK: Identifier: "x" [10:32 - 10:33] macro definition=REVERSE_MACRO
// CHECK: Punctuation: "#" [11:1 - 11:2] preprocessing directive=
// CHECK: Identifier: "define" [11:2 - 11:8] preprocessing directive=
// CHECK: Identifier: "TWICE_MACRO" [11:9 - 11:20] macro definition=TWICE_MACRO
// CHECK: Punctuation: "(" [11:20 - 11:21] macro definition=TWICE_MACRO
// CHECK: Identifier: "y" [11:21 - 11:22] macro definition=TWICE_MACRO
// CHECK: Punctuation: ")" [11:22 - 11:23] macro definition=TWICE_MACRO
// CHECK: Identifier: "y" [11:24 - 11:25] macro definition=TWICE_MACRO
// CHECK: Punctuation: "+" [11:26 - 11:27] macro definition=TWICE_MACRO
// CHECK: Identifier: "y" [11:28 - 11:29] macro definition=TWICE_MACRO
// CHECK: Keyword: "void" [13:1 - 13:5] FunctionDecl=test_macro_args:13:6 (Definition)
// CHECK: Identifier: "test_macro_args" [13:6 - 13:21] FunctionDecl=test_macro_args:13:6 (Definition)
// CHECK: Punctuation: "(" [13:21 - 13:22] FunctionDecl=test_macro_args:13:6 (Definition)
// CHECK: Punctuation: ")" [13:22 - 13:23] FunctionDecl=test_macro_args:13:6 (Definition)
// CHECK: Punctuation: "{" [13:24 - 13:25] CompoundStmt=
// CHECK: Keyword: "int" [14:3 - 14:6] VarDecl=z:14:7 (Definition)
// CHECK: Identifier: "z" [14:7 - 14:8] VarDecl=z:14:7 (Definition)
// CHECK: Punctuation: "=" [14:9 - 14:10] VarDecl=z:14:7 (Definition)
// CHECK: Literal: "1" [14:11 - 14:12] IntegerLiteral=
// CHECK: Punctuation: ";" [14:12 - 14:13] DeclStmt=
// CHECK: Keyword: "int" [15:3 - 15:6] VarDecl=t:15:7 (Definition)
// CHECK: Identifier: "t" [15:7 - 15:8] VarDecl=t:15:7 (Definition)
// CHECK: Punctuation: "=" [15:9 - 15:10] VarDecl=t:15:7 (Definition)
// CHECK: Literal: "2" [15:11 - 15:12] IntegerLiteral=
// CHECK: Punctuation: ";" [15:12 - 15:13] DeclStmt=
// CHECK: Keyword: "int" [16:3 - 16:6] VarDecl=k:16:7 (Definition)
// CHECK: Identifier: "k" [16:7 - 16:8] VarDecl=k:16:7 (Definition)
// CHECK: Punctuation: "=" [16:9 - 16:10] VarDecl=k:16:7 (Definition)
// CHECK: Identifier: "REVERSE_MACRO" [16:11 - 16:24] macro expansion=REVERSE_MACRO:10:9
// CHECK: Punctuation: "(" [16:24 - 16:25]
// CHECK: Identifier: "t" [16:25 - 16:26] DeclRefExpr=t:15:7
// CHECK: Punctuation: "," [16:26 - 16:27]
// CHECK: Identifier: "z" [16:27 - 16:28] DeclRefExpr=z:14:7
// FIXME: The token below should really be annotated as "macro expansion=REVERSE_MACRO:10:9"
// CHECK: Punctuation: ")" [16:28 - 16:29] DeclStmt=
// CHECK: Punctuation: ";" [16:29 - 16:30] DeclStmt=
// CHECK: Keyword: "int" [17:3 - 17:6] VarDecl=j:17:7 (Definition)
// CHECK: Identifier: "j" [17:7 - 17:8] VarDecl=j:17:7 (Definition)
// CHECK: Punctuation: "=" [17:9 - 17:10] VarDecl=j:17:7 (Definition)
// CHECK: Identifier: "TWICE_MACRO" [17:11 - 17:22] macro expansion=TWICE_MACRO:11:9
// CHECK: Punctuation: "(" [17:22 - 17:23]
// CHECK: Identifier: "k" [17:23 - 17:24] DeclRefExpr=k:16:7
// CHECK: Punctuation: "+" [17:25 - 17:26] BinaryOperator=
// CHECK: Identifier: "k" [17:27 - 17:28] DeclRefExpr=k:16:7
// FIXME: The token below should really be annotated as "macro expansion=TWICE_MACRO:11:9"
// CHECK: Punctuation: ")" [17:28 - 17:29] DeclStmt=
// CHECK: Punctuation: ";" [17:29 - 17:30] DeclStmt=
// CHECK: Keyword: "int" [18:3 - 18:6] VarDecl=w:18:7 (Definition)
// CHECK: Identifier: "w" [18:7 - 18:8] VarDecl=w:18:7 (Definition)
// CHECK: Punctuation: "=" [18:9 - 18:10] VarDecl=w:18:7 (Definition)
// CHECK: Identifier: "j" [18:11 - 18:12] DeclRefExpr=j:17:7
// CHECK: Punctuation: "+" [18:13 - 18:14] BinaryOperator=
// CHECK: Identifier: "j" [18:15 - 18:16] DeclRefExpr=j:17:7
// CHECK: Punctuation: ";" [18:16 - 18:17] DeclStmt=
// CHECK: Punctuation: "}" [19:1 - 19:2] CompoundStmt=
// CHECK: Punctuation: "#" [21:1 - 21:2] preprocessing directive=
// CHECK: Identifier: "define" [21:2 - 21:8] preprocessing directive=
// CHECK: Identifier: "fun_with_macro_bodies" [21:9 - 21:30] macro definition=fun_with_macro_bodies
// CHECK: Punctuation: "(" [21:30 - 21:31] macro definition=fun_with_macro_bodies
// CHECK: Identifier: "x" [21:31 - 21:32] macro definition=fun_with_macro_bodies
// CHECK: Punctuation: "," [21:32 - 21:33] macro definition=fun_with_macro_bodies
// CHECK: Identifier: "y" [21:34 - 21:35] macro definition=fun_with_macro_bodies
// CHECK: Punctuation: ")" [21:35 - 21:36] macro definition=fun_with_macro_bodies
// CHECK: Keyword: "do" [21:37 - 21:39] macro definition=fun_with_macro_bodies
// CHECK: Punctuation: "{" [21:40 - 21:41] macro definition=fun_with_macro_bodies
// CHECK: Keyword: "if" [21:42 - 21:44] macro definition=fun_with_macro_bodies
// CHECK: Punctuation: "(" [21:45 - 21:46] macro definition=fun_with_macro_bodies
// CHECK: Identifier: "x" [21:46 - 21:47] macro definition=fun_with_macro_bodies
// CHECK: Punctuation: ")" [21:47 - 21:48] macro definition=fun_with_macro_bodies
// CHECK: Identifier: "y" [21:49 - 21:50] macro definition=fun_with_macro_bodies
// CHECK: Punctuation: "}" [21:51 - 21:52] macro definition=fun_with_macro_bodies
// CHECK: Keyword: "while" [21:53 - 21:58] macro definition=fun_with_macro_bodies
// CHECK: Punctuation: "(" [21:59 - 21:60] macro definition=fun_with_macro_bodies
// CHECK: Literal: "0" [21:60 - 21:61] macro definition=fun_with_macro_bodies
// CHECK: Punctuation: ")" [21:61 - 21:62] macro definition=fun_with_macro_bodies
// CHECK: Keyword: "void" [23:1 - 23:5] FunctionDecl=test:23:6 (Definition)
// CHECK: Identifier: "test" [23:6 - 23:10] FunctionDecl=test:23:6 (Definition)
// CHECK: Punctuation: "(" [23:10 - 23:11] FunctionDecl=test:23:6 (Definition)
// CHECK: Punctuation: ")" [23:11 - 23:12] FunctionDecl=test:23:6 (Definition)
// CHECK: Punctuation: "{" [23:13 - 23:14] CompoundStmt=
// CHECK: Keyword: "int" [24:3 - 24:6] VarDecl=x:24:7 (Definition)
// CHECK: Identifier: "x" [24:7 - 24:8] VarDecl=x:24:7 (Definition)
// CHECK: Punctuation: "=" [24:9 - 24:10] VarDecl=x:24:7 (Definition)
// CHECK: Literal: "10" [24:11 - 24:13] IntegerLiteral=
// CHECK: Punctuation: ";" [24:13 - 24:14] DeclStmt=
// CHECK: Identifier: "fun_with_macro_bodies" [25:3 - 25:24] macro expansion=fun_with_macro_bodies:21:9
// CHECK: Punctuation: "(" [25:24 - 25:25] CompoundStmt=
// CHECK: Identifier: "x" [25:25 - 25:26] DeclRefExpr=x:24:7
// CHECK: Punctuation: "," [25:26 - 25:27]
// CHECK: Punctuation: "{" [25:28 - 25:29] CompoundStmt=
// CHECK: Keyword: "int" [25:30 - 25:33] VarDecl=z:25:34 (Definition)
// CHECK: Identifier: "z" [25:34 - 25:35] VarDecl=z:25:34 (Definition)
// CHECK: Punctuation: "=" [25:36 - 25:37] VarDecl=z:25:34 (Definition)
// CHECK: Identifier: "x" [25:38 - 25:39] DeclRefExpr=x:24:7
// CHECK: Punctuation: ";" [25:39 - 25:40] DeclStmt=
// CHECK: Punctuation: "++" [25:41 - 25:43] UnaryOperator=
// CHECK: Identifier: "z" [25:43 - 25:44] DeclRefExpr=z:25:3
// CHECK: Punctuation: ";" [25:44 - 25:45] CompoundStmt=
// CHECK: Punctuation: "}" [25:46 - 25:47] CompoundStmt=
// FIXME: The token below should really be annotated as "macro expansion=fun_with_macro_bodies:21:9"
// CHECK: Punctuation: ")" [25:47 - 25:48] CompoundStmt=
// CHECK: Punctuation: ";" [25:48 - 25:49] CompoundStmt=
// CHECK: Punctuation: "}" [26:1 - 26:2] CompoundStmt=
// CHECK: {{28:1.*inclusion directive=pragma-once.h.*multi-include guarded}}
// CHECK: {{29:1.*inclusion directive=guarded.h.*multi-include guarded}}
// CHECK: Identifier: "__FILE__" [31:21 - 31:29] macro expansion=__FILE__
// CHECK: Punctuation: "#" [35:1 - 35:2] preprocessing directive=
// CHECK: Identifier: "ifdef" [35:2 - 35:7] preprocessing directive=
// CHECK: Identifier: "SOME_MACRO" [35:8 - 35:18] macro expansion=SOME_MACRO:33:9
// CHECK: Punctuation: "#" [36:1 - 36:2] preprocessing directive=
// CHECK: Identifier: "endif" [36:2 - 36:7] preprocessing directive=
// CHECK: Keyword: "struct" [38:1 - 38:7] StructDecl=A:38:8 (Definition)
// CHECK: Identifier: "A" [38:8 - 38:9] StructDecl=A:38:8 (Definition)
// CHECK: Punctuation: "{" [39:1 - 39:2] StructDecl=A:38:8 (Definition)
// CHECK: Punctuation: "#" [40:1 - 40:2] preprocessing directive=
// CHECK: Identifier: "ifdef" [40:2 - 40:7] preprocessing directive=
// CHECK: Identifier: "SOME_MACRO" [40:8 - 40:18] macro expansion=SOME_MACRO:33:9
// CHECK: Keyword: "int" [41:3 - 41:6] FieldDecl=x:41:7 (Definition)
// CHECK: Identifier: "x" [41:7 - 41:8] FieldDecl=x:41:7 (Definition)
// CHECK: Punctuation: ";" [41:8 - 41:9] StructDecl=A:38:8 (Definition)
// CHECK: Punctuation: "#" [42:1 - 42:2] preprocessing directive=
// CHECK: Identifier: "endif" [42:2 - 42:7] preprocessing directive=
// CHECK: Punctuation: "}" [43:1 - 43:2] StructDecl=A:38:8 (Definition)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/pch-with-errors.c
|
#ifndef HEADER
#define HEADER
#include "blahblah.h"
void erroneous(int);
void erroneous(float);
struct bar;
struct zed {
bar g;
};
struct baz {
zed h;
};
void errparm(zed e);
struct S {
{
;
#else
void foo(void) {
erroneous(0);
}
#endif
// RUN: c-index-test -write-pch %t.h.pch %s -Xclang -detailed-preprocessing-record
// RUN: c-index-test -test-load-source local %s -include %t.h -Xclang -detailed-preprocessing-record | FileCheck -check-prefix=CHECK-PARSE %s
// RUN: c-index-test -index-file %s -include %t.h -Xclang -detailed-preprocessing-record | FileCheck -check-prefix=CHECK-INDEX %s
// CHECK-PARSE: pch-with-errors.c:{{.*}}:6: FunctionDecl=foo
// CHECK-PARSE: pch-with-errors.c:{{.*}}:3: CallExpr=erroneous
// CHECK-INDEX: [indexDeclaration]: kind: function | name: foo
// CHECK-INDEX: [indexEntityReference]: kind: function | name: erroneous
// RUN: not %clang -fsyntax-only %s -include %t.h 2>&1 | FileCheck -check-prefix=PCH-ERR %s
// PCH-ERR: error: PCH file contains compiler errors
// RUN: not c-index-test -write-pch %t.pch foobar.c 2>&1 | FileCheck -check-prefix=NONEXISTENT %s
// NONEXISTENT: Unable to load translation unit
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Index/comment-with-preamble.c
|
// Make sure the preable does not truncate comments.
#ifndef BAZ
#define BAZ 3
#endif
//! Foo’s description.
void Foo();
// RUN: c-index-test -test-load-source-reparse 1 local %s | FileCheck %s
// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 1 local %s | FileCheck %s
// CHECK: FunctionDecl=Foo:8:6 RawComment=[//! Foo’s description.] RawCommentRange=[7:1 - 7:25] BriefComment=[Foo’s description.]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.