From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/Index/Inputs/Headers/a.h | 2 ++ clang/test/Index/Inputs/Headers/a_extensions.h | 1 + clang/test/Index/Inputs/Headers/crash.h | 6 ++++++ clang/test/Index/Inputs/Headers/module.map | 10 ++++++++++ clang/test/Index/Inputs/Headers/nested/module.map | 4 ++++ clang/test/Index/Inputs/Headers/nested/nested.h | 1 + 6 files changed, 24 insertions(+) create mode 100644 clang/test/Index/Inputs/Headers/a.h create mode 100644 clang/test/Index/Inputs/Headers/a_extensions.h create mode 100644 clang/test/Index/Inputs/Headers/crash.h create mode 100644 clang/test/Index/Inputs/Headers/module.map create mode 100644 clang/test/Index/Inputs/Headers/nested/module.map create mode 100644 clang/test/Index/Inputs/Headers/nested/nested.h (limited to 'clang/test/Index/Inputs/Headers') diff --git a/clang/test/Index/Inputs/Headers/a.h b/clang/test/Index/Inputs/Headers/a.h new file mode 100644 index 0000000..33c3417 --- /dev/null +++ b/clang/test/Index/Inputs/Headers/a.h @@ -0,0 +1,2 @@ +int *getA(); + diff --git a/clang/test/Index/Inputs/Headers/a_extensions.h b/clang/test/Index/Inputs/Headers/a_extensions.h new file mode 100644 index 0000000..2155787 --- /dev/null +++ b/clang/test/Index/Inputs/Headers/a_extensions.h @@ -0,0 +1 @@ +int *getAExtensions(); diff --git a/clang/test/Index/Inputs/Headers/crash.h b/clang/test/Index/Inputs/Headers/crash.h new file mode 100644 index 0000000..238359a --- /dev/null +++ b/clang/test/Index/Inputs/Headers/crash.h @@ -0,0 +1,6 @@ +// Produce a crash if CRASH is defined. +#ifdef CRASH +# pragma clang __debug crash +#endif + +const char *getCrashString(); diff --git a/clang/test/Index/Inputs/Headers/module.map b/clang/test/Index/Inputs/Headers/module.map new file mode 100644 index 0000000..55f8eb7 --- /dev/null +++ b/clang/test/Index/Inputs/Headers/module.map @@ -0,0 +1,10 @@ +module LibA { + header "a.h" + module Extensions { + header "a_extensions.h" + } +} + +module Crash { + header "crash.h" +} diff --git a/clang/test/Index/Inputs/Headers/nested/module.map b/clang/test/Index/Inputs/Headers/nested/module.map new file mode 100644 index 0000000..bd239f1 --- /dev/null +++ b/clang/test/Index/Inputs/Headers/nested/module.map @@ -0,0 +1,4 @@ +module nested { + header "nested.h" +} + diff --git a/clang/test/Index/Inputs/Headers/nested/nested.h b/clang/test/Index/Inputs/Headers/nested/nested.h new file mode 100644 index 0000000..01716d1 --- /dev/null +++ b/clang/test/Index/Inputs/Headers/nested/nested.h @@ -0,0 +1 @@ +int *getNested(); -- cgit v1.2.3