├── test ├── PCH │ ├── pchpch1.h │ ├── pchpch2.h │ ├── Inputs │ │ ├── chain-trivial1.h │ │ ├── chain-trivial2.h │ │ ├── badpch-dir.h.gch │ │ │ └── .keep │ │ ├── badpch-empty.h.gch │ │ ├── preamble.h │ │ ├── va_arg.h │ │ ├── chain-macro1.h │ │ ├── chain-macro2.h │ │ ├── typo.h │ │ ├── case-insensitive-include.h │ │ ├── working-directory-1.h │ │ ├── chain-remap-types2.h │ │ ├── cxx-method.h │ │ ├── chain-macro-override2.h │ │ ├── chain-ext_vector1.h │ │ ├── chain-ext_vector2.h │ │ ├── chain-remap-types1.h │ │ ├── __va_list_tag.h │ │ ├── chain-decls1.h │ │ ├── typo.hpp │ │ └── chain-macro-override1.h │ ├── reinclude2.h │ ├── cmdline-include1.h │ ├── cmdline-include2.h │ ├── modified-header-crash.h │ ├── remap-file-from-pch.cpp.h │ ├── line-directive.h │ ├── target-options.h │ ├── working-directory.h │ ├── fuzzy-pch.h │ ├── cxx-functions.h │ ├── headermap.h │ ├── pch__VA_ARGS__.h │ ├── builtins.h │ ├── cxx-typeid.h │ ├── pch-dir.h │ ├── remap-file-from-pch.cpp.remap.h │ ├── chain-predecl.h │ ├── reinclude1.h │ ├── objc_import.h │ ├── cxx-namespaces.h │ ├── tentative-defs.h │ ├── cxx-offsetof-base.cpp │ ├── pragma-weak.h │ ├── preprocess.h │ ├── nonvisible-external-defs.h │ ├── cxx-offsetof-base.h │ ├── multiple_decls.h │ └── ext_vector.h ├── Index │ ├── include_test_2.h │ ├── Inputs │ │ ├── b.h │ │ ├── preamble-reparse-1.c │ │ ├── Headers │ │ │ ├── a.h │ │ │ ├── nested │ │ │ │ ├── nested.h │ │ │ │ └── module.map │ │ │ ├── a_extensions.h │ │ │ ├── crash.h │ │ │ └── module.map │ │ ├── preamble-reparse-2.c │ │ ├── cindex-from-source.h │ │ ├── lit.local.cfg │ │ ├── Frameworks │ │ │ ├── module.map │ │ │ └── Framework.framework │ │ │ │ └── Headers │ │ │ │ └── Framework.h │ │ ├── pragma-once.h │ │ ├── annotate-comments-preprocessor.h │ │ ├── a.h │ │ ├── prefix.h │ │ ├── pragma_disable_warning.h │ │ ├── remap-load-to.c │ │ ├── get-cursor-includes-2.h │ │ ├── guarded.h │ │ ├── preamble.h │ │ ├── remap-complete-to.c │ │ ├── foo.h │ │ ├── preamble_macro_template.h │ │ ├── c-index-pch.h │ │ ├── CommentXML │ │ │ ├── valid-class-01.xml │ │ │ ├── valid-enum-01.xml │ │ │ ├── valid-other-01.xml │ │ │ ├── valid-function-01.xml │ │ │ ├── valid-typedef-01.xml │ │ │ ├── valid-variable-01.xml │ │ │ ├── valid-namespace-01.xml │ │ │ ├── valid-class-02.xml │ │ │ ├── valid-class-03.xml │ │ │ ├── invalid-function-06.xml │ │ │ ├── invalid-function-12.xml │ │ │ ├── valid-class-04.xml │ │ │ ├── valid-function-09.xml │ │ │ └── valid-function-10.xml │ │ ├── get-cursor-includes-1.h │ │ ├── crash-recovery-reparse-remap.c │ │ └── retain-comments-from-system-headers.h │ ├── annotate-tokens-include.h │ ├── include_test.h │ ├── preamble-reparse-cmd-define.c.h │ ├── targeted-fields.h │ ├── targeted-nested1.h │ ├── targeted-preamble.h │ ├── index-suppress-refs.hpp │ ├── preamble-reparse-import.m-3.h │ ├── annotate-tokens-with-default-args.h │ ├── complete-preamble.h │ ├── getcursor-pp-pch.c.h │ ├── preamble-reparse-import.m-1.h │ ├── preamble-reparse-import.m-2.h │ ├── targeted-cursor.m.h │ ├── index-suppress-refs.h │ ├── preamble-reparse-cmd-define.c.remap │ ├── index-with-working-dir.c │ ├── preamble-reparse-with-BOM.m │ ├── annotate-toplevel-in-objccontainer.m.h │ ├── index-kernel-invocation.cpp │ └── unmatched-braces.c ├── Tooling │ ├── Inputs │ │ ├── pch.cpp │ │ ├── pch.h │ │ ├── pch-fail.h │ │ └── lit.local.cfg │ └── clang-check-args.cpp ├── Driver │ ├── Inputs │ │ ├── B_opt_tree │ │ │ ├── dir1 │ │ │ │ ├── ld │ │ │ │ └── i386-unknown-linux-ld │ │ │ ├── dir2 │ │ │ │ └── ld │ │ │ └── dir3 │ │ │ │ └── prefix-ld │ │ ├── basic_freebsd_tree │ │ │ ├── lib │ │ │ │ └── .keep │ │ │ └── usr │ │ │ │ ├── lib │ │ │ │ ├── .keep │ │ │ │ └── crt1.o │ │ │ │ └── lib32 │ │ │ │ └── .keep │ │ ├── basic_linux_tree │ │ │ ├── lib │ │ │ │ └── .keep │ │ │ └── usr │ │ │ │ ├── lib │ │ │ │ ├── .keep │ │ │ │ └── gcc │ │ │ │ │ ├── i386-unknown-linux │ │ │ │ │ └── 4.6.0 │ │ │ │ │ │ └── crtbegin.o │ │ │ │ │ └── x86_64-unknown-linux │ │ │ │ │ └── 4.6.0 │ │ │ │ │ ├── crtbegin.o │ │ │ │ │ └── crtfastmath.o │ │ │ │ ├── i386-unknown-linux │ │ │ │ └── lib │ │ │ │ │ └── .keep │ │ │ │ └── x86_64-unknown-linux │ │ │ │ └── lib │ │ │ │ └── .keep │ │ ├── debian_6_mips_tree │ │ │ ├── lib │ │ │ │ └── .keep │ │ │ ├── lib32 │ │ │ │ └── .keep │ │ │ ├── lib64 │ │ │ │ └── .keep │ │ │ └── usr │ │ │ │ ├── lib │ │ │ │ ├── crt1.o │ │ │ │ ├── crti.o │ │ │ │ └── gcc │ │ │ │ │ └── mipsel-linux-gnu │ │ │ │ │ └── 4.4 │ │ │ │ │ ├── 64 │ │ │ │ │ └── crtbegin.o │ │ │ │ │ ├── crtbegin.o │ │ │ │ │ └── n32 │ │ │ │ │ └── crtbegin.o │ │ │ │ ├── lib32 │ │ │ │ ├── crt1.o │ │ │ │ └── crti.o │ │ │ │ └── lib64 │ │ │ │ ├── crt1.o │ │ │ │ └── crti.o │ │ ├── fake_install_tree │ │ │ ├── bin │ │ │ │ └── .keep │ │ │ └── lib │ │ │ │ └── gcc │ │ │ │ ├── i386-unknown-linux │ │ │ │ └── 4.7.0 │ │ │ │ │ └── crtbegin.o │ │ │ │ └── x86_64-unknown-linux │ │ │ │ └── 4.5.0 │ │ │ │ └── crtbegin.o │ │ ├── freescale_ppc_tree │ │ │ ├── lib │ │ │ │ └── .keep │ │ │ └── usr │ │ │ │ └── lib │ │ │ │ ├── crt1.o │ │ │ │ ├── crti.o │ │ │ │ ├── crtn.o │ │ │ │ └── powerpc-fsl-linux │ │ │ │ └── 4.6.2 │ │ │ │ ├── crtend.o │ │ │ │ └── crtbegin.o │ │ ├── basic_freebsd64_tree │ │ │ ├── lib │ │ │ │ └── .keep │ │ │ └── usr │ │ │ │ ├── lib │ │ │ │ ├── .keep │ │ │ │ └── crt1.o │ │ │ │ └── lib32 │ │ │ │ └── .keep │ │ ├── debian_multiarch_tree │ │ │ ├── lib │ │ │ │ ├── .keep │ │ │ │ ├── i386-linux-gnu │ │ │ │ │ └── .keep │ │ │ │ ├── mips-linux-gnu │ │ │ │ │ └── .keep │ │ │ │ ├── mipsel-linux-gnu │ │ │ │ │ └── .keep │ │ │ │ ├── powerpc-linux-gnu │ │ │ │ │ └── .keep │ │ │ │ ├── x86_64-linux-gnu │ │ │ │ │ └── .keep │ │ │ │ └── powerpc64-linux-gnu │ │ │ │ │ └── .keep │ │ │ └── usr │ │ │ │ ├── include │ │ │ │ ├── .keep │ │ │ │ ├── c++ │ │ │ │ │ └── 4.5 │ │ │ │ │ │ ├── .keep │ │ │ │ │ │ ├── backward │ │ │ │ │ │ └── .keep │ │ │ │ │ │ ├── i686-linux-gnu │ │ │ │ │ │ └── .keep │ │ │ │ │ │ ├── mips-linux-gnu │ │ │ │ │ │ └── .keep │ │ │ │ │ │ ├── mipsel-linux-gnu │ │ │ │ │ │ └── .keep │ │ │ │ │ │ ├── x86_64-linux-gnu │ │ │ │ │ │ └── .keep │ │ │ │ │ │ ├── powerpc-linux-gnu │ │ │ │ │ │ └── .keep │ │ │ │ │ │ └── powerpc64-linux-gnu │ │ │ │ │ │ └── .keep │ │ │ │ ├── i386-linux-gnu │ │ │ │ │ └── .keep │ │ │ │ ├── mips-linux-gnu │ │ │ │ │ └── .keep │ │ │ │ ├── mipsel-linux-gnu │ │ │ │ │ └── .keep │ │ │ │ ├── powerpc-linux-gnu │ │ │ │ │ └── .keep │ │ │ │ ├── powerpc64-linux-gnu │ │ │ │ │ └── .keep │ │ │ │ └── x86_64-linux-gnu │ │ │ │ │ └── .keep │ │ │ │ └── lib │ │ │ │ ├── .keep │ │ │ │ ├── i386-linux-gnu │ │ │ │ └── .keep │ │ │ │ ├── mips-linux-gnu │ │ │ │ └── .keep │ │ │ │ ├── mipsel-linux-gnu │ │ │ │ └── .keep │ │ │ │ ├── powerpc-linux-gnu │ │ │ │ └── .keep │ │ │ │ ├── x86_64-linux-gnu │ │ │ │ └── .keep │ │ │ │ ├── powerpc64-linux-gnu │ │ │ │ └── .keep │ │ │ │ └── gcc │ │ │ │ ├── i686-linux-gnu │ │ │ │ └── 4.5 │ │ │ │ │ └── crtbegin.o │ │ │ │ ├── mips-linux-gnu │ │ │ │ └── 4.5 │ │ │ │ │ ├── 64 │ │ │ │ │ └── crtbegin.o │ │ │ │ │ ├── crtbegin.o │ │ │ │ │ └── n32 │ │ │ │ │ └── crtbegin.o │ │ │ │ ├── mipsel-linux-gnu │ │ │ │ └── 4.5 │ │ │ │ │ ├── 64 │ │ │ │ │ └── crtbegin.o │ │ │ │ │ ├── crtbegin.o │ │ │ │ │ └── n32 │ │ │ │ │ └── crtbegin.o │ │ │ │ ├── powerpc-linux-gnu │ │ │ │ └── 4.5 │ │ │ │ │ └── crtbegin.o │ │ │ │ ├── powerpc64-linux-gnu │ │ │ │ └── 4.5 │ │ │ │ │ └── crtbegin.o │ │ │ │ └── x86_64-linux-gnu │ │ │ │ └── 4.5 │ │ │ │ └── crtbegin.o │ │ ├── freescale_ppc64_tree │ │ │ ├── lib64 │ │ │ │ └── .keep │ │ │ └── usr │ │ │ │ └── lib64 │ │ │ │ ├── crt1.o │ │ │ │ ├── crti.o │ │ │ │ ├── crtn.o │ │ │ │ └── powerpc64-fsl-linux │ │ │ │ └── 4.6.2 │ │ │ │ ├── crtbegin.o │ │ │ │ └── crtend.o │ │ ├── gcc_version_parsing1 │ │ │ ├── bin │ │ │ │ └── .keep │ │ │ └── lib │ │ │ │ └── gcc │ │ │ │ └── i386-unknown-linux │ │ │ │ ├── 4.6 │ │ │ │ └── crtbegin.o │ │ │ │ ├── 4.7.0 │ │ │ │ └── crtbegin.o │ │ │ │ ├── 4.7.1 │ │ │ │ └── crtbegin.o │ │ │ │ ├── 4.7 │ │ │ │ └── crtbegin.o │ │ │ │ └── 4.6.99 │ │ │ │ └── crtbegin.o │ │ ├── gcc_version_parsing2 │ │ │ ├── bin │ │ │ │ └── .keep │ │ │ └── lib │ │ │ │ └── gcc │ │ │ │ └── i386-unknown-linux │ │ │ │ ├── 4.6.x │ │ │ │ └── crtbegin.o │ │ │ │ ├── 4.7.0 │ │ │ │ └── crtbegin.o │ │ │ │ ├── 4.7.1 │ │ │ │ └── crtbegin.o │ │ │ │ ├── 4.7.x │ │ │ │ └── crtbegin.o │ │ │ │ └── 4.6.99 │ │ │ │ └── crtbegin.o │ │ ├── gcc_version_parsing3 │ │ │ ├── bin │ │ │ │ └── .keep │ │ │ └── lib │ │ │ │ └── gcc │ │ │ │ └── i386-unknown-linux │ │ │ │ ├── 4.7.98 │ │ │ │ └── crtbegin.o │ │ │ │ └── 4.7.99-rc5 │ │ │ │ └── crtbegin.o │ │ ├── gcc_version_parsing4 │ │ │ ├── bin │ │ │ │ └── .keep │ │ │ └── lib │ │ │ │ └── gcc │ │ │ │ └── i386-unknown-linux │ │ │ │ ├── 4.7.98 │ │ │ │ └── crtbegin.o │ │ │ │ ├── 4.7.99-rc5 │ │ │ │ └── crtbegin.o │ │ │ │ └── 4.7.99 │ │ │ │ └── crtbegin.o │ │ ├── multiarch_freebsd64_tree │ │ │ ├── lib │ │ │ │ └── .keep │ │ │ └── usr │ │ │ │ ├── lib │ │ │ │ ├── .keep │ │ │ │ └── crt1.o │ │ │ │ └── lib32 │ │ │ │ ├── .keep │ │ │ │ └── crt1.o │ │ ├── suse_10.3_ppc64_tree │ │ │ ├── lib │ │ │ │ └── .keep │ │ │ ├── lib64 │ │ │ │ └── .keep │ │ │ └── usr │ │ │ │ ├── lib64 │ │ │ │ └── .keep │ │ │ │ └── lib │ │ │ │ └── gcc │ │ │ │ └── powerpc64-suse-linux │ │ │ │ └── 4.1.2 │ │ │ │ ├── 64 │ │ │ │ └── crtbegin.o │ │ │ │ └── crtbegin.o │ │ ├── multilib_32bit_linux_tree │ │ │ ├── lib │ │ │ │ └── .keep │ │ │ ├── lib32 │ │ │ │ └── .keep │ │ │ ├── lib64 │ │ │ │ └── .keep │ │ │ └── usr │ │ │ │ ├── lib │ │ │ │ ├── .keep │ │ │ │ └── gcc │ │ │ │ │ └── i386-unknown-linux │ │ │ │ │ └── 4.6.0 │ │ │ │ │ ├── 64 │ │ │ │ │ └── crtbegin.o │ │ │ │ │ └── crtbegin.o │ │ │ │ ├── lib32 │ │ │ │ └── .keep │ │ │ │ ├── lib64 │ │ │ │ └── .keep │ │ │ │ └── i386-unknown-linux │ │ │ │ ├── lib │ │ │ │ └── .keep │ │ │ │ ├── lib32 │ │ │ │ └── .keep │ │ │ │ └── lib64 │ │ │ │ └── .keep │ │ ├── multilib_64bit_linux_tree │ │ │ ├── lib │ │ │ │ └── .keep │ │ │ ├── lib32 │ │ │ │ └── .keep │ │ │ ├── lib64 │ │ │ │ └── .keep │ │ │ └── usr │ │ │ │ ├── lib │ │ │ │ ├── .keep │ │ │ │ └── gcc │ │ │ │ │ └── x86_64-unknown-linux │ │ │ │ │ └── 4.6.0 │ │ │ │ │ ├── 32 │ │ │ │ │ └── crtbegin.o │ │ │ │ │ └── crtbegin.o │ │ │ │ ├── lib32 │ │ │ │ └── .keep │ │ │ │ ├── lib64 │ │ │ │ └── .keep │ │ │ │ └── x86_64-unknown-linux │ │ │ │ ├── lib │ │ │ │ └── .keep │ │ │ │ ├── lib32 │ │ │ │ └── .keep │ │ │ │ └── lib64 │ │ │ │ └── .keep │ │ ├── ubuntu_11.04_multiarch_tree │ │ │ ├── lib │ │ │ │ ├── .keep │ │ │ │ └── i386-linux-gnu │ │ │ │ │ └── .keep │ │ │ └── usr │ │ │ │ ├── lib │ │ │ │ ├── .keep │ │ │ │ └── i386-linux-gnu │ │ │ │ │ ├── .keep │ │ │ │ │ └── gcc │ │ │ │ │ └── i686-linux-gnu │ │ │ │ │ └── 4.5 │ │ │ │ │ └── crtbegin.o │ │ │ │ └── include │ │ │ │ ├── .keep │ │ │ │ ├── c++ │ │ │ │ └── 4.5 │ │ │ │ │ ├── .keep │ │ │ │ │ ├── backward │ │ │ │ │ └── .keep │ │ │ │ │ └── i686-linux-gnu │ │ │ │ │ └── .keep │ │ │ │ └── i386-linux-gnu │ │ │ │ └── .keep │ │ ├── ubuntu_12.04_LTS_multiarch_tree │ │ │ ├── lib │ │ │ │ ├── .keep │ │ │ │ ├── arm-linux-gnueabi │ │ │ │ │ └── .keep │ │ │ │ └── arm-linux-gnueabihf │ │ │ │ │ └── .keep │ │ │ └── usr │ │ │ │ ├── include │ │ │ │ ├── .keep │ │ │ │ ├── arm-linux-gnueabi │ │ │ │ │ └── .keep │ │ │ │ └── arm-linux-gnueabihf │ │ │ │ │ └── .keep │ │ │ │ └── lib │ │ │ │ ├── .keep │ │ │ │ ├── arm-linux-gnueabi │ │ │ │ ├── crt1.o │ │ │ │ ├── crti.o │ │ │ │ └── crtn.o │ │ │ │ ├── arm-linux-gnueabihf │ │ │ │ ├── crt1.o │ │ │ │ ├── crti.o │ │ │ │ └── crtn.o │ │ │ │ └── gcc │ │ │ │ ├── arm-linux-gnueabi │ │ │ │ └── 4.6.1 │ │ │ │ │ ├── crtbegin.o │ │ │ │ │ └── crtend.o │ │ │ │ └── arm-linux-gnueabihf │ │ │ │ └── 4.6.3 │ │ │ │ ├── crtend.o │ │ │ │ └── crtbegin.o │ │ ├── basic_android_tree │ │ │ ├── mipsel-linux-android │ │ │ │ ├── bin │ │ │ │ │ └── .keep │ │ │ │ ├── lib │ │ │ │ │ └── .keep │ │ │ │ └── include │ │ │ │ │ └── c++ │ │ │ │ │ └── 4.4.3 │ │ │ │ │ └── .keep │ │ │ ├── sysroot │ │ │ │ └── usr │ │ │ │ │ └── lib │ │ │ │ │ ├── crtbegin_so.o │ │ │ │ │ ├── crtend_so.o │ │ │ │ │ ├── crtbegin_dynamic.o │ │ │ │ │ ├── crtbegin_static.o │ │ │ │ │ └── crtend_android.o │ │ │ ├── arm-linux-androideabi │ │ │ │ ├── bin │ │ │ │ │ └── .keep │ │ │ │ ├── lib │ │ │ │ │ └── .keep │ │ │ │ └── include │ │ │ │ │ └── c++ │ │ │ │ │ └── 4.4.3 │ │ │ │ │ └── .keep │ │ │ └── lib │ │ │ │ └── gcc │ │ │ │ ├── arm-linux-androideabi │ │ │ │ └── 4.4.3 │ │ │ │ │ ├── crtend.o │ │ │ │ │ ├── crtendS.o │ │ │ │ │ ├── crtbegin.o │ │ │ │ │ ├── crtbeginS.o │ │ │ │ │ └── crtbeginT.o │ │ │ │ └── mipsel-linux-android │ │ │ │ └── 4.4.3 │ │ │ │ ├── crtbegin.o │ │ │ │ ├── crtend.o │ │ │ │ ├── crtendS.o │ │ │ │ ├── crtbeginS.o │ │ │ │ ├── crtbeginT.o │ │ │ │ └── mips-r2 │ │ │ │ ├── crtbegin.o │ │ │ │ ├── crtbeginS.o │ │ │ │ ├── crtbeginT.o │ │ │ │ ├── crtend.o │ │ │ │ └── crtendS.o │ │ ├── prefixed_tools_tree │ │ │ ├── x86_64--linux-as │ │ │ └── x86_64--linux-ld │ │ └── montavista_i686_tree │ │ │ └── usr │ │ │ └── lib │ │ │ └── gcc │ │ │ └── i686-montavista-linux │ │ │ └── 4.2.0 │ │ │ ├── libgcc.a │ │ │ └── crtbegin.o │ ├── clang_f_opts.h │ ├── preprocessor.c │ ├── redundant-args.c │ ├── working-directory-and-abs.c │ ├── m_and_mm.c │ ├── noexecstack.c │ ├── nostdincxx.cpp │ ├── nostdlib.c │ ├── unknown-arg.c │ ├── invalid-o-level.c │ ├── arch.c │ ├── clang_cpp.c │ └── mg.c ├── ASTMerge │ └── Inputs │ │ ├── var1.h │ │ ├── lit.local.cfg │ │ ├── typedef1.c │ │ ├── typedef2.c │ │ ├── class2.cpp │ │ ├── var2.c │ │ ├── var1.c │ │ ├── function1.c │ │ └── function2.c ├── Frontend │ ├── Inputs │ │ ├── test2.h │ │ ├── test3.h │ │ ├── test.h │ │ ├── lit.local.cfg │ │ ├── rewrite-includes2.h │ │ ├── rewrite-includes3.h │ │ ├── rewrite-includes4.h │ │ ├── rewrite-includes5.h │ │ ├── SystemHeaderPrefix │ │ │ ├── src │ │ │ │ ├── warn.h │ │ │ │ └── all.h │ │ │ └── libs │ │ │ │ ├── boost │ │ │ │ ├── all.h │ │ │ │ └── warn.h │ │ │ │ └── mylib │ │ │ │ ├── all.h │ │ │ │ └── warn.h │ │ ├── rewrite-includes6.h │ │ ├── TestFramework.framework │ │ │ └── Headers │ │ │ │ └── TestFramework.h │ │ ├── rewrite-includes1.h │ │ └── rewrite-includes7.h │ ├── lit.local.cfg │ ├── stdin.c │ ├── verify2.h │ ├── verify-directive.h │ ├── undef.c │ ├── dependency-generation-crash.c │ ├── iframework.c │ └── unknown-pragmas.c ├── Modules │ └── Inputs │ │ ├── decl2.h │ │ ├── Modified │ │ ├── A.h │ │ ├── B.h │ │ └── module.map │ │ ├── import-decl.h │ │ ├── load_failure.h │ │ ├── normal-module-map │ │ ├── a1.h │ │ ├── a2.h │ │ ├── b1.h │ │ ├── nested │ │ │ ├── nested1.h │ │ │ ├── nested2.h │ │ │ └── module.map │ │ ├── nested_umbrella │ │ │ ├── 1.h │ │ │ ├── a-extras.h │ │ │ ├── a.h │ │ │ ├── b.h │ │ │ └── decltype.h │ │ ├── Umbrella2 │ │ │ ├── Umbrella2.h │ │ │ └── module.map │ │ └── Umbrella │ │ │ ├── umbrella_sub.h │ │ │ ├── Umbrella.h │ │ │ └── module.map │ │ ├── decl.h │ │ ├── macros_other.h │ │ ├── macros_right_undef.h │ │ ├── point.h │ │ ├── redeclarations_left.h │ │ ├── subdir │ │ ├── subdir.h │ │ └── module.map │ │ ├── wildcard-submodule-exports │ │ ├── A_one.h │ │ ├── B_one.h │ │ ├── A_two.h │ │ ├── B_two.h │ │ ├── C_one.h │ │ └── C_two.h │ │ ├── Module.framework │ │ ├── Headers │ │ │ ├── Sub2.h │ │ │ ├── NotInModule.h │ │ │ ├── Buried │ │ │ │ └── Treasure.h │ │ │ └── Sub.h │ │ └── PrivateHeaders │ │ │ └── ModulePrivate.h │ │ ├── NoUmbrella.framework │ │ ├── Headers │ │ │ ├── B.h │ │ │ ├── Boom.h │ │ │ └── SubDir │ │ │ │ └── C.h │ │ ├── PrivateHeaders │ │ │ ├── A_Private.h │ │ │ └── B_Private.h │ │ ├── module_private.map │ │ └── module.map │ │ ├── lookup_left.h │ │ ├── redeclarations_right.h │ │ ├── diamond.h │ │ ├── irgen.h │ │ ├── redecl_namespaces_left.h │ │ ├── redecl_namespaces_right.h │ │ ├── diamond_top.h │ │ ├── lookup_right.h │ │ ├── lookup_right.hpp │ │ ├── DependsOnModule.framework │ │ ├── Headers │ │ │ ├── other.h │ │ │ └── cxx_other.h │ │ ├── Frameworks │ │ │ └── SubFramework.framework │ │ │ │ └── Headers │ │ │ │ ├── Other.h │ │ │ │ └── SubFramework.h │ │ ├── PrivateHeaders │ │ │ └── DependsOnModulePrivate.h │ │ └── module_private.map │ │ ├── NotAModule.framework │ │ └── Headers │ │ │ └── NotAModule.h │ │ ├── System │ │ └── usr │ │ │ └── include │ │ │ ├── stdbool.h │ │ │ ├── stdint.h │ │ │ └── stdio.h │ │ ├── submodules │ │ ├── vector.h │ │ ├── hash_map.h │ │ └── module.map │ │ ├── MethodPoolA.h │ │ ├── def-include.h │ │ ├── MutuallyRecursive1.framework │ │ └── Headers │ │ │ └── MutuallyRecursive1.h │ │ ├── category_other.h │ │ ├── def.h │ │ ├── CmdLine.framework │ │ └── Headers │ │ │ └── CmdLine.h │ │ ├── MutuallyRecursive2.framework │ │ └── Headers │ │ │ └── MutuallyRecursive2.h │ │ ├── diamond_bottom.h │ │ ├── MethodPoolB.h │ │ ├── lookup_left.hpp │ │ ├── diamond_right.h │ │ ├── redecl-merge-left-left.h │ │ ├── AlsoDependsOnModule.framework │ │ └── Headers │ │ │ └── AlsoDependsOnModule.h │ │ └── diamond_left.h ├── Parser │ ├── completely-empty-header-file.h │ ├── cxx-bool.cpp │ ├── argument_qualified.c │ ├── c-namespace.c │ ├── cxx-variadic-func.cpp │ ├── argument_scope.c │ ├── objc-missing-impl.m │ ├── parmvardecl_conversion.c │ ├── backtrack-crash.cpp │ ├── compound_literal.c │ ├── expressions.m │ ├── namelookup-bug-1.c │ ├── objcxx-lambda-expressions-neg.mm │ ├── objcxx11-user-defined-literal.mm │ ├── pragma-options.cpp │ ├── bracket-crash.cpp │ ├── CompoundStmtScope.c │ ├── opencl-kernel.cl │ └── recovery.m ├── CodeCompletion │ ├── some_struct.h │ ├── Inputs │ │ └── reserved.h │ ├── truncation.c.h │ └── auto.cpp ├── Misc │ ├── Inputs │ │ ├── working-directory.h │ │ ├── remapped-file-3 │ │ ├── remapped-file │ │ ├── include.h │ │ └── remapped-file-2 │ ├── warn-in-system-header.h │ ├── unprintable.c │ ├── wrong-encoding.c │ ├── wrong-encoding2.c │ ├── emit-html-insert.c │ ├── working-directory.c │ ├── warn-in-system-header.c │ └── predefines.c ├── SemaCXX │ ├── Inputs │ │ ├── lit.local.cfg │ │ └── malloc.h │ ├── decltype-98.cpp │ ├── ms-exception-spec.cpp │ ├── nullptr-98.cpp │ ├── PR8012.cpp │ ├── vla.cpp │ ├── types_compatible_p.cpp │ ├── warn-static-function-inheader.h │ ├── do-while-scope.cpp │ ├── cast-explicit-ctor.cpp │ ├── builtin-exception-spec.cpp │ └── warn-self-comparisons.cpp ├── Coverage │ ├── verbose.c │ ├── html-print.c │ ├── codegen-gnu.m │ └── codegen-next.m ├── Preprocessor │ ├── Inputs │ │ └── TestFramework.framework │ │ │ ├── .system_framework │ │ │ └── Frameworks │ │ │ └── AnotherTestFramework.framework │ │ │ └── Headers │ │ │ └── AnotherTestFramework.h │ ├── function_macro_file.h │ ├── warn-macro-unused.h │ ├── file_to_include.h │ ├── mi_opt2.h │ ├── mi_opt.h │ ├── pr2086.h │ ├── clang_headers.c │ ├── macro_space.c │ ├── pp-record.h │ ├── pragma_sysheader.h │ ├── header_lookup1.c │ ├── print_line_count.c │ ├── missing-system-header.c │ ├── stringize_space2.c │ ├── macro_fn_placemarker.c │ ├── macro_paste_none.c │ ├── function_macro_file.c │ ├── macro_paste_spacing.c │ ├── missing-system-header.h │ ├── dump-options.c │ ├── macro_paste_bcpl_comment.c │ ├── macro_arg_keyword.c │ ├── skipping_unclean.c │ ├── macro_undef.c │ ├── stringize_space.c │ ├── unterminated.c │ ├── dumptokens_phyloc.c │ ├── indent_macro.c │ ├── macro_arg_directive.h │ ├── expr_define_expansion.c │ ├── include-pth.c │ ├── macro_paste_spacing2.c │ ├── _Pragma-physloc.c │ ├── _Pragma-dependency2.c │ ├── include-directive3.c │ ├── macro_expandloc.c │ ├── macro_expandloc2.c │ ├── pr2086.c │ ├── objc-pp.m │ ├── dump-macros-undef.c │ ├── include-macros.c │ ├── cxx_oper_keyword.cpp │ ├── macro_fn_lparen_scan2.c │ └── macro_not_define.c ├── FixIt │ ├── fixit-include.h │ ├── fixit-suffix.c │ └── no-typo.c ├── Analysis │ ├── diagnostics │ │ └── undef-value-callee.h │ ├── html-diags-multifile.h │ └── PR12905.c ├── Lexer │ ├── unknown-char.c │ ├── token-concat.c │ ├── utf-16.c.txt │ ├── token-concat-2.c │ ├── badstring_in_if0.c │ ├── comment-escape.c │ ├── string-literal-encoding.c │ ├── char-literal-encoding-error.c │ ├── clang-keywords.cpp │ ├── cxx0x_keyword.cpp │ ├── msdos-cpm-eof.c │ ├── cxx0x_raw_string_unterminated.cpp │ └── newline-eof-c++11.cpp ├── CodeGen │ ├── weak-global.c │ ├── 2009-03-13-dbg.c │ ├── PR3130-cond-constant.c │ ├── 2003-10-28-ident.c │ ├── 2007-03-26-ZeroWidthBitfield.c │ ├── 2002-12-15-GlobalBoolTest.c │ ├── debug-info-member.c │ ├── unaligned-memcpy.c │ ├── 2007-12-16-AsmNoUnwind.c │ ├── 2007-11-07-AlignedMemcpy.c │ ├── 2007-11-29-ArraySizeFromInitializer.c │ ├── 2009-07-31-DbgDeclare.c │ ├── 2011-03-02-UnionInitializer.c │ ├── extern-block-var.c │ ├── int-to-pointer.c │ ├── pointer-cmp-type.c │ ├── 2002-07-17-StringConstant.c │ ├── 2004-05-21-IncompleteEnum.c │ ├── 2006-09-25-DebugFilename.h │ ├── 2009-07-14-VoidPtr.c │ ├── struct-comma.c │ ├── 2007-05-08-PCH.c │ ├── 2007-08-21-ComplexCst.c │ ├── 2010-03-09-DbgInfo.c │ ├── static-local-union.c │ ├── 2003-08-20-vfork-bug.c │ ├── 2004-02-14-ZeroInitializer.c │ ├── 2006-09-21-IncompleteElementType.c │ ├── 2008-01-24-StructAlignAndBitFields.c │ ├── 2002-09-08-PointerShifts.c │ ├── 2003-11-12-VoidString.c │ ├── 2003-11-13-TypeSafety.c │ ├── 2005-02-20-AggregateSAVEEXPR.c │ ├── 2006-03-17-KnRMismatch.c │ ├── 2007-04-17-ZeroSizeBitFields.c │ ├── 2009-03-01-MallocNoAlias.c │ ├── a15.c │ ├── bool-init.c │ ├── string-literal-unicode-conversion.c │ ├── 2004-05-07-VarArrays.c │ ├── 2005-07-26-UnionInitCrash.c │ ├── 2005-09-20-ComplexConstants.c │ ├── 2007-02-16-VoidPtrDiff.c │ ├── cast.c │ ├── pragma-pack-1.c │ ├── 2002-12-15-GlobalRedefinition.c │ ├── 2004-03-07-ComplexDivEquals.c │ ├── 2007-10-02-VolatileArray.c │ ├── 2007-10-15-VoidPtr.c │ ├── 2008-01-11-ChainConsistency.c │ ├── address-space-cast.c │ ├── boolassign.c │ ├── mcount.c │ ├── 2003-08-20-BadBitfieldRef.c │ ├── 2003-10-06-NegateExprType.c │ ├── 2003-11-20-ComplexDivision.c │ ├── 2003-12-14-ExternInlineSupport.c │ ├── 2005-01-02-PointerDifference.c │ ├── 2007-05-16-EmptyStruct.c │ ├── 2003-08-29-HugeCharConst.c │ ├── 2007-05-11-str-const.c │ ├── 2008-02-26-inline-asm-bug.c │ ├── hidden-visibility.c │ ├── kr-func-promote.c │ ├── 2003-11-16-StaticArrayInit.c │ ├── 2004-02-20-Builtins.c │ ├── 2004-06-08-OpaqueStructArg.c │ ├── 2007-09-14-NegatePointer.c │ ├── 2008-03-26-PackedBitFields.c │ ├── 2008-08-04-void-pointer-arithmetic.c │ ├── enum2.c │ ├── kr-style-block.c │ ├── long-double-x86.c │ ├── static-forward-decl.c │ ├── 2003-01-30-UnionInit.c │ ├── 2007-03-26-BitfieldAfterZeroWidth.c │ ├── 2007-10-30-Volatile.c │ ├── 2008-01-28-PragmaMark.c │ ├── 2008-02-08-bitfield-bug.c │ ├── PR2413-void-address-cast-error.c │ ├── attribute_constructor.c │ ├── builtin-unwind-init.c │ ├── func-decl-cleanup.c │ ├── typedef.c │ ├── 2003-08-17-DeadCodeShortCircuit.c │ ├── 2007-02-04-EmptyStruct.c │ ├── 2008-05-06-CFECrash.c │ ├── 2009-03-22-increment-bitfield.c │ ├── 2010-02-10-PointerName.c │ ├── attr-noinline.c │ ├── sret2.c │ ├── struct-copy.c │ ├── 2002-10-12-TooManyArguments.c │ ├── 2003-03-03-DeferredType.c │ ├── 2003-11-01-GlobalUnionInit.c │ ├── 2007-03-01-VarSizeArrayIdx.c │ ├── 2010-01-14-FnType-DebugInfo.c │ ├── 2010-08-10-DbgConstant.c │ ├── PR3709-int-to-pointer-sign.c │ ├── attr-cleanup.c │ ├── pr13168.c │ ├── weak-incomplete.c │ ├── writable-strings.c │ ├── 2002-12-15-GlobalConstantTest.c │ ├── 2003-06-23-GCC-fold-infinite-recursion.c │ ├── 2005-05-10-GlobalUnionInit.c │ ├── 2007-07-29-RestrictPtrArg.c │ ├── OpaqueStruct.c │ ├── darwin-thread-specifier.c │ ├── 2005-07-28-IncorrectWeakGlobal.c │ ├── 2007-02-07-AddrLabel.c │ ├── 2007-04-11-InlineAsmUnion.c │ ├── 2007-04-24-bit-not-expr.c │ ├── address-space-compound-literal.c │ ├── 2005-03-11-Prefetch.c │ ├── 2010-06-11-SaveExpr.c │ ├── PR2643-null-store-to-bitfield.c │ ├── debug-info-static.c │ ├── exact-div-expr.c │ ├── redef-ext-inline.c │ ├── 2005-09-24-AsmUserPrefix.c │ ├── 2008-08-19-cast-of-typedef.c │ ├── 2009-06-14-HighlyAligned.c │ ├── builtin-rename.c │ ├── lineno-dbginfo.c │ └── pascal-string.c ├── SemaObjC │ ├── nonnull.h │ ├── cocoa.m │ ├── class-protocol.m │ ├── method-no-context.m │ ├── builtin_objc_msgSend.m │ └── compound-init.m ├── ARCMT │ ├── Inputs │ │ ├── test1.m.in.result │ │ ├── test2.m.in.result │ │ ├── test1.m.in │ │ └── test2.m.in │ ├── with space │ │ ├── test1.m.in.result │ │ ├── test2.m.in.result │ │ ├── test1.m.in │ │ └── test2.m.in │ └── GC.h ├── Sema │ ├── text-diag.c │ ├── carbon.c │ ├── arg-scope-c99.c │ ├── default1.c │ ├── ast-print.c │ ├── Inputs │ │ └── pragma-arc-cf-code-audited.h │ ├── arg-scope.c │ ├── implicit-builtin-freestanding.c │ ├── invalid-init-diag.c │ ├── warn-gnu-designators.c │ ├── block-return-3.c │ ├── default.c │ ├── 2009-07-17-VoidParameter.c │ ├── gnu89.c │ ├── implicit-def.c │ ├── const-ptr-int-ptr-cast.c │ ├── implicit-cast.c │ ├── unnamed-bitfield-init.c │ ├── warn-missing-braces.c │ ├── return-silent.c │ └── block-return-1.c ├── CodeGenCXX │ ├── PR4827-cast.cpp │ ├── array-pointer-decay.cpp │ ├── unary-type-trait.cpp │ ├── debug-info-member.cpp │ ├── 2009-07-16-Using.cpp │ ├── debug-info-method.cpp │ ├── debug-info-wchar.cpp │ ├── eval-recursive-constant.cpp │ ├── virtual-inherited-destructor.cpp │ ├── 2008-01-12-VecInit.cpp │ ├── enum.cpp │ ├── cxx0x-initializer-scalars.cpp │ ├── __null.cpp │ ├── debug-info-enum.cpp │ ├── empty-union.cpp │ ├── namespace-aliases.cpp │ ├── 2010-06-22-ZeroBitfield.cpp │ ├── constructor-init-reference.cpp │ ├── copy-assign-synthesis-2.cpp │ ├── nonconst-init.cpp │ ├── static-assert.cpp │ ├── 2004-01-11-DynamicInitializedConstant.cpp │ └── scoped-enums.cpp ├── CXX │ ├── basic │ │ ├── basic.start │ │ │ └── basic.start.main │ │ │ │ ├── p2c.cpp │ │ │ │ ├── p2g.cpp │ │ │ │ ├── p2d.cpp │ │ │ │ ├── p2e.cpp │ │ │ │ └── p2h.cpp │ │ └── basic.stc │ │ │ └── basic.stc.dynamic │ │ │ └── p2-nodef.cpp │ ├── class │ │ └── p1-0x.cpp │ ├── temp │ │ └── temp.spec │ │ │ └── temp.expl.spec │ │ │ └── p13.cpp │ ├── dcl.decl │ │ ├── dcl.init │ │ │ ├── dcl.init.string │ │ │ │ └── p2.cpp │ │ │ └── dcl.init.ref │ │ │ │ └── p3.cpp │ │ └── dcl.meaning │ │ │ └── dcl.fct.default │ │ │ └── p8.cpp │ ├── conv │ │ └── conv.ptr │ │ │ └── p2.cpp │ └── special │ │ └── class.dtor │ │ └── p2.cpp ├── CodeGenObjC │ ├── 2008-10-23-invalid-icmp.m │ ├── 2010-02-01-utf16-with-null.m │ ├── attr-strong.c │ └── bitfield-gnu.m ├── SemaTemplate │ ├── enum-forward.cpp │ └── nested-linkage.cpp ├── SemaObjCXX │ ├── expr-objcxx.mm │ ├── ivar-struct.mm │ └── ivar-reference-type.mm ├── CodeGenObjCXX │ └── 2007-10-03-MetadataPointers.mm ├── SemaCUDA │ └── config-type.cu ├── Headers │ └── int64-type.c └── Rewriter │ └── rewrite-foreach-7.m ├── bindings └── python │ └── tests │ ├── __init__.py │ └── cindex │ ├── __init__.py │ └── INPUTS │ ├── header3.h │ ├── parse_arguments.c │ ├── header1.h │ ├── header2.h │ ├── include.cpp │ └── hello.cpp ├── include ├── clang │ ├── Driver │ │ └── CC1Options.h │ └── Parse │ │ └── CMakeLists.txt ├── CMakeLists.txt └── Makefile ├── tools ├── scan-build │ ├── c++-analyzer │ └── sorttable.js └── scan-view │ └── Resources │ ├── GetRadarVersion.scpt │ ├── FileRadar.scpt │ └── bugcatcher.ico ├── www ├── robots.txt ├── favicon.ico ├── carbon-compile.png ├── demo │ ├── cathead.png │ └── syntax.css ├── feature-compile1.png ├── feature-compile2.png ├── feature-memory1.png └── analyzer │ ├── images │ ├── tree │ │ ├── minus.gif │ │ ├── plus.gif │ │ └── bullet.gif │ ├── analyzer_html.png │ ├── analyzer_xcode.png │ ├── scan_build_cmd.png │ ├── example_use_assert.png │ ├── example_null_pointer.png │ ├── example_custom_assert.png │ ├── example_attribute_nonnull.png │ ├── example_cf_returns_retained.png │ ├── example_ns_returns_retained.png │ └── example_cf_returns_retained_gc.png │ └── latest_checker.html.incl ├── INPUTS ├── Cocoa_h.m ├── carbon_h.c └── iostream.cc ├── examples └── PrintFunctionNames │ └── PrintFunctionNames.exports ├── lib ├── Rewrite │ └── CMakeLists.txt └── StaticAnalyzer │ └── CMakeLists.txt ├── docs ├── PCHLayout.png └── DriverArchitecture.png ├── ModuleInfo.txt ├── utils ├── ABITest │ ├── return-types-32 │ │ └── Makefile │ ├── return-types-64 │ │ └── Makefile │ └── single-args-32 │ │ └── Makefile └── OptionalTests │ └── Extra │ └── README.txt ├── runtime └── compiler-rt │ └── clang_linux_test_input.c └── unittests ├── Basic └── CMakeLists.txt └── Lex └── CMakeLists.txt /test/PCH/pchpch1.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/PCH/pchpch2.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Index/include_test_2.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Tooling/Inputs/pch.cpp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Tooling/Inputs/pch.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bindings/python/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /include/clang/Driver/CC1Options.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/PCH/Inputs/chain-trivial1.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/PCH/Inputs/chain-trivial2.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Tooling/Inputs/pch-fail.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/B_opt_tree/dir1/ld: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/B_opt_tree/dir2/ld: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/PCH/Inputs/badpch-dir.h.gch/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/PCH/Inputs/badpch-empty.h.gch: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bindings/python/tests/cindex/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/ASTMerge/Inputs/var1.h: -------------------------------------------------------------------------------- 1 | double x2; 2 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/test2.h: -------------------------------------------------------------------------------- 1 | int x; 2 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/test3.h: -------------------------------------------------------------------------------- 1 | int y; 2 | -------------------------------------------------------------------------------- /test/Index/Inputs/b.h: -------------------------------------------------------------------------------- 1 | typedef float B; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/decl2.h: -------------------------------------------------------------------------------- 1 | @class A; 2 | -------------------------------------------------------------------------------- /test/PCH/Inputs/preamble.h: -------------------------------------------------------------------------------- 1 | int f(int); 2 | -------------------------------------------------------------------------------- /test/PCH/reinclude2.h: -------------------------------------------------------------------------------- 1 | int q1 = A::x; 2 | -------------------------------------------------------------------------------- /test/Parser/completely-empty-header-file.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/scan-build/c++-analyzer: -------------------------------------------------------------------------------- 1 | ccc-analyzer -------------------------------------------------------------------------------- /test/Driver/Inputs/B_opt_tree/dir3/prefix-ld: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_freebsd_tree/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_linux_tree/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_6_mips_tree/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/fake_install_tree/bin/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/freescale_ppc_tree/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Index/Inputs/preamble-reparse-1.c: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/Modified/A.h: -------------------------------------------------------------------------------- 1 | int getA(); 2 | -------------------------------------------------------------------------------- /test/PCH/cmdline-include1.h: -------------------------------------------------------------------------------- 1 | enum { x1 }; 2 | -------------------------------------------------------------------------------- /test/PCH/cmdline-include2.h: -------------------------------------------------------------------------------- 1 | enum { x2 }; 2 | -------------------------------------------------------------------------------- /test/PCH/modified-header-crash.h: -------------------------------------------------------------------------------- 1 | int foo; 2 | -------------------------------------------------------------------------------- /tools/scan-view/Resources/GetRadarVersion.scpt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /www/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /INPUTS/Cocoa_h.m: -------------------------------------------------------------------------------- 1 | 2 | #import 3 | -------------------------------------------------------------------------------- /include/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(clang) 2 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_freebsd64_tree/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_freebsd64_tree/usr/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_freebsd_tree/usr/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_freebsd_tree/usr/lib/crt1.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_freebsd_tree/usr/lib32/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_linux_tree/usr/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_6_mips_tree/lib32/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_6_mips_tree/lib64/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_6_mips_tree/usr/lib/crt1.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_6_mips_tree/usr/lib/crti.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/freescale_ppc64_tree/lib64/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/freescale_ppc_tree/usr/lib/crt1.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/freescale_ppc_tree/usr/lib/crti.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/freescale_ppc_tree/usr/lib/crtn.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing1/bin/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing2/bin/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing3/bin/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing4/bin/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multiarch_freebsd64_tree/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/suse_10.3_ppc64_tree/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/suse_10.3_ppc64_tree/lib64/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/test.h: -------------------------------------------------------------------------------- 1 | #include "test2.h" 2 | -------------------------------------------------------------------------------- /test/Index/Inputs/Headers/a.h: -------------------------------------------------------------------------------- 1 | int *getA(); 2 | 3 | -------------------------------------------------------------------------------- /test/Index/Inputs/preamble-reparse-2.c: -------------------------------------------------------------------------------- 1 | int x; 2 | -------------------------------------------------------------------------------- /test/Index/annotate-tokens-include.h: -------------------------------------------------------------------------------- 1 | int foo(); 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/import-decl.h: -------------------------------------------------------------------------------- 1 | struct T {}; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/load_failure.h: -------------------------------------------------------------------------------- 1 | int fail(int); 2 | -------------------------------------------------------------------------------- /test/PCH/Inputs/va_arg.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /test/CodeCompletion/some_struct.h: -------------------------------------------------------------------------------- 1 | struct X { int m; }; 2 | -------------------------------------------------------------------------------- /test/Driver/Inputs/B_opt_tree/dir1/i386-unknown-linux-ld: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_freebsd64_tree/usr/lib/crt1.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_freebsd64_tree/usr/lib32/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_6_mips_tree/usr/lib32/crt1.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_6_mips_tree/usr/lib32/crti.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_6_mips_tree/usr/lib64/crt1.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_6_mips_tree/usr/lib64/crti.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/freescale_ppc64_tree/usr/lib64/crt1.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/freescale_ppc64_tree/usr/lib64/crti.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/freescale_ppc64_tree/usr/lib64/crtn.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multiarch_freebsd64_tree/usr/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multiarch_freebsd64_tree/usr/lib/crt1.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_32bit_linux_tree/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_32bit_linux_tree/lib32/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_32bit_linux_tree/lib64/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_32bit_linux_tree/usr/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_64bit_linux_tree/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_64bit_linux_tree/lib32/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_64bit_linux_tree/lib64/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_64bit_linux_tree/usr/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/suse_10.3_ppc64_tree/usr/lib64/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_11.04_multiarch_tree/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Index/Inputs/cindex-from-source.h: -------------------------------------------------------------------------------- 1 | typedef int t0; 2 | -------------------------------------------------------------------------------- /test/Index/Inputs/lit.local.cfg: -------------------------------------------------------------------------------- 1 | config.suffixes = [] 2 | -------------------------------------------------------------------------------- /test/Index/include_test.h: -------------------------------------------------------------------------------- 1 | #include "include_test_2.h" 2 | -------------------------------------------------------------------------------- /test/Misc/Inputs/working-directory.h: -------------------------------------------------------------------------------- 1 | typedef int Foo; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/a1.h: -------------------------------------------------------------------------------- 1 | int a1; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/a2.h: -------------------------------------------------------------------------------- 1 | int a2; 2 | -------------------------------------------------------------------------------- /test/SemaCXX/Inputs/lit.local.cfg: -------------------------------------------------------------------------------- 1 | config.suffixes = [] 2 | -------------------------------------------------------------------------------- /test/Tooling/Inputs/lit.local.cfg: -------------------------------------------------------------------------------- 1 | config.suffixes = [] 2 | -------------------------------------------------------------------------------- /test/ASTMerge/Inputs/lit.local.cfg: -------------------------------------------------------------------------------- 1 | config.suffixes = [] 2 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multiarch_freebsd64_tree/usr/lib32/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multiarch_freebsd64_tree/usr/lib32/crt1.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_32bit_linux_tree/usr/lib32/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_32bit_linux_tree/usr/lib64/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_64bit_linux_tree/usr/lib32/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_64bit_linux_tree/usr/lib64/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_11.04_multiarch_tree/usr/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/lit.local.cfg: -------------------------------------------------------------------------------- 1 | config.suffixes = [] 2 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/rewrite-includes2.h: -------------------------------------------------------------------------------- 1 | included_line2 2 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/rewrite-includes3.h: -------------------------------------------------------------------------------- 1 | included_line3 2 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/rewrite-includes4.h: -------------------------------------------------------------------------------- 1 | included_line4 2 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/rewrite-includes5.h: -------------------------------------------------------------------------------- 1 | included_line5 2 | -------------------------------------------------------------------------------- /test/Index/Inputs/Headers/nested/nested.h: -------------------------------------------------------------------------------- 1 | int *getNested(); 2 | -------------------------------------------------------------------------------- /test/Index/preamble-reparse-cmd-define.c.h: -------------------------------------------------------------------------------- 1 | extern int x; 2 | -------------------------------------------------------------------------------- /test/Index/targeted-fields.h: -------------------------------------------------------------------------------- 1 | 2 | int z; 3 | int w; 4 | -------------------------------------------------------------------------------- /test/Index/targeted-nested1.h: -------------------------------------------------------------------------------- 1 | 2 | extern int NestedVar1; 3 | -------------------------------------------------------------------------------- /test/Index/targeted-preamble.h: -------------------------------------------------------------------------------- 1 | 2 | extern int PreambleVar; 3 | -------------------------------------------------------------------------------- /test/Misc/Inputs/remapped-file-3: -------------------------------------------------------------------------------- 1 | extern float *fp; 2 | 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/b1.h: -------------------------------------------------------------------------------- 1 | int b1; 2 | 3 | -------------------------------------------------------------------------------- /test/PCH/Inputs/chain-macro1.h: -------------------------------------------------------------------------------- 1 | #define FOOBAR void f(); 2 | -------------------------------------------------------------------------------- /test/PCH/Inputs/chain-macro2.h: -------------------------------------------------------------------------------- 1 | #define BARFOO void g(); 2 | -------------------------------------------------------------------------------- /test/PCH/remap-file-from-pch.cpp.h: -------------------------------------------------------------------------------- 1 | 2 | #define STR "nexus" 3 | -------------------------------------------------------------------------------- /test/Coverage/verbose.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -v %s 2 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/mipsel-linux-android/bin/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/mipsel-linux-android/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/sysroot/usr/lib/crtbegin_so.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/sysroot/usr/lib/crtend_so.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_linux_tree/usr/i386-unknown-linux/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/lib/i386-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/lib/mips-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/lib/mipsel-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/lib/powerpc-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/lib/x86_64-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_11.04_multiarch_tree/usr/include/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/include/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Index/Inputs/Frameworks/module.map: -------------------------------------------------------------------------------- 1 | framework module * { } 2 | -------------------------------------------------------------------------------- /test/Index/Inputs/Headers/a_extensions.h: -------------------------------------------------------------------------------- 1 | int *getAExtensions(); 2 | -------------------------------------------------------------------------------- /test/Index/Inputs/pragma-once.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | int i; 3 | 4 | -------------------------------------------------------------------------------- /test/Misc/Inputs/remapped-file: -------------------------------------------------------------------------------- 1 | int *f(float *fp) { return fp; } 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/Modified/B.h: -------------------------------------------------------------------------------- 1 | #include "A.h" 2 | int getB(); 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/decl.h: -------------------------------------------------------------------------------- 1 | @class A; 2 | typedef struct B B; 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/macros_other.h: -------------------------------------------------------------------------------- 1 | #define OTHER_INTEGER int 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/macros_right_undef.h: -------------------------------------------------------------------------------- 1 | #undef TOP_RIGHT_UNDEF 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/point.h: -------------------------------------------------------------------------------- 1 | struct Point { int x, y; }; 2 | 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/redeclarations_left.h: -------------------------------------------------------------------------------- 1 | @class NSObject; 2 | 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/subdir/subdir.h: -------------------------------------------------------------------------------- 1 | const char *getSubdir(); 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/wildcard-submodule-exports/A_one.h: -------------------------------------------------------------------------------- 1 | int *A1; 2 | -------------------------------------------------------------------------------- /test/PCH/line-directive.h: -------------------------------------------------------------------------------- 1 | #line 25 "line-directive.c" 2 | int x; 3 | -------------------------------------------------------------------------------- /test/PCH/target-options.h: -------------------------------------------------------------------------------- 1 | enum { apple_cc = __APPLE_CC__ }; 2 | 3 | -------------------------------------------------------------------------------- /test/Preprocessor/Inputs/TestFramework.framework/.system_framework: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Preprocessor/function_macro_file.h: -------------------------------------------------------------------------------- 1 | 2 | #define f() x 3 | f 4 | -------------------------------------------------------------------------------- /test/Preprocessor/warn-macro-unused.h: -------------------------------------------------------------------------------- 1 | #define unused_from_header 2 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/arm-linux-androideabi/bin/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/arm-linux-androideabi/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/sysroot/usr/lib/crtbegin_dynamic.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/sysroot/usr/lib/crtbegin_static.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/sysroot/usr/lib/crtend_android.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_linux_tree/usr/x86_64-unknown-linux/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/lib/powerpc64-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/i386-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/mips-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/i386-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/mips-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/mipsel-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/powerpc-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/x86_64-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_11.04_multiarch_tree/lib/i386-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_11.04_multiarch_tree/usr/include/c++/4.5/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/FixIt/fixit-include.h: -------------------------------------------------------------------------------- 1 | // This file is purposefully left empty 2 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/SystemHeaderPrefix/src/warn.h: -------------------------------------------------------------------------------- 1 | #if SRC 2 | #endif 3 | -------------------------------------------------------------------------------- /test/Index/Inputs/annotate-comments-preprocessor.h: -------------------------------------------------------------------------------- 1 | /* Meow */ 2 | 3 | -------------------------------------------------------------------------------- /test/Index/index-suppress-refs.hpp: -------------------------------------------------------------------------------- 1 | 2 | class B1 {}; 3 | class B2 {}; 4 | -------------------------------------------------------------------------------- /test/Modules/Inputs/Module.framework/Headers/Sub2.h: -------------------------------------------------------------------------------- 1 | int *Module_Sub2; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/nested/nested1.h: -------------------------------------------------------------------------------- 1 | int nested1; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/nested/nested2.h: -------------------------------------------------------------------------------- 1 | int nested2; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/nested_umbrella/1.h: -------------------------------------------------------------------------------- 1 | int one; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/wildcard-submodule-exports/B_one.h: -------------------------------------------------------------------------------- 1 | short *B1; 2 | -------------------------------------------------------------------------------- /test/PCH/working-directory.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /examples/PrintFunctionNames/PrintFunctionNames.exports: -------------------------------------------------------------------------------- 1 | _ZN4llvm8Registry* 2 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/backward/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/mipsel-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/powerpc-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/powerpc64-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/x86_64-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/powerpc64-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/freescale_ppc_tree/usr/lib/powerpc-fsl-linux/4.6.2/crtend.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_32bit_linux_tree/usr/i386-unknown-linux/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_11.04_multiarch_tree/usr/lib/i386-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/lib/arm-linux-gnueabi/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/SystemHeaderPrefix/libs/boost/all.h: -------------------------------------------------------------------------------- 1 | #include "warn.h" 2 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/SystemHeaderPrefix/libs/mylib/all.h: -------------------------------------------------------------------------------- 1 | #include "warn.h" 2 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/rewrite-includes6.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | included_line6 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/NoUmbrella.framework/Headers/B.h: -------------------------------------------------------------------------------- 1 | int no_umbrella_B; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/NoUmbrella.framework/Headers/Boom.h: -------------------------------------------------------------------------------- 1 | this is gibberish 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/lookup_left.h: -------------------------------------------------------------------------------- 1 | @interface A 2 | - (int)method; 3 | @end 4 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/Umbrella2/Umbrella2.h: -------------------------------------------------------------------------------- 1 | int umbrella2; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/redeclarations_right.h: -------------------------------------------------------------------------------- 1 | @interface NSObject 2 | @end 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/wildcard-submodule-exports/A_two.h: -------------------------------------------------------------------------------- 1 | unsigned int *A2; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/wildcard-submodule-exports/B_two.h: -------------------------------------------------------------------------------- 1 | unsigned short *B2; 2 | -------------------------------------------------------------------------------- /test/PCH/fuzzy-pch.h: -------------------------------------------------------------------------------- 1 | // Header for PCH test fuzzy-pch.c 2 | void f(int X); 3 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/arm-linux-androideabi/include/c++/4.4.3/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/arm-linux-androideabi/4.4.3/crtend.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/arm-linux-androideabi/4.4.3/crtendS.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/mipsel-linux-android/4.4.3/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/mipsel-linux-android/4.4.3/crtend.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/mipsel-linux-android/4.4.3/crtendS.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/mipsel-linux-android/include/c++/4.4.3/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_linux_tree/usr/lib/gcc/i386-unknown-linux/4.6.0/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_6_mips_tree/usr/lib/gcc/mipsel-linux-gnu/4.4/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/i686-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/mips-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/mipsel-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/x86_64-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/i686-linux-gnu/4.5/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/fake_install_tree/lib/gcc/i386-unknown-linux/4.7.0/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/fake_install_tree/lib/gcc/x86_64-unknown-linux/4.5.0/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/freescale_ppc_tree/usr/lib/powerpc-fsl-linux/4.6.2/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing1/lib/gcc/i386-unknown-linux/4.6/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing1/lib/gcc/i386-unknown-linux/4.7.0/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing1/lib/gcc/i386-unknown-linux/4.7.1/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing1/lib/gcc/i386-unknown-linux/4.7/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing2/lib/gcc/i386-unknown-linux/4.6.x/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing2/lib/gcc/i386-unknown-linux/4.7.0/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing2/lib/gcc/i386-unknown-linux/4.7.1/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing2/lib/gcc/i386-unknown-linux/4.7.x/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_32bit_linux_tree/usr/i386-unknown-linux/lib32/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_32bit_linux_tree/usr/i386-unknown-linux/lib64/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_64bit_linux_tree/usr/x86_64-unknown-linux/lib/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_64bit_linux_tree/usr/x86_64-unknown-linux/lib32/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_64bit_linux_tree/usr/x86_64-unknown-linux/lib64/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_11.04_multiarch_tree/usr/include/c++/4.5/backward/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_11.04_multiarch_tree/usr/include/i386-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/lib/arm-linux-gnueabihf/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/lib/arm-linux-gnueabi/crt1.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/lib/arm-linux-gnueabi/crti.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/lib/arm-linux-gnueabi/crtn.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/SystemHeaderPrefix/libs/boost/warn.h: -------------------------------------------------------------------------------- 1 | #if BOOST 2 | #endif 3 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/SystemHeaderPrefix/libs/mylib/warn.h: -------------------------------------------------------------------------------- 1 | #if MYLIB 2 | #endif 3 | -------------------------------------------------------------------------------- /test/Index/Inputs/a.h: -------------------------------------------------------------------------------- 1 | #ifndef A_H 2 | #define A_H 3 | typedef int A; 4 | #endif 5 | -------------------------------------------------------------------------------- /test/Misc/warn-in-system-header.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #warning the cake is a lie 5 | -------------------------------------------------------------------------------- /test/Modules/Inputs/Module.framework/Headers/NotInModule.h: -------------------------------------------------------------------------------- 1 | int not_in_module; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/NoUmbrella.framework/Headers/SubDir/C.h: -------------------------------------------------------------------------------- 1 | int no_umbrella_C; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/diamond.h: -------------------------------------------------------------------------------- 1 | @__experimental_modules_import diamond_bottom; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/irgen.h: -------------------------------------------------------------------------------- 1 | static inline int triple(int x) { return x * 3; } 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/nested_umbrella/a-extras.h: -------------------------------------------------------------------------------- 1 | int extra_a; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/redecl_namespaces_left.h: -------------------------------------------------------------------------------- 1 | namespace A { 2 | int i; 3 | } 4 | -------------------------------------------------------------------------------- /test/Modules/Inputs/redecl_namespaces_right.h: -------------------------------------------------------------------------------- 1 | namespace A { 2 | int j; 3 | } 4 | -------------------------------------------------------------------------------- /test/PCH/cxx-functions.h: -------------------------------------------------------------------------------- 1 | void foo() throw( int, short, char, float, double ); 2 | -------------------------------------------------------------------------------- /test/PCH/headermap.h: -------------------------------------------------------------------------------- 1 | /* Helper for the headermap.m test */ 2 | int x = 17; 3 | 4 | -------------------------------------------------------------------------------- /test/PCH/pch__VA_ARGS__.h: -------------------------------------------------------------------------------- 1 | // Header for PCH test fuzzy-pch.c 2 | void f(int X); 3 | -------------------------------------------------------------------------------- /lib/Rewrite/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(Core) 2 | add_subdirectory(Frontend) 3 | -------------------------------------------------------------------------------- /test/Analysis/diagnostics/undef-value-callee.h: -------------------------------------------------------------------------------- 1 | 2 | void callee() { 3 | ; 4 | } 5 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/arm-linux-androideabi/4.4.3/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/arm-linux-androideabi/4.4.3/crtbeginS.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/arm-linux-androideabi/4.4.3/crtbeginT.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/mipsel-linux-android/4.4.3/crtbeginS.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/mipsel-linux-android/4.4.3/crtbeginT.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_linux_tree/usr/lib/gcc/x86_64-unknown-linux/4.6.0/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_linux_tree/usr/lib/gcc/x86_64-unknown-linux/4.6.0/crtfastmath.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_6_mips_tree/usr/lib/gcc/mipsel-linux-gnu/4.4/64/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_6_mips_tree/usr/lib/gcc/mipsel-linux-gnu/4.4/n32/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/powerpc-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/powerpc64-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/64/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/n32/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/64/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/n32/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/powerpc-linux-gnu/4.5/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/powerpc64-linux-gnu/4.5/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/x86_64-linux-gnu/4.5/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/freescale_ppc64_tree/usr/lib64/powerpc64-fsl-linux/4.6.2/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/freescale_ppc64_tree/usr/lib64/powerpc64-fsl-linux/4.6.2/crtend.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing1/lib/gcc/i386-unknown-linux/4.6.99/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing2/lib/gcc/i386-unknown-linux/4.6.99/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing3/lib/gcc/i386-unknown-linux/4.7.98/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing3/lib/gcc/i386-unknown-linux/4.7.99-rc5/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing4/lib/gcc/i386-unknown-linux/4.7.98/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing4/lib/gcc/i386-unknown-linux/4.7.99-rc5/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/gcc_version_parsing4/lib/gcc/i386-unknown-linux/4.7.99/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_11.04_multiarch_tree/usr/include/c++/4.5/i686-linux-gnu/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/include/arm-linux-gnueabi/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/include/arm-linux-gnueabihf/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/lib/arm-linux-gnueabihf/crt1.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/lib/arm-linux-gnueabihf/crti.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/lib/arm-linux-gnueabihf/crtn.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Index/preamble-reparse-import.m-3.h: -------------------------------------------------------------------------------- 1 | #import "preamble-reparse-import.m-2.h" 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/Umbrella/umbrella_sub.h: -------------------------------------------------------------------------------- 1 | int umbrella_sub; 2 | 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/subdir/module.map: -------------------------------------------------------------------------------- 1 | module subdir { 2 | header "subdir.h" 3 | } 4 | -------------------------------------------------------------------------------- /test/PCH/Inputs/typo.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | @interface NSString 4 | + (id)alloc; 5 | @end 6 | 7 | -------------------------------------------------------------------------------- /test/Preprocessor/file_to_include.h: -------------------------------------------------------------------------------- 1 | 2 | #warning file successfully included 3 | 4 | -------------------------------------------------------------------------------- /test/Preprocessor/mi_opt2.h: -------------------------------------------------------------------------------- 1 | #ifndef ITERATING 2 | a: X 3 | #else 4 | b: X 5 | #endif 6 | -------------------------------------------------------------------------------- /INPUTS/carbon_h.c: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | //#import 5 | -------------------------------------------------------------------------------- /bindings/python/tests/cindex/INPUTS/header3.h: -------------------------------------------------------------------------------- 1 | // Not a guarded header! 2 | 3 | void f(); 4 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/mipsel-linux-android/4.4.3/mips-r2/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/mipsel-linux-android/4.4.3/mips-r2/crtbeginS.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/mipsel-linux-android/4.4.3/mips-r2/crtbeginT.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/mipsel-linux-android/4.4.3/mips-r2/crtend.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/basic_android_tree/lib/gcc/mipsel-linux-android/4.4.3/mips-r2/crtendS.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_32bit_linux_tree/usr/lib/gcc/i386-unknown-linux/4.6.0/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/suse_10.3_ppc64_tree/usr/lib/gcc/powerpc64-suse-linux/4.1.2/64/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/suse_10.3_ppc64_tree/usr/lib/gcc/powerpc64-suse-linux/4.1.2/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Frontend/lit.local.cfg: -------------------------------------------------------------------------------- 1 | config.suffixes = ['.c', '.cpp', '.m', '.mm', '.ll', '.bc'] 2 | -------------------------------------------------------------------------------- /test/Lexer/unknown-char.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E %s 2>&1 | not grep error 2 | ` ` ` ` 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/Module.framework/Headers/Buried/Treasure.h: -------------------------------------------------------------------------------- 1 | unsigned *Buried_Treasure; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/Module.framework/PrivateHeaders/ModulePrivate.h: -------------------------------------------------------------------------------- 1 | int module_private; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/diamond_top.h: -------------------------------------------------------------------------------- 1 | int top(int *); 2 | 3 | int top_left(char *c); 4 | 5 | -------------------------------------------------------------------------------- /test/Modules/Inputs/lookup_right.h: -------------------------------------------------------------------------------- 1 | 2 | @interface B 3 | - (double)method; 4 | @end 5 | 6 | -------------------------------------------------------------------------------- /test/Modules/Inputs/lookup_right.hpp: -------------------------------------------------------------------------------- 1 | float *f0(float*); 2 | // expected-no-diagnostics 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/nested_umbrella/a.h: -------------------------------------------------------------------------------- 1 | int nested_umbrella_a; 2 | 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/nested_umbrella/b.h: -------------------------------------------------------------------------------- 1 | int nested_umbrella_b; 2 | 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/nested_umbrella/decltype.h: -------------------------------------------------------------------------------- 1 | int decltype_val; 2 | 3 | -------------------------------------------------------------------------------- /test/PCH/builtins.h: -------------------------------------------------------------------------------- 1 | // Header for PCH test builtins.c 2 | int printf(char const *, ...); 3 | -------------------------------------------------------------------------------- /test/PCH/cxx-typeid.h: -------------------------------------------------------------------------------- 1 | // Header for PCH test cxx-typeid.cpp 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /bindings/python/tests/cindex/INPUTS/parse_arguments.c: -------------------------------------------------------------------------------- 1 | int DECL_ONE = 1; 2 | int DECL_TWO = 2; 3 | -------------------------------------------------------------------------------- /test/CodeGen/weak-global.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm < %s | grep common 2 | 3 | int i; 4 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_32bit_linux_tree/usr/lib/gcc/i386-unknown-linux/4.6.0/64/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_64bit_linux_tree/usr/lib/gcc/x86_64-unknown-linux/4.6.0/32/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/multilib_64bit_linux_tree/usr/lib/gcc/x86_64-unknown-linux/4.6.0/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/lib/gcc/arm-linux-gnueabi/4.6.1/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/lib/gcc/arm-linux-gnueabi/4.6.1/crtend.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/lib/gcc/arm-linux-gnueabihf/4.6.3/crtend.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/TestFramework.framework/Headers/TestFramework.h: -------------------------------------------------------------------------------- 1 | static int f0(void) {} 2 | -------------------------------------------------------------------------------- /test/Index/Inputs/Headers/nested/module.map: -------------------------------------------------------------------------------- 1 | module nested { 2 | header "nested.h" 3 | } 4 | 5 | -------------------------------------------------------------------------------- /test/Index/Inputs/prefix.h: -------------------------------------------------------------------------------- 1 | #ifndef PREFIX_H 2 | #define PREFIX_H 3 | int foo(int); 4 | #endif 5 | -------------------------------------------------------------------------------- /test/Index/annotate-tokens-with-default-args.h: -------------------------------------------------------------------------------- 1 | struct Foo { 2 | void m(Foo *f = 0); 3 | }; 4 | -------------------------------------------------------------------------------- /test/Misc/Inputs/include.h: -------------------------------------------------------------------------------- 1 | #define EQUALS(a,b) a == b 2 | 3 | int foo(int x) { return x; } 4 | -------------------------------------------------------------------------------- /test/Misc/Inputs/remapped-file-2: -------------------------------------------------------------------------------- 1 | #include "nonexistent.h" 2 | 3 | int *f() { return fp; } 4 | -------------------------------------------------------------------------------- /test/Modules/Inputs/DependsOnModule.framework/Headers/other.h: -------------------------------------------------------------------------------- 1 | int depends_on_module_other; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/NoUmbrella.framework/PrivateHeaders/A_Private.h: -------------------------------------------------------------------------------- 1 | int no_umbrella_A_private; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/NoUmbrella.framework/PrivateHeaders/B_Private.h: -------------------------------------------------------------------------------- 1 | int no_umbrella_B_private; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/NotAModule.framework/Headers/NotAModule.h: -------------------------------------------------------------------------------- 1 | extern int not_a_module; 2 | 3 | -------------------------------------------------------------------------------- /test/PCH/pch-dir.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern int i; 3 | #else 4 | extern int j; 5 | #endif 6 | -------------------------------------------------------------------------------- /test/PCH/remap-file-from-pch.cpp.remap.h: -------------------------------------------------------------------------------- 1 | 2 | #define STR "nexus" 3 | 4 | int zool; 5 | -------------------------------------------------------------------------------- /test/Preprocessor/mi_opt.h: -------------------------------------------------------------------------------- 1 | #if !defined foo MACRO 2 | #define foo 3 | int x = 2; 4 | #endif 5 | -------------------------------------------------------------------------------- /test/SemaObjC/nonnull.h: -------------------------------------------------------------------------------- 1 | // rdar: //6857843 2 | #define NONNULL_ATTR __attribute__((nonnull)) 3 | -------------------------------------------------------------------------------- /www/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/favicon.ico -------------------------------------------------------------------------------- /docs/PCHLayout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/docs/PCHLayout.png -------------------------------------------------------------------------------- /test/CodeCompletion/Inputs/reserved.h: -------------------------------------------------------------------------------- 1 | typedef int _INTEGER_TYPE; 2 | typedef float FLOATING_TYPE; 3 | -------------------------------------------------------------------------------- /test/CodeCompletion/truncation.c.h: -------------------------------------------------------------------------------- 1 | struct X { }; 2 | struct Y { }; 3 | 4 | struct Xa { }; 5 | 6 | -------------------------------------------------------------------------------- /test/CodeGen/2009-03-13-dbg.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -g -o /dev/null 2 | void foo() {} 3 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_11.04_multiarch_tree/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Driver/Inputs/ubuntu_12.04_LTS_multiarch_tree/usr/lib/gcc/arm-linux-gnueabihf/4.6.3/crtbegin.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Index/Inputs/pragma_disable_warning.h: -------------------------------------------------------------------------------- 1 | #pragma clang diagnostic ignored "-Wunused-parameter" 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/Modified/module.map: -------------------------------------------------------------------------------- 1 | module A { header "A.h" } 2 | module B { header "B.h" } 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/System/usr/include/stdbool.h: -------------------------------------------------------------------------------- 1 | // Testing hack: does not define bool/true/false. 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/System/usr/include/stdint.h: -------------------------------------------------------------------------------- 1 | typedef int my_awesome_nonstandard_integer_type; 2 | -------------------------------------------------------------------------------- /test/PCH/Inputs/case-insensitive-include.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct S { 4 | int x; 5 | }; 6 | -------------------------------------------------------------------------------- /test/PCH/chain-predecl.h: -------------------------------------------------------------------------------- 1 | // First header for chain-predecl.m 2 | @class Foo; 3 | @protocol Pro; 4 | -------------------------------------------------------------------------------- /test/Preprocessor/pr2086.h: -------------------------------------------------------------------------------- 1 | #ifndef test 2 | #endif 3 | 4 | #ifdef test 5 | #undef test 6 | #endif 7 | -------------------------------------------------------------------------------- /include/Makefile: -------------------------------------------------------------------------------- 1 | CLANG_LEVEL := .. 2 | DIRS := clang clang-c 3 | 4 | include $(CLANG_LEVEL)/Makefile 5 | -------------------------------------------------------------------------------- /test/CodeCompletion/auto.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:2:9 %s 2 | auto i = 3 | -------------------------------------------------------------------------------- /test/CodeGen/PR3130-cond-constant.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - 2 | 3 | int a = 2.0 ? 1 : 2; 4 | -------------------------------------------------------------------------------- /test/Frontend/stdin.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E - < /dev/null > %t 2 | // RUN: grep '' %t 3 | 4 | -------------------------------------------------------------------------------- /test/Index/Inputs/Frameworks/Framework.framework/Headers/Framework.h: -------------------------------------------------------------------------------- 1 | int *getFrameworkVersion(); 2 | 3 | -------------------------------------------------------------------------------- /test/Index/Inputs/remap-load-to.c: -------------------------------------------------------------------------------- 1 | int foo(int parm1, float parm2) { 2 | return parm1 + parm2; 3 | } 4 | -------------------------------------------------------------------------------- /test/Index/complete-preamble.h: -------------------------------------------------------------------------------- 1 | namespace std { 2 | void wibble(); 3 | } 4 | 5 | namespace std { 6 | } 7 | -------------------------------------------------------------------------------- /test/Modules/Inputs/Module.framework/Headers/Sub.h: -------------------------------------------------------------------------------- 1 | #include 2 | int *Module_Sub; 3 | 4 | -------------------------------------------------------------------------------- /test/Parser/cxx-bool.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only %s 2 | 3 | bool a = true; 4 | bool b = false; 5 | -------------------------------------------------------------------------------- /test/Preprocessor/clang_headers.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -ffreestanding -E %s 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /test/Preprocessor/macro_space.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -E | grep '! ,' 2 | 3 | #define XX 4 | ! XX, 5 | 6 | -------------------------------------------------------------------------------- /test/Preprocessor/pp-record.h: -------------------------------------------------------------------------------- 1 | // Only useful for #inclusion. 2 | 3 | #define CAKE extern int is_a_lie 4 | -------------------------------------------------------------------------------- /www/carbon-compile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/carbon-compile.png -------------------------------------------------------------------------------- /www/demo/cathead.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/demo/cathead.png -------------------------------------------------------------------------------- /test/ARCMT/Inputs/test1.m.in.result: -------------------------------------------------------------------------------- 1 | #define PART1 2 | #include "test.h" 3 | 4 | void test1(id p) { 5 | } 6 | -------------------------------------------------------------------------------- /test/ARCMT/Inputs/test2.m.in.result: -------------------------------------------------------------------------------- 1 | #define PART2 2 | #include "test.h" 3 | 4 | void test2(id p) { 5 | } 6 | -------------------------------------------------------------------------------- /test/ARCMT/with space/test1.m.in.result: -------------------------------------------------------------------------------- 1 | #define PART1 2 | #include "test.h" 3 | 4 | void test1(id p) { 5 | } 6 | -------------------------------------------------------------------------------- /test/ARCMT/with space/test2.m.in.result: -------------------------------------------------------------------------------- 1 | #define PART2 2 | #include "test.h" 3 | 4 | void test2(id p) { 5 | } 6 | -------------------------------------------------------------------------------- /test/CodeGen/2003-10-28-ident.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | 4 | #ident "foo" 5 | -------------------------------------------------------------------------------- /test/CodeGen/2007-03-26-ZeroWidthBitfield.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - 2 | struct Z { int :0; } z; 3 | -------------------------------------------------------------------------------- /test/Coverage/html-print.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-html -o %t %s 2 | 3 | #include "c-language-features.inc" 4 | -------------------------------------------------------------------------------- /test/Frontend/verify2.h: -------------------------------------------------------------------------------- 1 | #error header 2 | 3 | #if 0 4 | // expected-error {{should be ignored}} 5 | #endif 6 | -------------------------------------------------------------------------------- /test/Lexer/token-concat.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E -x c -o %t %s 2 | // RUN: grep 'IDENT.2' %t 3 | 4 | IDENT.2 5 | -------------------------------------------------------------------------------- /test/Lexer/utf-16.c.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/test/Lexer/utf-16.c.txt -------------------------------------------------------------------------------- /test/Misc/unprintable.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/test/Misc/unprintable.c -------------------------------------------------------------------------------- /test/Modules/Inputs/submodules/vector.h: -------------------------------------------------------------------------------- 1 | template class vector { }; 2 | 3 | #define HAVE_VECTOR 4 | -------------------------------------------------------------------------------- /test/PCH/reinclude1.h: -------------------------------------------------------------------------------- 1 | namespace A { 2 | int x; 3 | int y; 4 | } 5 | 6 | int foo; 7 | #define foo foo 8 | -------------------------------------------------------------------------------- /test/Preprocessor/pragma_sysheader.h: -------------------------------------------------------------------------------- 1 | #pragma GCC system_header 2 | typedef int x; 3 | typedef int x; 4 | 5 | -------------------------------------------------------------------------------- /www/feature-compile1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/feature-compile1.png -------------------------------------------------------------------------------- /www/feature-compile2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/feature-compile2.png -------------------------------------------------------------------------------- /www/feature-memory1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/feature-memory1.png -------------------------------------------------------------------------------- /docs/DriverArchitecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/docs/DriverArchitecture.png -------------------------------------------------------------------------------- /test/ASTMerge/Inputs/typedef1.c: -------------------------------------------------------------------------------- 1 | typedef int Typedef1; 2 | typedef int Typedef2; 3 | Typedef1 x1; 4 | Typedef2 x2; 5 | -------------------------------------------------------------------------------- /test/Driver/clang_f_opts.h: -------------------------------------------------------------------------------- 1 | // RUN: %clang -### -fsyntax-only %s 2>&1 | FileCheck %s 2 | // CHECK: -fsyntax-only 3 | -------------------------------------------------------------------------------- /test/Misc/wrong-encoding.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/test/Misc/wrong-encoding.c -------------------------------------------------------------------------------- /test/Misc/wrong-encoding2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/test/Misc/wrong-encoding2.c -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/Umbrella/Umbrella.h: -------------------------------------------------------------------------------- 1 | int umbrella; 2 | 3 | #include "umbrella_sub.h" 4 | 5 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/Umbrella/module.map: -------------------------------------------------------------------------------- 1 | module Umbrella { 2 | umbrella header "Umbrella.h" 3 | } -------------------------------------------------------------------------------- /test/PCH/Inputs/working-directory-1.h: -------------------------------------------------------------------------------- 1 | template struct A { 2 | A() { 3 | int a; 4 | } 5 | }; 6 | -------------------------------------------------------------------------------- /test/Parser/argument_qualified.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s 2 | int abc (const float x) { 3 | return 1; 4 | } 5 | 6 | -------------------------------------------------------------------------------- /lib/StaticAnalyzer/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(Core) 2 | add_subdirectory(Checkers) 3 | add_subdirectory(Frontend) 4 | -------------------------------------------------------------------------------- /test/ARCMT/Inputs/test1.m.in: -------------------------------------------------------------------------------- 1 | #define PART1 2 | #include "test.h" 3 | 4 | void test1(id p) { 5 | [p release]; 6 | } 7 | -------------------------------------------------------------------------------- /test/ARCMT/Inputs/test2.m.in: -------------------------------------------------------------------------------- 1 | #define PART2 2 | #include "test.h" 3 | 4 | void test2(id p) { 5 | [p release]; 6 | } 7 | -------------------------------------------------------------------------------- /test/ASTMerge/Inputs/typedef2.c: -------------------------------------------------------------------------------- 1 | typedef int Typedef1; 2 | typedef double Typedef2; 3 | Typedef1 x1; 4 | Typedef2 x2; 5 | -------------------------------------------------------------------------------- /test/Analysis/html-diags-multifile.h: -------------------------------------------------------------------------------- 1 | #define DEREF(p) *p = 0xDEADBEEF 2 | void has_bug(int *p) { 3 | DEREF(p); 4 | } 5 | -------------------------------------------------------------------------------- /test/CodeGen/2002-12-15-GlobalBoolTest.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | 4 | _Bool X = 0; 5 | 6 | -------------------------------------------------------------------------------- /test/Index/Inputs/get-cursor-includes-2.h: -------------------------------------------------------------------------------- 1 | #include "get-cursor-includes-1.h" 2 | #include "get-cursor-includes-1.h" 3 | -------------------------------------------------------------------------------- /test/Index/getcursor-pp-pch.c.h: -------------------------------------------------------------------------------- 1 | #define OBSCURE(X) X 2 | #define DECORATION 3 | 4 | DECORATION 5 | OBSCURE(DECORATION) 6 | -------------------------------------------------------------------------------- /test/Index/preamble-reparse-import.m-1.h: -------------------------------------------------------------------------------- 1 | #ifdef PARSED2 2 | #error parsed twice 3 | #endif 4 | 5 | #define PARSED2 1 6 | -------------------------------------------------------------------------------- /test/Index/preamble-reparse-import.m-2.h: -------------------------------------------------------------------------------- 1 | #ifdef PARSED 2 | #error parsed twice 3 | #endif 4 | 5 | #define PARSED 1 6 | -------------------------------------------------------------------------------- /test/Lexer/token-concat-2.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E -x c -o - %s | grep '[.][*]' 2 | // PR4395 3 | #define X .* 4 | X 5 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/Umbrella2/module.map: -------------------------------------------------------------------------------- 1 | module Umbrella2 { 2 | umbrella header "Umbrella2.h" 3 | } 4 | -------------------------------------------------------------------------------- /test/Preprocessor/header_lookup1.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -fno-ms-extensions %s -E | grep 'stddef.h.*3' 2 | #include 3 | -------------------------------------------------------------------------------- /test/Preprocessor/print_line_count.c: -------------------------------------------------------------------------------- 1 | /* RUN: %clang -E -C -P %s | wc -l | grep 4 2 | PR2741 3 | comment */ 4 | y 5 | -------------------------------------------------------------------------------- /tools/scan-build/sorttable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/tools/scan-build/sorttable.js -------------------------------------------------------------------------------- /test/ARCMT/with space/test1.m.in: -------------------------------------------------------------------------------- 1 | #define PART1 2 | #include "test.h" 3 | 4 | void test1(id p) { 5 | [p release]; 6 | } 7 | -------------------------------------------------------------------------------- /test/ARCMT/with space/test2.m.in: -------------------------------------------------------------------------------- 1 | #define PART2 2 | #include "test.h" 3 | 4 | void test2(id p) { 5 | [p release]; 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/debug-info-member.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -g < %s | grep DW_TAG_member 2 | 3 | struct A { int x; } a; 4 | -------------------------------------------------------------------------------- /test/CodeGen/unaligned-memcpy.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - 2 | 3 | void bork() { 4 | char Qux[33] = {0}; 5 | } 6 | -------------------------------------------------------------------------------- /test/Driver/preprocessor.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -E -x c-header %s > %t 2 | // RUN: grep 'B B' %t 3 | 4 | #define A B 5 | A A 6 | 7 | -------------------------------------------------------------------------------- /test/Driver/redundant-args.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -target x86_64-apple-darwin10 \ 2 | // RUN: -Werror -x c -x c -fsyntax-only %s 3 | -------------------------------------------------------------------------------- /test/Driver/working-directory-and-abs.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -working-directory=%S %S/working-directory-and-abs.c -fsyntax-only 2 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/rewrite-includes1.h: -------------------------------------------------------------------------------- 1 | #pragma clang system_header 2 | included_line1 3 | #include "rewrite-includes2.h" 4 | -------------------------------------------------------------------------------- /test/Index/targeted-cursor.m.h: -------------------------------------------------------------------------------- 1 | 2 | @interface I 3 | 4 | -(void)mm:(void (^)(I*))block; 5 | -(void)mm2:(I*)i; 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /test/Modules/Inputs/DependsOnModule.framework/Frameworks/SubFramework.framework/Headers/Other.h: -------------------------------------------------------------------------------- 1 | double *sub_framework_other; 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/DependsOnModule.framework/PrivateHeaders/DependsOnModulePrivate.h: -------------------------------------------------------------------------------- 1 | int depends_on_module_private; 2 | 3 | -------------------------------------------------------------------------------- /test/PCH/Inputs/chain-remap-types2.h: -------------------------------------------------------------------------------- 1 | void h(X*); 2 | 3 | @interface X (Blah) { 4 | } 5 | @end 6 | 7 | void g(X*); 8 | 9 | -------------------------------------------------------------------------------- /test/Parser/c-namespace.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only %s 2 | void bla1() { 3 | struct XXX; 4 | int XXX; 5 | } 6 | 7 | -------------------------------------------------------------------------------- /test/Parser/cxx-variadic-func.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only %s 2 | 3 | void f(...) { 4 | int g(int(...)); 5 | } 6 | -------------------------------------------------------------------------------- /test/Preprocessor/missing-system-header.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -verify -fsyntax-only %s 2 | #include "missing-system-header.h" 3 | -------------------------------------------------------------------------------- /test/Preprocessor/stringize_space2.c: -------------------------------------------------------------------------------- 1 | /* RUN: %clang_cc1 -E %s | grep 'a c' 2 | */ 3 | #define t(x) #x 4 | t(a 5 | c) 6 | 7 | -------------------------------------------------------------------------------- /ModuleInfo.txt: -------------------------------------------------------------------------------- 1 | # This file provides information for llvm-top 2 | DepModule: llvm 3 | ConfigCmd: 4 | ConfigTest: 5 | BuildCmd: 6 | -------------------------------------------------------------------------------- /bindings/python/tests/cindex/INPUTS/header1.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER1 2 | #define HEADER1 3 | 4 | #include "header3.h" 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /bindings/python/tests/cindex/INPUTS/header2.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER2 2 | #define HEADER2 3 | 4 | #include "header3.h" 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /test/ARCMT/GC.h: -------------------------------------------------------------------------------- 1 | 2 | @interface ExtInterface { 3 | __strong ExtInterface *myivar; 4 | __strong void *gcVar; 5 | } 6 | @end 7 | -------------------------------------------------------------------------------- /test/CodeGen/2007-12-16-AsmNoUnwind.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | grep nounwind 2 | 3 | void bar() { asm (""); } 4 | -------------------------------------------------------------------------------- /test/Driver/m_and_mm.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -### \ 2 | // RUN: -M -MM %s 2> %t 3 | // RUN: grep '"-sys-header-deps"' %t | count 0 4 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/rewrite-includes7.h: -------------------------------------------------------------------------------- 1 | #ifndef REWRITE_INCLUDES_7 2 | #define REWRITE_INCLUDES_7 3 | included_line7 4 | #endif 5 | -------------------------------------------------------------------------------- /test/Lexer/badstring_in_if0.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E %s 2>&1 | not grep error 2 | #if 0 3 | 4 | " 5 | 6 | ' 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /test/Lexer/comment-escape.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -fsyntax-only %s 2 | // rdar://6757323 3 | // foo \ 4 | 5 | #define blork 32 6 | 7 | -------------------------------------------------------------------------------- /test/Modules/Inputs/MethodPoolA.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | @interface A 6 | + (int)method1; 7 | - (int)method2:(int)param; 8 | @end 9 | -------------------------------------------------------------------------------- /test/Modules/Inputs/def-include.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | struct B { 12 | int b1; 13 | }; 14 | -------------------------------------------------------------------------------- /test/Modules/Inputs/normal-module-map/nested/module.map: -------------------------------------------------------------------------------- 1 | module libNested { 2 | header "nested1.h" 3 | header "nested2.h" 4 | } -------------------------------------------------------------------------------- /test/PCH/Inputs/cxx-method.h: -------------------------------------------------------------------------------- 1 | struct S { 2 | void m(int x); 3 | 4 | operator const char*(); 5 | operator char*(); 6 | }; 7 | -------------------------------------------------------------------------------- /test/Preprocessor/macro_fn_placemarker.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -E | grep 'foo(A, )' 2 | 3 | #define X(Y) foo(A, Y) 4 | X() 5 | 6 | -------------------------------------------------------------------------------- /test/Preprocessor/macro_paste_none.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E %s | grep '!!' 2 | 3 | #define A(B,C) B ## C 4 | 5 | !A(,)! 6 | 7 | -------------------------------------------------------------------------------- /test/Sema/text-diag.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only %s 2 | unsigned char *foo = "texto\ 3 | que continua\ 4 | e continua"; 5 | -------------------------------------------------------------------------------- /www/analyzer/images/tree/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/analyzer/images/tree/minus.gif -------------------------------------------------------------------------------- /www/analyzer/images/tree/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/analyzer/images/tree/plus.gif -------------------------------------------------------------------------------- /www/analyzer/latest_checker.html.incl: -------------------------------------------------------------------------------- 1 | checker-269.tar.bz2 (built September 25, 2012) 2 | -------------------------------------------------------------------------------- /test/CodeGen/2007-11-07-AlignedMemcpy.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | void bork() { 3 | int Qux[33] = {0}; 4 | } 5 | -------------------------------------------------------------------------------- /test/CodeGen/2007-11-29-ArraySizeFromInitializer.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o %t 2 | 3 | int array[] = {1, 2, 3, 4, 5}; 4 | 5 | -------------------------------------------------------------------------------- /test/CodeGen/2009-07-31-DbgDeclare.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -S -g -o %t.s %s 2 | void foo() { 3 | int i = 0; 4 | i = 42; 5 | } 6 | -------------------------------------------------------------------------------- /test/CodeGen/2011-03-02-UnionInitializer.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - 2 | union { int :3; double f; } u17_017 = {17.17}; 3 | -------------------------------------------------------------------------------- /test/CodeGen/extern-block-var.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o %t 2 | 3 | int f() { 4 | extern int a; 5 | return a; 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/int-to-pointer.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o %t 2 | 3 | void *test(int i) 4 | { 5 | return (void *)i; 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/pointer-cmp-type.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - | grep "icmp ult" 2 | 3 | int a(char* a, char* b) {return a< 10; }" 2 | 3 | int a(int x) { return x 4 | < 10; } 5 | -------------------------------------------------------------------------------- /test/Preprocessor/function_macro_file.c: -------------------------------------------------------------------------------- 1 | /* RUN: %clang_cc1 -E -P %s | grep f 2 | */ 3 | 4 | #include "function_macro_file.h" 5 | () 6 | -------------------------------------------------------------------------------- /test/Preprocessor/macro_paste_spacing.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -E | grep "^xy$" 2 | 3 | #define A x ## y 4 | blah 5 | 6 | A 7 | 8 | -------------------------------------------------------------------------------- /test/Preprocessor/missing-system-header.h: -------------------------------------------------------------------------------- 1 | #pragma clang system_header 2 | #include "not exist" // expected-error {{file not found}} 3 | -------------------------------------------------------------------------------- /test/Sema/carbon.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -fsyntax-only %s -print-stats 2 | #ifdef __APPLE__ 3 | #include 4 | #endif 5 | 6 | -------------------------------------------------------------------------------- /test/SemaCXX/Inputs/malloc.h: -------------------------------------------------------------------------------- 1 | extern "C" { 2 | extern void *malloc (__SIZE_TYPE__ __size) throw () __attribute__ ((__malloc__)) ; 3 | } 4 | -------------------------------------------------------------------------------- /www/analyzer/images/analyzer_html.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/analyzer/images/analyzer_html.png -------------------------------------------------------------------------------- /www/analyzer/images/tree/bullet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/analyzer/images/tree/bullet.gif -------------------------------------------------------------------------------- /test/ASTMerge/Inputs/class2.cpp: -------------------------------------------------------------------------------- 1 | struct A { 2 | int x; 3 | }; 4 | 5 | struct B : A { 6 | int y; 7 | int foo(); 8 | }; 9 | 10 | -------------------------------------------------------------------------------- /test/CodeGen/2002-07-17-StringConstant.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | 4 | char * foo() { return "\\begin{"; } 5 | -------------------------------------------------------------------------------- /test/CodeGen/2004-05-21-IncompleteEnum.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -w -emit-llvm %s -o /dev/null 2 | 3 | void test(enum foo *X) { 4 | } 5 | 6 | -------------------------------------------------------------------------------- /test/CodeGen/2006-09-25-DebugFilename.h: -------------------------------------------------------------------------------- 1 | extern int exfunc(int a); 2 | 3 | static inline int hfunc1() 4 | { 5 | return exfunc(1); 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/2009-07-14-VoidPtr.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - 2 | // PR4556 3 | 4 | extern void foo; 5 | void *bar = &foo; 6 | 7 | -------------------------------------------------------------------------------- /test/CodeGen/struct-comma.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - 2 | 3 | struct S {int a, b;} x; 4 | void a(struct S* b) {*b = (r(), x);} 5 | -------------------------------------------------------------------------------- /test/Driver/Inputs/montavista_i686_tree/usr/lib/gcc/i686-montavista-linux/4.2.0/libgcc.a: -------------------------------------------------------------------------------- 1 | dummy file for gcc toolchain detection (libgcc.a) 2 | -------------------------------------------------------------------------------- /test/Modules/Inputs/DependsOnModule.framework/Headers/cxx_other.h: -------------------------------------------------------------------------------- 1 | class CXXOnly { 2 | public: 3 | CXXOnly(); 4 | ~CXXOnly(); 5 | }; 6 | -------------------------------------------------------------------------------- /test/Modules/Inputs/MutuallyRecursive1.framework/Headers/MutuallyRecursive1.h: -------------------------------------------------------------------------------- 1 | 2 | @__experimental_modules_import MutuallyRecursive2; 3 | 4 | -------------------------------------------------------------------------------- /test/Modules/Inputs/submodules/hash_map.h: -------------------------------------------------------------------------------- 1 | template class hash_map { }; 2 | 3 | #define HAVE_HASH_MAP 4 | 5 | -------------------------------------------------------------------------------- /test/Preprocessor/dump-options.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang %s -E -dD | grep __INTMAX_MAX__ 2 | // RUN: %clang %s -E -dM | grep __INTMAX_MAX__ 3 | 4 | -------------------------------------------------------------------------------- /test/Preprocessor/macro_paste_bcpl_comment.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -Eonly 2>&1 | grep error 2 | 3 | #define COMM1 / ## / 4 | COMM1 5 | 6 | -------------------------------------------------------------------------------- /www/analyzer/images/analyzer_xcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/analyzer/images/analyzer_xcode.png -------------------------------------------------------------------------------- /www/analyzer/images/scan_build_cmd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/analyzer/images/scan_build_cmd.png -------------------------------------------------------------------------------- /bindings/python/tests/cindex/INPUTS/include.cpp: -------------------------------------------------------------------------------- 1 | #include "header1.h" 2 | #include "header2.h" 3 | #include "header1.h" 4 | 5 | int main() { } 6 | -------------------------------------------------------------------------------- /test/CodeGen/2007-05-08-PCH.c: -------------------------------------------------------------------------------- 1 | // PR 1400 2 | // RUN: %clang_cc1 -x c-header %s -o /dev/null 3 | 4 | int main() { 5 | return 0; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /test/CodeGen/2007-08-21-ComplexCst.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -O2 -emit-llvm %s -o /dev/null 2 | void f(_Complex float z); 3 | void g() { f(1.0i); } 4 | -------------------------------------------------------------------------------- /test/CodeGen/2010-03-09-DbgInfo.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -emit-llvm -S -O0 -g %s -o - | grep DW_TAG_variable 2 | unsigned char ctable1[1] = { 0001 }; 3 | -------------------------------------------------------------------------------- /test/CodeGen/static-local-union.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm < %s 2 | 3 | int a() {static union{int a;} r[2] = {1,2};return r[1].a;} 4 | 5 | -------------------------------------------------------------------------------- /test/CodeGenCXX/PR4827-cast.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -o - %s 2 | struct A; 3 | struct B; 4 | extern A *f(); 5 | void a() { (B *) f(); } 6 | -------------------------------------------------------------------------------- /test/Driver/Inputs/montavista_i686_tree/usr/lib/gcc/i686-montavista-linux/4.2.0/crtbegin.o: -------------------------------------------------------------------------------- 1 | dummy file for gcc toolchain detection (crtbegin.o) 2 | -------------------------------------------------------------------------------- /test/Lexer/char-literal-encoding-error.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/test/Lexer/char-literal-encoding-error.c -------------------------------------------------------------------------------- /test/Modules/Inputs/category_other.h: -------------------------------------------------------------------------------- 1 | @__experimental_modules_import category_top; 2 | 3 | @interface Foo(Other) 4 | -(void)other; 5 | @end 6 | 7 | -------------------------------------------------------------------------------- /test/PCH/objc_import.h: -------------------------------------------------------------------------------- 1 | /* For use with the objc_import.m test */ 2 | 3 | @interface TestPCH 4 | + alloc; 5 | - (void)instMethod; 6 | @end 7 | 8 | -------------------------------------------------------------------------------- /test/Parser/argument_scope.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only %s 2 | typedef struct foo foo; 3 | 4 | void blah(int foo) { 5 | foo = 1; 6 | } 7 | -------------------------------------------------------------------------------- /test/Preprocessor/macro_arg_keyword.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E %s | grep xxx-xxx 2 | 3 | #define foo(return) return-return 4 | 5 | foo(xxx) 6 | 7 | -------------------------------------------------------------------------------- /tools/scan-view/Resources/FileRadar.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/tools/scan-view/Resources/FileRadar.scpt -------------------------------------------------------------------------------- /tools/scan-view/Resources/bugcatcher.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/tools/scan-view/Resources/bugcatcher.ico -------------------------------------------------------------------------------- /www/analyzer/images/example_use_assert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/analyzer/images/example_use_assert.png -------------------------------------------------------------------------------- /test/ASTMerge/Inputs/var2.c: -------------------------------------------------------------------------------- 1 | int *x0; 2 | double *x1; 3 | int x2; 4 | int xarray0[17]; 5 | int xarray1[17]; 6 | int xarray2[]; 7 | int xarray3[17]; 8 | -------------------------------------------------------------------------------- /test/CodeGen/2003-08-20-vfork-bug.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | extern int vfork(void); 4 | test() { 5 | vfork(); 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/2004-02-14-ZeroInitializer.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s 2 | 3 | // CHECK: zeroinitializer 4 | int X[1000]; 5 | -------------------------------------------------------------------------------- /test/CodeGen/2006-09-21-IncompleteElementType.c: -------------------------------------------------------------------------------- 1 | // RUN: not %clang_cc1 %s -emit-llvm -o /dev/null 2 | 3 | struct A X[(927 - 37) / sizeof(struct A)]; 4 | -------------------------------------------------------------------------------- /test/Driver/noexecstack.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -### %s -c -o tmp.o -triple i686-pc-linux-gnu -integrated-as -Wa,--noexecstack 2>&1 | grep "mnoexecstack" 2 | -------------------------------------------------------------------------------- /test/Index/Inputs/remap-complete-to.c: -------------------------------------------------------------------------------- 1 | int f0(int *pointer1, float *pointer2) { 2 | return pointer2 - pointer1; 3 | } 4 | 5 | void g() { 6 | 7 | -------------------------------------------------------------------------------- /test/Modules/Inputs/def.h: -------------------------------------------------------------------------------- 1 | #include "def-include.h" 2 | 3 | 4 | 5 | @interface A { 6 | @public 7 | int ivar; 8 | } 9 | @end 10 | 11 | 12 | -------------------------------------------------------------------------------- /test/PCH/Inputs/chain-macro-override2.h: -------------------------------------------------------------------------------- 1 | #define f() g() 2 | #undef g 3 | #undef h 4 | #define h() g() 5 | int x; 6 | #undef h2 7 | 8 | int h3(); 9 | -------------------------------------------------------------------------------- /test/PCH/cxx-namespaces.h: -------------------------------------------------------------------------------- 1 | // Header for PCH test cxx-namespaces.cpp 2 | 3 | namespace N { 4 | namespace { 5 | int x; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /test/Preprocessor/skipping_unclean.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E %s | grep bark 2 | 3 | #if 0 4 | blah 5 | #\ 6 | else 7 | bark 8 | #endif 9 | 10 | -------------------------------------------------------------------------------- /test/Sema/arg-scope-c99.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -std=c99 -verify %s 2 | // expected-no-diagnostics 3 | void bb(int sz, int ar[sz][sz]) { } 4 | -------------------------------------------------------------------------------- /test/Sema/default1.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | void f(int i = 0); // expected-error {{C does not support default arguments}} 3 | -------------------------------------------------------------------------------- /www/analyzer/images/example_null_pointer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/analyzer/images/example_null_pointer.png -------------------------------------------------------------------------------- /test/CodeGen/2008-01-24-StructAlignAndBitFields.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - 2 | 3 | struct U { char a; short b; int c:25; char d; } u; 4 | 5 | -------------------------------------------------------------------------------- /test/CodeGenCXX/array-pointer-decay.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - 2 | 3 | void f(const char*); 4 | 5 | void g() { 6 | f("hello"); 7 | } 8 | -------------------------------------------------------------------------------- /test/Driver/nostdincxx.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clangxx -nostdinc++ %s 2>&1 | FileCheck %s 2 | // XFAIL: win32 3 | // CHECK: file not found 4 | #include 5 | -------------------------------------------------------------------------------- /test/Driver/nostdlib.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -target i686-pc-linux-gnu -### -nostdlib %s 2> %t 2 | // RUN: FileCheck < %t %s 3 | // 4 | // CHECK-NOT: start-group 5 | -------------------------------------------------------------------------------- /test/Driver/unknown-arg.c: -------------------------------------------------------------------------------- 1 | // RUN: not %clang_cc1 %s -cake-is-lie 2> %t.log 2 | // RUN: FileCheck %s -input-file=%t.log 3 | 4 | // CHECK: unknown argument 5 | -------------------------------------------------------------------------------- /test/Lexer/clang-keywords.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | __char16_t c16; 4 | void f(__char32_t) { } 5 | -------------------------------------------------------------------------------- /test/Modules/Inputs/CmdLine.framework/Headers/CmdLine.h: -------------------------------------------------------------------------------- 1 | #ifdef FOO_RETURNS_INT_PTR 2 | int *foo(void); 3 | #else 4 | float *foo(void); 5 | #endif 6 | 7 | -------------------------------------------------------------------------------- /test/Modules/Inputs/MutuallyRecursive2.framework/Headers/MutuallyRecursive2.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | @__experimental_modules_import MutuallyRecursive1; 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/Modules/Inputs/System/usr/include/stdio.h: -------------------------------------------------------------------------------- 1 | typedef struct { int id; } FILE; 2 | int fprintf(FILE*restrict, const char* restrict format, ...); 3 | 4 | -------------------------------------------------------------------------------- /test/Modules/Inputs/wildcard-submodule-exports/C_one.h: -------------------------------------------------------------------------------- 1 | @__experimental_modules_import A.One; 2 | @__experimental_modules_import B.One; 3 | 4 | long *C1; 5 | -------------------------------------------------------------------------------- /test/PCH/tentative-defs.h: -------------------------------------------------------------------------------- 1 | // Header for PCH test tentative-defs.c 2 | int variable; 3 | 4 | 5 | 6 | 7 | 8 | 9 | int incomplete_array[]; 10 | -------------------------------------------------------------------------------- /test/Parser/objc-missing-impl.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | @end // expected-error {{'@end' must appear in an Objective-C context}} 3 | -------------------------------------------------------------------------------- /test/Parser/parmvardecl_conversion.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | 4 | void f (int p[]) { p++; } 5 | 6 | -------------------------------------------------------------------------------- /test/SemaObjC/cocoa.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang -arch x86_64 %s -fsyntax-only -Xclang -print-stats 2 | #ifdef __APPLE__ 3 | #include 4 | #endif 5 | 6 | -------------------------------------------------------------------------------- /www/analyzer/images/example_custom_assert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/analyzer/images/example_custom_assert.png -------------------------------------------------------------------------------- /test/ASTMerge/Inputs/var1.c: -------------------------------------------------------------------------------- 1 | int *x0; 2 | float **x1; 3 | #include "var1.h" 4 | int xarray0[17]; 5 | int xarray1[]; 6 | int xarray2[18]; 7 | int xarray3[18]; 8 | -------------------------------------------------------------------------------- /test/Analysis/PR12905.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -analyze -analyzer-checker=core %s 2 | // PR12905 3 | 4 | void C(void); 5 | 6 | void t(void) { 7 | C(); 8 | } 9 | -------------------------------------------------------------------------------- /test/CXX/basic/basic.start/basic.start.main/p2c.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | 4 | int main() { 5 | } 6 | -------------------------------------------------------------------------------- /test/CodeGen/2002-09-08-PointerShifts.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | 4 | int foo(int *A, unsigned X) { 5 | return A[X]; 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/2003-11-12-VoidString.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | void query_newnamebuf(void) { ((void)"query_newnamebuf"); } 4 | 5 | -------------------------------------------------------------------------------- /test/CodeGen/2003-11-13-TypeSafety.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | grep getelementptr 2 | 3 | int *test(int *X, int Y) { 4 | return X + Y; 5 | } 6 | -------------------------------------------------------------------------------- /test/CodeGen/2005-02-20-AggregateSAVEEXPR.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -o /dev/null -emit-llvm 2 | 3 | int foo(__complex float c) { 4 | return creal(c); 5 | } 6 | -------------------------------------------------------------------------------- /test/CodeGen/2006-03-17-KnRMismatch.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - 2 | 3 | void regnode(int op); 4 | 5 | void regnode(op) 6 | char op; 7 | { 8 | } 9 | -------------------------------------------------------------------------------- /test/CodeGen/2007-04-17-ZeroSizeBitFields.c: -------------------------------------------------------------------------------- 1 | // PR 1332 2 | // RUN: %clang_cc1 %s -emit-llvm -o /dev/null 3 | 4 | struct Z { int a:1; int :0; int c:1; } z; 5 | -------------------------------------------------------------------------------- /test/CodeGen/2009-03-01-MallocNoAlias.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | grep noalias 2 | 3 | void * __attribute__ ((malloc)) foo (void) { return 0; } 4 | -------------------------------------------------------------------------------- /test/CodeGen/a15.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -target armv7-none-linux-gnueabi -mcpu=cortex-a15 -emit-llvm -S %s -o /dev/null 2 | 3 | int main() { 4 | return 0; 5 | } 6 | -------------------------------------------------------------------------------- /test/CodeGen/bool-init.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm < %s | grep i1 | count 1 2 | 3 | // Check that the type of this global isn't i1 4 | _Bool test = &test; 5 | -------------------------------------------------------------------------------- /test/CodeGen/string-literal-unicode-conversion.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/test/CodeGen/string-literal-unicode-conversion.c -------------------------------------------------------------------------------- /test/CodeGenCXX/unary-type-trait.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm-only -verify %s 2 | // expected-no-diagnostics 3 | 4 | bool a() { return __is_pod(int); } 5 | -------------------------------------------------------------------------------- /test/Frontend/undef.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -undef -x assembler-with-cpp -E %s 2 | #ifndef __ASSEMBLER__ 3 | #error "Must be preprocessed as assembler." 4 | #endif 5 | -------------------------------------------------------------------------------- /test/Index/preamble-reparse-cmd-define.c.remap: -------------------------------------------------------------------------------- 1 | 2 | #ifndef CMD_MACRO 3 | #error CMD_MACRO undefined 4 | #endif 5 | 6 | int foo() { 7 | return x; 8 | } 9 | -------------------------------------------------------------------------------- /test/PCH/Inputs/chain-ext_vector1.h: -------------------------------------------------------------------------------- 1 | // First header file for chain-ext_vector.c PCH test 2 | 3 | typedef __attribute__((ext_vector_type(2))) float float2; 4 | -------------------------------------------------------------------------------- /test/PCH/Inputs/chain-ext_vector2.h: -------------------------------------------------------------------------------- 1 | // Second header file for chain-ext_vector.c PCH test 2 | 3 | typedef __attribute__((ext_vector_type(4))) float float4; 4 | -------------------------------------------------------------------------------- /test/PCH/cxx-offsetof-base.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx-offsetof-base.h 2 | // RUN: %clang_cc1 -include-pch %t -fsyntax-only %s 3 | -------------------------------------------------------------------------------- /test/Parser/backtrack-crash.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -fsyntax-only -verify -pedantic 2 | // PR7072 3 | ()( // expected-error {{expected unqualified-id}} 4 | 5 | -------------------------------------------------------------------------------- /test/Preprocessor/macro_undef.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -dM -undef -Dfoo=1 -E %s | FileCheck %s 2 | 3 | // CHECK-NOT: #define __clang__ 4 | // CHECK: #define foo 1 5 | -------------------------------------------------------------------------------- /test/Preprocessor/stringize_space.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E %s | grep -- '-"" , - "" , -"" , - ""' 2 | 3 | #define A(b) -#b , - #b , -# b , - # b 4 | A() 5 | -------------------------------------------------------------------------------- /test/SemaCXX/decltype-98.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -std=c++98 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | extern int x; 4 | __decltype(1) x = 3; 5 | -------------------------------------------------------------------------------- /test/SemaCXX/ms-exception-spec.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -fsyntax-only -verify -fms-extensions 2 | // expected-no-diagnostics 3 | 4 | void f() throw(...) { } 5 | -------------------------------------------------------------------------------- /www/analyzer/images/example_attribute_nonnull.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/analyzer/images/example_attribute_nonnull.png -------------------------------------------------------------------------------- /test/CodeGen/2004-05-07-VarArrays.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | int foo(int len, char arr[][len], int X) { 4 | return arr[X][0]; 5 | } 6 | -------------------------------------------------------------------------------- /test/CodeGen/2005-07-26-UnionInitCrash.c: -------------------------------------------------------------------------------- 1 | // PR607 2 | // RUN: %clang_cc1 %s -emit-llvm -o - 3 | union { char bytes[8]; double alignment; }EQ1 = {0,0,0,0,0,0,0,0}; 4 | -------------------------------------------------------------------------------- /test/CodeGen/2005-09-20-ComplexConstants.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o /dev/null 2 | 3 | const double _Complex x[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; 4 | 5 | -------------------------------------------------------------------------------- /test/CodeGen/2007-02-16-VoidPtrDiff.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - 2 | 3 | void foo(void *ptr, int test) { 4 | (ptr - ((void *) test + 0x2000)); 5 | } 6 | -------------------------------------------------------------------------------- /test/CodeGen/cast.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o %t 2 | 3 | extern void go(const void *p); 4 | float v[2] = { 0.0, 1.0 }; 5 | void foo(void) { go(v); } 6 | 7 | -------------------------------------------------------------------------------- /test/CodeGen/pragma-pack-1.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -o - %s 2 | 3 | // PR4610 4 | #pragma pack(4) 5 | struct ref { 6 | struct ref *next; 7 | } refs; 8 | -------------------------------------------------------------------------------- /test/CodeGenCXX/debug-info-member.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang -fverbose-asm -g -S %s -o - | grep DW_ACCESS_public 2 | class A { 3 | public: 4 | int x; 5 | }; 6 | A a; 7 | -------------------------------------------------------------------------------- /test/Index/Inputs/foo.h: -------------------------------------------------------------------------------- 1 | extern int global_var; 2 | 3 | void foo_func(int param1); 4 | void bar_func(void); 5 | 6 | struct MyStruct { 7 | int field_var; 8 | }; 9 | -------------------------------------------------------------------------------- /test/Index/Inputs/preamble_macro_template.h: -------------------------------------------------------------------------------- 1 | #define STATIC_CAST static_cast 2 | 3 | template 4 | void foo(T *p) { 5 | (void)STATIC_CAST(0); 6 | } 7 | -------------------------------------------------------------------------------- /test/Lexer/cxx0x_keyword.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s 2>&1 2 | int static_assert; /* expected-error {{expected unqualified-id}} */ 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/DependsOnModule.framework/Frameworks/SubFramework.framework/Headers/SubFramework.h: -------------------------------------------------------------------------------- 1 | #include "SubFramework/Other.h" 2 | float *sub_framework; 3 | -------------------------------------------------------------------------------- /test/Modules/Inputs/NoUmbrella.framework/module_private.map: -------------------------------------------------------------------------------- 1 | explicit module NoUmbrella.Private { 2 | umbrella "PrivateHeaders" 3 | explicit module * { } 4 | } 5 | -------------------------------------------------------------------------------- /test/Modules/Inputs/diamond_bottom.h: -------------------------------------------------------------------------------- 1 | @__experimental_modules_import diamond_left; 2 | @__experimental_modules_import diamond_right; 3 | 4 | char bottom(char *x); 5 | -------------------------------------------------------------------------------- /test/Modules/Inputs/wildcard-submodule-exports/C_two.h: -------------------------------------------------------------------------------- 1 | @__experimental_modules_import A.Two; 2 | @__experimental_modules_import B.Two; 3 | 4 | unsigned long *C2; 5 | -------------------------------------------------------------------------------- /test/PCH/Inputs/chain-remap-types1.h: -------------------------------------------------------------------------------- 1 | @class X; 2 | 3 | struct Y { 4 | X *my_X; 5 | }; 6 | 7 | @interface X { 8 | } 9 | @property X *prop; 10 | @end 11 | -------------------------------------------------------------------------------- /test/PCH/pragma-weak.h: -------------------------------------------------------------------------------- 1 | // Header for PCH test pragma-weak.c 2 | 3 | #pragma weak weakvar 4 | 5 | 6 | 7 | 8 | 9 | 10 | #pragma weak undeclaredvar 11 | -------------------------------------------------------------------------------- /test/SemaCXX/nullptr-98.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -std=c++98 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | void f(void *); 4 | void g() { f(__nullptr); } 5 | -------------------------------------------------------------------------------- /test/SemaObjC/class-protocol.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | // pr5552 4 | 5 | @interface Protocol 6 | @end 7 | 8 | -------------------------------------------------------------------------------- /www/analyzer/images/example_cf_returns_retained.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/analyzer/images/example_cf_returns_retained.png -------------------------------------------------------------------------------- /www/analyzer/images/example_ns_returns_retained.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/analyzer/images/example_ns_returns_retained.png -------------------------------------------------------------------------------- /bindings/python/tests/cindex/INPUTS/hello.cpp: -------------------------------------------------------------------------------- 1 | #include "stdio.h" 2 | 3 | int main(int argc, char* argv[]) { 4 | printf("hello world\n"); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /test/ASTMerge/Inputs/function1.c: -------------------------------------------------------------------------------- 1 | void f0(int); 2 | void f1(int, float); 3 | void f2(); 4 | void f3(void); 5 | void f4(int, int); 6 | int f5(int) __attribute__((const)); 7 | -------------------------------------------------------------------------------- /test/CodeGen/2002-12-15-GlobalRedefinition.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | extern char algbrfile[9]; 4 | char algbrfile[9] = "abcdefgh"; 5 | 6 | -------------------------------------------------------------------------------- /test/CodeGen/2004-03-07-ComplexDivEquals.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | 4 | void test(__complex__ double D, double X) { 5 | D /= X; 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/2007-10-02-VolatileArray.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - | grep volatile 2 | // PR1647 3 | 4 | void foo(volatile int *p) 5 | { 6 | p[0] = 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/CodeGen/2007-10-15-VoidPtr.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | void bork(void **data) { 3 | (*(unsigned short *) (&(data[37])[927]) = 0); 4 | } 5 | -------------------------------------------------------------------------------- /test/CodeGen/2008-01-11-ChainConsistency.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - -fnested-functions | not grep nest 2 | 3 | void n1(void) { void a(void) { a(); } a(); } 4 | -------------------------------------------------------------------------------- /test/CodeGen/address-space-cast.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm < %s 2 | 3 | volatile unsigned char* const __attribute__((address_space(1))) serial_ctrl = 0x02; 4 | 5 | -------------------------------------------------------------------------------- /test/CodeGen/boolassign.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o %t 2 | 3 | int testBoolAssign(void) { 4 | int ss; 5 | if ((ss = ss && ss)) {} 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /test/CodeGen/mcount.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -pg -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s 2 | void foo(void) { 3 | // CHECK: call void @mcount() 4 | } 5 | -------------------------------------------------------------------------------- /test/Driver/invalid-o-level.c: -------------------------------------------------------------------------------- 1 | // RUN: not %clang_cc1 %s -O900 2> %t.log 2 | // RUN: FileCheck %s -input-file=%t.log 3 | 4 | // CHECK: invalid value '900' in '-O900' 5 | -------------------------------------------------------------------------------- /test/Index/Inputs/c-index-pch.h: -------------------------------------------------------------------------------- 1 | #ifndef C_INDEX_PCH_H 2 | #define C_INDEX_PCH_H 3 | 4 | void foo(int i, float f); 5 | extern int bar; 6 | 7 | #endif // C_INDEX_PCH_H 8 | -------------------------------------------------------------------------------- /test/Modules/Inputs/MethodPoolB.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | @interface B 11 | - (int)method1; 12 | - (int)method2:(float)param; 13 | @end 14 | -------------------------------------------------------------------------------- /test/Preprocessor/unterminated.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E -verify %s 2 | // PR3096 3 | #ifdef FOO // expected-error {{unterminated conditional directive}} 4 | /* /* */ 5 | 6 | -------------------------------------------------------------------------------- /test/SemaCXX/PR8012.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 2 | 3 | void foo (int operator+); // expected-error{{cannot be the name of a parameter}} 4 | -------------------------------------------------------------------------------- /www/analyzer/images/example_cf_returns_retained_gc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KhronosGroup/webcl-clang-dev/HEAD/www/analyzer/images/example_cf_returns_retained_gc.png -------------------------------------------------------------------------------- /test/CXX/class/p1-0x.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 2 | // expected-no-diagnostics 3 | namespace Test1 { 4 | 5 | class A final { }; 6 | 7 | } 8 | -------------------------------------------------------------------------------- /test/CodeGen/2003-08-20-BadBitfieldRef.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | void foo() 4 | { 5 | char *ap; 6 | ap[1] == '-' && ap[2] == 0; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /test/CodeGen/2003-10-06-NegateExprType.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | 4 | extern int A[10]; 5 | void Func(int *B) { 6 | B - &A[5]; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /test/CodeGen/2003-11-20-ComplexDivision.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | int test() { 4 | __complex__ double C; 5 | double D; 6 | C / D; 7 | } 8 | -------------------------------------------------------------------------------- /test/CodeGen/2003-12-14-ExternInlineSupport.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -std=gnu89 %s -emit-llvm -o - | not grep dead_function 2 | 3 | extern __inline__ void dead_function() {} 4 | -------------------------------------------------------------------------------- /test/CodeGen/2005-01-02-PointerDifference.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s 2 | 3 | // CHECK: sdiv exact 4 | int Diff(int *P, int *Q) { return P-Q; } 5 | -------------------------------------------------------------------------------- /test/CodeGen/2007-05-16-EmptyStruct.c: -------------------------------------------------------------------------------- 1 | // PR 1417 2 | // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s 3 | 4 | // CHECK: global %struct.anon* null 5 | struct { } *X; 6 | -------------------------------------------------------------------------------- /test/CodeGenCXX/2009-07-16-Using.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | namespace A { 4 | typedef int B; 5 | } 6 | struct B { 7 | }; 8 | using ::A::B; 9 | -------------------------------------------------------------------------------- /test/CodeGenCXX/debug-info-method.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang -fverbose-asm -g -S %s -o - | grep DW_ACCESS_protected 2 | class A { 3 | protected: 4 | int foo(); 5 | }; 6 | A a; 7 | -------------------------------------------------------------------------------- /test/CodeGenObjC/2008-10-23-invalid-icmp.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -o %t %s 2 | 3 | @protocol P @end 4 | 5 | int f0(id

d) { 6 | return (d != ((void*) 0)); 7 | } 8 | -------------------------------------------------------------------------------- /test/Driver/arch.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -target armv7a-unknown-linux-gnueabi -S -emit-llvm %s -o - | FileCheck %s 2 | 3 | // CHECK: target triple = "armv7-unknown-linux-gnueabi" 4 | -------------------------------------------------------------------------------- /test/Index/Inputs/Headers/crash.h: -------------------------------------------------------------------------------- 1 | // Produce a crash if CRASH is defined. 2 | #ifdef CRASH 3 | # pragma clang __debug crash 4 | #endif 5 | 6 | const char *getCrashString(); 7 | -------------------------------------------------------------------------------- /test/Misc/working-directory.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -working-directory %S working-directory.c -IInputs -fsyntax-only 2 | 3 | #include "working-directory.h" 4 | 5 | Foo bar; 6 | -------------------------------------------------------------------------------- /test/Modules/Inputs/lookup_left.hpp: -------------------------------------------------------------------------------- 1 | int *f0(int*); 2 | 3 | #pragma weak weak_identifier // expected-warning{{weak identifier 'weak_identifier' never declared}} 4 | 5 | 6 | -------------------------------------------------------------------------------- /test/PCH/Inputs/__va_list_tag.h: -------------------------------------------------------------------------------- 1 | // Header for PCH test __va_list_tag.h 2 | 3 | typedef __builtin_va_list va_list; 4 | 5 | extern int myvfprintf(const char * , va_list); 6 | -------------------------------------------------------------------------------- /test/Preprocessor/dumptokens_phyloc.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -dump-tokens %s 2>&1 | grep "Spelling=.*dumptokens_phyloc.c:3:20" 2 | 3 | #define TESTPHYLOC 10 4 | 5 | TESTPHYLOC 6 | -------------------------------------------------------------------------------- /test/Preprocessor/indent_macro.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E %s | grep '^ zzap$' 2 | 3 | // zzap is on a new line, should be indented. 4 | #define BLAH zzap 5 | BLAH 6 | 7 | -------------------------------------------------------------------------------- /test/Preprocessor/macro_arg_directive.h: -------------------------------------------------------------------------------- 1 | // Support header for macro_arg_directive.c 2 | 3 | int n; 4 | 5 | struct S { 6 | int k; 7 | }; 8 | 9 | void g(int); 10 | -------------------------------------------------------------------------------- /test/Sema/ast-print.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -ast-print 2 | 3 | typedef void func_typedef(); 4 | func_typedef xxx; 5 | 6 | typedef void func_t(int x); 7 | func_t a; 8 | 9 | -------------------------------------------------------------------------------- /utils/ABITest/return-types-32/Makefile: -------------------------------------------------------------------------------- 1 | X_CFLAGS := -m32 2 | Y_CFLAGS := -m32 3 | CC_CFLAGS := -m32 4 | 5 | include ../Makefile.test.common 6 | 7 | TESTARGS += --max-args 0 8 | -------------------------------------------------------------------------------- /utils/ABITest/return-types-64/Makefile: -------------------------------------------------------------------------------- 1 | X_CFLAGS := -m64 2 | Y_CFLAGS := -m64 3 | CC_CFLAGS := -m64 4 | 5 | include ../Makefile.test.common 6 | 7 | TESTARGS += --max-args 0 8 | -------------------------------------------------------------------------------- /test/CXX/temp/temp.spec/temp.expl.spec/p13.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only %s 2 | 3 | template void f(T); 4 | 5 | template<> void f(int) { } 6 | void f(int) { } 7 | -------------------------------------------------------------------------------- /test/CodeGen/2003-08-29-HugeCharConst.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | void foo() { 4 | unsigned char int_latin1[] = "f\200\372b\200\343\200\340"; 5 | } 6 | -------------------------------------------------------------------------------- /test/CodeGen/2007-05-11-str-const.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -g %s -o /dev/null 2 | 3 | static unsigned char out[]={0,1}; 4 | static const unsigned char str1[]="1"; 5 | 6 | -------------------------------------------------------------------------------- /test/CodeGen/2008-02-26-inline-asm-bug.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm < %s | grep "\$0,\$1" 2 | 3 | void f() { 4 | int d1, d2; 5 | asm("%0,%1": "=r" (d1) : "r" (d2)); 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/hidden-visibility.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s 2 | 3 | // CHECK: hidden global 4 | int X __attribute__ ((__visibility__ ("hidden"))) = 123; 5 | -------------------------------------------------------------------------------- /test/CodeGen/kr-func-promote.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | grep "i32 @a(i32)" 2 | 3 | int a(); 4 | int a(x) short x; {return x;} 5 | 6 | -------------------------------------------------------------------------------- /test/CodeGenCXX/debug-info-wchar.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -g %s -o -| FileCheck %s 2 | void foo() { 3 | // CHECK: metadata !"wchar_t", 4 | const wchar_t w = L'x'; 5 | } 6 | -------------------------------------------------------------------------------- /test/CodeGenCXX/eval-recursive-constant.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm-only 2 | 3 | extern const int a,b; 4 | const int a=b,b=a; 5 | int c() { if (a) return 1; return 0; } 6 | -------------------------------------------------------------------------------- /test/CodeGenCXX/virtual-inherited-destructor.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm-only 2 | 3 | struct A { virtual ~A(); }; 4 | struct B : A { 5 | ~B() { } 6 | }; 7 | B x; 8 | 9 | -------------------------------------------------------------------------------- /test/Coverage/codegen-gnu.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -triple i386-unknown-unknown -fobjc-exceptions -fobjc-runtime=gcc -emit-llvm -o %t %s 2 | 3 | #include "objc-language-features.inc" 4 | -------------------------------------------------------------------------------- /test/Frontend/dependency-generation-crash.c: -------------------------------------------------------------------------------- 1 | // RUN: touch %t 2 | // RUN: chmod 0 %t 3 | // %clang -E -dependency-file bla -MT %t -MP -o %t -x c /dev/null 4 | // rdar://9286457 5 | -------------------------------------------------------------------------------- /test/Frontend/iframework.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -fsyntax-only -iframework %S/Inputs %s -Xclang -verify 2 | // expected-no-diagnostics 3 | 4 | #include 5 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/valid-class-01.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa. 5 | 6 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/valid-enum-01.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa. 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/valid-other-01.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa. 5 | 6 | -------------------------------------------------------------------------------- /test/Index/Inputs/get-cursor-includes-1.h: -------------------------------------------------------------------------------- 1 | #ifndef GET_CURSOR_INCLUDES_1_H 2 | #define GET_CURSOR_INCLUDES_1_H 3 | 4 | extern int blah; 5 | 6 | #endif // GET_CURSOR_INCLUDES_1_H 7 | -------------------------------------------------------------------------------- /test/Modules/Inputs/NoUmbrella.framework/module.map: -------------------------------------------------------------------------------- 1 | framework module NoUmbrella [system] { 2 | umbrella "Headers" 3 | module * { } 4 | 5 | exclude header "Boom.h" 6 | } 7 | -------------------------------------------------------------------------------- /test/Modules/Inputs/diamond_right.h: -------------------------------------------------------------------------------- 1 | @__experimental_modules_import diamond_top; 2 | 3 | double right(double *); 4 | 5 | struct left_and_right { 6 | int left, right; 7 | }; 8 | -------------------------------------------------------------------------------- /test/Modules/Inputs/redecl-merge-left-left.h: -------------------------------------------------------------------------------- 1 | @__experimental_modules_import redecl_merge_left; 2 | 3 | @class C4; 4 | void accept_a_C4(C4*); 5 | 6 | @class ClassWithDef; 7 | 8 | -------------------------------------------------------------------------------- /test/PCH/preprocess.h: -------------------------------------------------------------------------------- 1 | // Helper header for preprocess.c PCH test 2 | #ifndef PREPROCESS_H 3 | #define PREPROCESS_H 4 | 5 | typedef int a_typedef; 6 | 7 | #endif // PREPROCESS_H 8 | -------------------------------------------------------------------------------- /test/Parser/compound_literal.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | int main() { 4 | char *s; 5 | s = (char []){"whatever"}; 6 | } 7 | -------------------------------------------------------------------------------- /test/Parser/expressions.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | 3 | void test1() { 4 | @"s"; // expected-warning {{expression result unused}} 5 | } 6 | 7 | -------------------------------------------------------------------------------- /test/Parser/namelookup-bug-1.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -verify %s 2 | // expected-no-diagnostics 3 | 4 | typedef int Object; 5 | 6 | struct Object *pp; 7 | 8 | Object staticObject1; 9 | -------------------------------------------------------------------------------- /test/Sema/Inputs/pragma-arc-cf-code-audited.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | #pragma clang arc_cf_code_audited begin 17 | -------------------------------------------------------------------------------- /test/Sema/arg-scope.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | void aa(int b, int x[sizeof b]) {} 4 | 5 | void foo(int i, int A[i]) {} 6 | 7 | -------------------------------------------------------------------------------- /test/Sema/implicit-builtin-freestanding.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s 2 | // expected-no-diagnostics 3 | 4 | int malloc(int a) { return a; } 5 | 6 | -------------------------------------------------------------------------------- /test/SemaCXX/vla.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -verify %s 2 | 3 | // PR11925 4 | int n; 5 | int (&f())[n]; // expected-error {{function declaration cannot have variably modified type}} 6 | -------------------------------------------------------------------------------- /test/SemaObjC/method-no-context.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | 3 | - im0 { // expected-error{{missing context for method declaration}} 4 | int a; return 0; 5 | -------------------------------------------------------------------------------- /test/SemaTemplate/enum-forward.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -fms-compatibility %s 2 | 3 | template 4 | struct X { 5 | enum E *e; 6 | }; 7 | 8 | X xi; 9 | -------------------------------------------------------------------------------- /test/SemaTemplate/nested-linkage.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | 4 | extern "C" { extern "C++" { template C x(); } } 5 | -------------------------------------------------------------------------------- /www/demo/syntax.css: -------------------------------------------------------------------------------- 1 | /* LLVM syntax highlighting for the Web */ 2 | 3 | .llvm_type { font-style: oblique; color: green } 4 | .llvm_keyword { font-weight: bold; color: blue } 5 | -------------------------------------------------------------------------------- /test/CXX/dcl.decl/dcl.init/dcl.init.string/p2.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | char test1[1]="f"; // expected-error {{initializer-string for char array is too long}} 3 | -------------------------------------------------------------------------------- /test/CodeGen/2003-11-16-StaticArrayInit.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | void bar () { 4 | static char x[10]; 5 | static char *xend = x + 10; 6 | } 7 | 8 | 9 | -------------------------------------------------------------------------------- /test/CodeGen/2004-02-20-Builtins.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | not grep builtin 2 | double sqrt(double x); 3 | void zsqrtxxx(float num) { 4 | num = sqrt(num); 5 | } 6 | -------------------------------------------------------------------------------- /test/CodeGen/2004-06-08-OpaqueStructArg.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | struct fu; 4 | void foo(struct fu); 5 | void bar() { 6 | foo; 7 | } 8 | -------------------------------------------------------------------------------- /test/CodeGen/2007-09-14-NegatePointer.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - 2 | // PR1662 3 | 4 | int foo(unsigned char *test) { 5 | return 0U - (unsigned int )test; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /test/CodeGen/2008-03-26-PackedBitFields.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - 2 | 3 | 4 | struct S1757 { 5 | long double c; 6 | long int __attribute__((packed)) e:28; 7 | } x; 8 | -------------------------------------------------------------------------------- /test/CodeGen/2008-08-04-void-pointer-arithmetic.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -o - %s 2 | // 3 | 4 | int f0(void *a, void *b) { 5 | return a - b; 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/enum2.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -triple i386-unknown-unknown %s -g -emit-llvm -o /dev/null 2 | int v; 3 | enum e { MAX }; 4 | 5 | void foo (void) 6 | { 7 | v = MAX; 8 | } 9 | -------------------------------------------------------------------------------- /test/CodeGen/kr-style-block.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o %t -fblocks 2 | 3 | void foo (void(^)()); 4 | 5 | int main() 6 | { 7 | foo( 8 | ^() { } 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /test/CodeGen/long-double-x86.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - -triple=i686-apple-darwin9 | grep x86_fp80 2 | 3 | long double x = 0; 4 | int checksize[sizeof(x) == 16 ? 1 : -1]; 5 | -------------------------------------------------------------------------------- /test/CodeGen/static-forward-decl.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - -triple=i686-apple-darwin9 | grep "global i32 10" 2 | 3 | static int i; 4 | int*j=&i; 5 | static int i = 10; 6 | -------------------------------------------------------------------------------- /test/CodeGenCXX/2008-01-12-VecInit.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - 2 | // rdar://5685492 3 | 4 | typedef int __attribute__((vector_size(16))) v; 5 | v vt = {1, 2, 3, 4}; 6 | -------------------------------------------------------------------------------- /test/CodeGenCXX/enum.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm-only -verify %s 2 | // expected-no-diagnostics 3 | 4 | enum A { a } __attribute((packed)); 5 | int func(A x) { return x==a; } 6 | -------------------------------------------------------------------------------- /test/CodeGenObjC/2010-02-01-utf16-with-null.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s 2 | // rdar://7589850 3 | 4 | // CHECK-NOT: __ustring 5 | void *P = @"good\0bye"; 6 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/valid-function-01.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa. 5 | 6 | -------------------------------------------------------------------------------- /test/Index/Inputs/crash-recovery-reparse-remap.c: -------------------------------------------------------------------------------- 1 | 2 | #warning parsing remapped file 3 | 4 | 5 | 6 | int x; 7 | 8 | #pragma clang __debug crash 9 | 10 | int x; 11 | 12 | -------------------------------------------------------------------------------- /test/Lexer/msdos-cpm-eof.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s 2 | // expected-no-diagnostics 3 | 4 | int x; 5 | 6 |  7 | 8 | I am random garbage after ^Z 9 | -------------------------------------------------------------------------------- /test/Misc/warn-in-system-header.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -isystem %S %s -fsyntax-only -verify 2 | 3 | #include 4 | // expected-warning {{the cake is a lie}} 5 | -------------------------------------------------------------------------------- /test/Modules/Inputs/AlsoDependsOnModule.framework/Headers/AlsoDependsOnModule.h: -------------------------------------------------------------------------------- 1 | #import // expected-warning{{treating #import as an import of module 'Module'}} 2 | 3 | -------------------------------------------------------------------------------- /test/PCH/nonvisible-external-defs.h: -------------------------------------------------------------------------------- 1 | // Helper for PCH test nonvisible-external-defs.h 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | void f() { 10 | extern int g(int, int); 11 | } 12 | -------------------------------------------------------------------------------- /test/Preprocessor/expr_define_expansion.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -E -CC -pedantic -verify 2 | // expected-no-diagnostics 3 | 4 | #define FOO && 1 5 | #if defined FOO FOO 6 | #endif 7 | -------------------------------------------------------------------------------- /test/Preprocessor/include-pth.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-pth %s -o %t 2 | // RUN: %clang_cc1 -include-pth %t %s -E | grep 'file_to_include' | count 2 3 | #include "file_to_include.h" 4 | -------------------------------------------------------------------------------- /test/Preprocessor/macro_paste_spacing2.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -E | grep "movl %eax" 2 | // PR4132 3 | #define R1E %eax 4 | #define epilogue(r1) movl r1 ## E; 5 | epilogue(R1) 6 | 7 | -------------------------------------------------------------------------------- /test/Sema/invalid-init-diag.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -verify -fsyntax-only 2 | 3 | int a; 4 | struct {int x;} x = a; // expected-error {{with an expression of incompatible type 'int'}} 5 | -------------------------------------------------------------------------------- /test/Sema/warn-gnu-designators.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -Wno-gnu-designator -verify %s 2 | // expected-no-diagnostics 3 | struct { int x, y, z[12]; } value = { x:17, .z [3 ... 5] = 7 }; 4 | -------------------------------------------------------------------------------- /test/SemaObjC/builtin_objc_msgSend.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -fsyntax-only -verify 2 | // expected-no-diagnostics 3 | // rdar://8632525 4 | extern id objc_msgSend(id self, SEL op, ...); 5 | -------------------------------------------------------------------------------- /test/SemaObjCXX/expr-objcxx.mm: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only 2 | // expected-no-diagnostics 3 | 4 | // rdar://8366474 5 | void *P = @selector(foo::bar::); 6 | -------------------------------------------------------------------------------- /test/CXX/basic/basic.start/basic.start.main/p2g.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | 4 | int main(int argc, const char* const* argv) { 5 | } 6 | -------------------------------------------------------------------------------- /test/CodeGen/2003-01-30-UnionInit.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | union foo { 4 | struct { char A, B; } X; 5 | int C; 6 | }; 7 | 8 | union foo V = { {1, 2} }; 9 | -------------------------------------------------------------------------------- /test/CodeGen/2007-03-26-BitfieldAfterZeroWidth.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - 2 | struct W {}; 3 | struct Y { 4 | struct W w; 5 | int i:1; 6 | } __attribute__ ((packed)) y; 7 | -------------------------------------------------------------------------------- /test/CodeGen/2007-10-30-Volatile.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null -Wall -Werror 2 | void bork() { 3 | char * volatile p = 0; 4 | volatile int cc = 0; 5 | p += cc; 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/2008-01-28-PragmaMark.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -Werror -emit-llvm %s -o /dev/null 2 | #pragma mark LLVM's world 3 | #ifdef DO_ERROR 4 | #error LLVM's world 5 | #endif 6 | int i; 7 | -------------------------------------------------------------------------------- /test/CodeGen/2008-02-08-bitfield-bug.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o %t 2 | 3 | struct test { 4 | unsigned a:1; 5 | unsigned b:1; 6 | }; 7 | 8 | struct test *t; 9 | 10 | -------------------------------------------------------------------------------- /test/CodeGen/PR2413-void-address-cast-error.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - 2 | void f() 3 | { 4 | void *addr; 5 | addr = (void *)( ((long int)addr + 7L) ); 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/attribute_constructor.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | grep llvm.global_ctors 2 | 3 | void foo() __attribute__((constructor)); 4 | void foo() { 5 | bar(); 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/builtin-unwind-init.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm < %s -o - | FileCheck %s 2 | 3 | void a() { __builtin_unwind_init(); } 4 | 5 | // CHECK: call void @llvm.eh.unwind.init() 6 | -------------------------------------------------------------------------------- /test/CodeGen/func-decl-cleanup.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - 2 | 3 | 4 | // PR2360 5 | typedef void fn_t(); 6 | 7 | fn_t a,b; 8 | 9 | void b() 10 | { 11 | } 12 | 13 | -------------------------------------------------------------------------------- /test/CodeGen/typedef.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - 2 | 3 | typedef struct { int i; } Value; 4 | typedef Value *PValue; 5 | 6 | int get_value(PValue v) { 7 | return v->i; 8 | } 9 | -------------------------------------------------------------------------------- /test/CodeGenCXX/cxx0x-initializer-scalars.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -std=c++11 -S -emit-llvm -o - %s | FileCheck %s 2 | 3 | void f() 4 | { 5 | // CHECK: store i32 0 6 | int i{}; 7 | } 8 | -------------------------------------------------------------------------------- /test/Frontend/unknown-pragmas.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -Eonly -Wall -verify %s 2 | // RUN: %clang_cc1 -E -dM -Wall -verify %s 3 | // expected-no-diagnostics 4 | 5 | #pragma adgohweopihweotnwet 6 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/valid-typedef-01.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa. 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/valid-variable-01.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa. 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/Index/Inputs/retain-comments-from-system-headers.h: -------------------------------------------------------------------------------- 1 | #pragma clang system_header 2 | 3 | /** 4 | * system_function 5 | * \param a Aaa. 6 | */ 7 | int system_function(int a); 8 | 9 | -------------------------------------------------------------------------------- /test/PCH/cxx-offsetof-base.h: -------------------------------------------------------------------------------- 1 | // Header for PCH test cxx-offsetof-base.cpp 2 | 3 | struct Base { int x; }; 4 | struct Derived : Base { int y; }; 5 | int o = __builtin_offsetof(Derived, x); 6 | -------------------------------------------------------------------------------- /test/PCH/multiple_decls.h: -------------------------------------------------------------------------------- 1 | // Header for PCH test multiple_decls.c 2 | 3 | struct wide { int value; }; 4 | int wide(char); 5 | 6 | struct narrow { char narrow; }; 7 | char narrow(int); 8 | -------------------------------------------------------------------------------- /test/Parser/objcxx-lambda-expressions-neg.mm: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify %s 2 | 3 | int main() { 4 | []{}; // expected-error {{expected expression}} 5 | } 6 | -------------------------------------------------------------------------------- /test/Parser/objcxx11-user-defined-literal.mm: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s 2 | 3 | id x = @"foo"_bar; // expected-error{{user-defined suffix cannot be used here}} 4 | -------------------------------------------------------------------------------- /test/Preprocessor/_Pragma-physloc.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -E | grep '#pragma x y z' 2 | // RUN: %clang_cc1 %s -E | grep '#pragma a b c' 3 | 4 | _Pragma("x y z") 5 | _Pragma("a b c") 6 | 7 | -------------------------------------------------------------------------------- /test/SemaCXX/types_compatible_p.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | 3 | bool f() { 4 | return __builtin_types_compatible_p(int, const int); // expected-error{{C++}} 5 | } 6 | -------------------------------------------------------------------------------- /test/SemaObjCXX/ivar-struct.mm: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | @interface A { 4 | struct X { 5 | int x, y; 6 | } X; 7 | } 8 | @end 9 | -------------------------------------------------------------------------------- /test/CXX/conv/conv.ptr/p2.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | 4 | namespace pr7801 { 5 | extern void* x[]; 6 | void* dummy[] = { &x }; 7 | } 8 | -------------------------------------------------------------------------------- /test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p8.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | class A { 3 | void f(A* p = this) { } // expected-error{{invalid use of 'this'}} 4 | }; 5 | -------------------------------------------------------------------------------- /test/CodeGen/2003-08-17-DeadCodeShortCircuit.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -x c %s -emit-llvm -o /dev/null 2 | 3 | int test(_Bool pos, _Bool color) { 4 | return 0; 5 | return (pos && color); 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/2007-02-04-EmptyStruct.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -O3 -emit-llvm -o - 2 | // PR1175 3 | 4 | struct empty { }; 5 | 6 | void foo(struct empty *p) { 7 | p++; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /test/CodeGen/2008-05-06-CFECrash.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -O2 %s -o /dev/null 2 | // PR2292. 3 | __inline__ __attribute__ ((__pure__)) int g (void) {} 4 | void f (int k) { k = g (); } 5 | -------------------------------------------------------------------------------- /test/CodeGen/2009-03-22-increment-bitfield.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -O1 < %s | grep "ret i32 0" 2 | 3 | int a(void) { 4 | return ++(struct x {unsigned x : 2;}){3}.x; 5 | } 6 | 7 | 8 | -------------------------------------------------------------------------------- /test/CodeGen/2010-02-10-PointerName.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -g -o - | grep DW_TAG_pointer_type | grep -v {"char"} 2 | 3 | char i = 1; 4 | void foo() { 5 | char *cp = &i; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /test/CodeGen/attr-noinline.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -g -emit-llvm -o %t %s 2 | // RUN: grep 'noinline' %t 3 | 4 | void t1() __attribute__((noinline)); 5 | 6 | void t1() 7 | { 8 | } 9 | 10 | -------------------------------------------------------------------------------- /test/CodeGen/sret2.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -O0 -o - | grep sret | count 2 2 | 3 | struct abc { 4 | long a; 5 | long b; 6 | long c; 7 | }; 8 | 9 | struct abc foo2(){} 10 | -------------------------------------------------------------------------------- /test/CodeGen/struct-copy.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - | grep 'call.*llvm.memcpy' 2 | struct x { int a[100]; }; 3 | 4 | 5 | void foo(struct x *P, struct x *Q) { 6 | *P = *Q; 7 | } 8 | -------------------------------------------------------------------------------- /test/CodeGenCXX/__null.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o %t 2 | 3 | int* a = __null; 4 | int b = __null; 5 | 6 | void f() { 7 | int* c = __null; 8 | int d = __null; 9 | } 10 | -------------------------------------------------------------------------------- /test/CodeGenObjCXX/2007-10-03-MetadataPointers.mm: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | @class NSImage; 4 | void bork() { 5 | NSImage *nsimage; 6 | [nsimage release]; 7 | } 8 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/valid-namespace-01.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa. 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/PCH/ext_vector.h: -------------------------------------------------------------------------------- 1 | // Header file for ext_vector.c PCH test 2 | 3 | typedef __attribute__((ext_vector_type(2))) float float2; 4 | typedef __attribute__((ext_vector_type(4))) float float4; 5 | -------------------------------------------------------------------------------- /test/Parser/pragma-options.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | 4 | class C { 5 | #pragma options align=natural 6 | }; 7 | -------------------------------------------------------------------------------- /test/Sema/block-return-3.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks 2 | 3 | void foo() { 4 | ^ int (void) { }(); // expected-error {{control reaches end of non-void block}} 5 | } 6 | -------------------------------------------------------------------------------- /test/Sema/default.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | 3 | void f5 (int z) { 4 | if (z) 5 | default: // expected-error {{not in switch statement}} 6 | ; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /test/SemaCXX/warn-static-function-inheader.h: -------------------------------------------------------------------------------- 1 | static void thing(void) { // expected-warning {{'static' function 'thing' declared in header file should be declared 'static inline'}} 2 | } 3 | 4 | -------------------------------------------------------------------------------- /utils/ABITest/single-args-32/Makefile: -------------------------------------------------------------------------------- 1 | X_CFLAGS := -m32 2 | Y_CFLAGS := -m32 3 | CC_CFLAGS := -m32 4 | 5 | include ../Makefile.test.common 6 | 7 | TESTARGS += --no-function-return --max-args 1 8 | -------------------------------------------------------------------------------- /runtime/compiler-rt/clang_linux_test_input.c: -------------------------------------------------------------------------------- 1 | // This file is used to check if we can produce working executables 2 | // for i386 and x86_64 archs on Linux. 3 | #include 4 | int main(){} 5 | -------------------------------------------------------------------------------- /test/CXX/basic/basic.start/basic.start.main/p2d.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | 3 | static int main() { // expected-error {{'main' is not allowed to be declared static}} 4 | } 5 | -------------------------------------------------------------------------------- /test/CXX/basic/basic.start/basic.start.main/p2e.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | 3 | inline int main() { // expected-error {{'main' is not allowed to be declared inline}} 4 | } 5 | -------------------------------------------------------------------------------- /test/CXX/basic/basic.start/basic.start.main/p2h.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | 3 | template 4 | int main() { } // expected-error{{'main' cannot be a template}} 5 | 6 | -------------------------------------------------------------------------------- /test/CXX/special/class.dtor/p2.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | 4 | // PR5548 5 | struct A {~A();}; 6 | void a(const A* x) { 7 | x->~A(); 8 | } 9 | -------------------------------------------------------------------------------- /test/CodeGen/2002-10-12-TooManyArguments.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | 4 | void foo() {} 5 | 6 | void bar() { 7 | foo(1, 2, 3); /* Too many arguments passed */ 8 | } 9 | -------------------------------------------------------------------------------- /test/CodeGen/2003-03-03-DeferredType.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | 4 | 5 | 6 | struct foo A; 7 | 8 | struct foo { 9 | int x; 10 | double D; 11 | }; 12 | 13 | -------------------------------------------------------------------------------- /test/CodeGen/2003-11-01-GlobalUnionInit.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | union bdflush_param { 4 | struct { int x; } b_un; 5 | int y[1]; 6 | } bdf_prm = {{30}}; 7 | 8 | -------------------------------------------------------------------------------- /test/CodeGen/2007-03-01-VarSizeArrayIdx.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -O3 -emit-llvm -o - | grep mul 2 | // PR1233 3 | 4 | float foo(int w, float A[][w], int g, int h) { 5 | return A[g][0]; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /test/CodeGen/2010-01-14-FnType-DebugInfo.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -g -o /dev/null 2 | typedef void (*sigcatch_t)( struct sigcontext *); 3 | sigcatch_t sigcatch[50] = {(sigcatch_t) 0}; 4 | 5 | -------------------------------------------------------------------------------- /test/CodeGen/2010-08-10-DbgConstant.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -S -emit-llvm -g %s -o - | grep DW_TAG_variable 2 | 3 | static const unsigned int ro = 201; 4 | void bar(int); 5 | void foo() { bar(ro); } 6 | -------------------------------------------------------------------------------- /test/CodeGen/PR3709-int-to-pointer-sign.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - -O1 -triple=x86_64-gnu-linux | grep "i64 -1" 2 | 3 | // PR3709 4 | long long a() { return (long long)(int*)-1;} 5 | 6 | -------------------------------------------------------------------------------- /test/CodeGen/attr-cleanup.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o %t 2 | 3 | // 4 | void f(void* arg); 5 | void g() { 6 | __attribute__((cleanup(f))) void *g; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /test/CodeGen/pr13168.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - 2 | 3 | typedef int (*_MD_Open64)(int oflag, ...); 4 | _MD_Open64 _open64; 5 | void PR_OpenFile(int mode) { 6 | _open64(0, mode); 7 | } 8 | -------------------------------------------------------------------------------- /test/CodeGen/weak-incomplete.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm < %s | grep 'extern_weak' | count 1 2 | 3 | struct S; 4 | void __attribute__((weak)) foo1(struct S); 5 | void (*foo2)(struct S) = foo1; 6 | -------------------------------------------------------------------------------- /test/CodeGen/writable-strings.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -o - -fwritable-strings %s 2 | 3 | int main() { 4 | char *str = "abc"; 5 | str[0] = '1'; 6 | printf("%s", str); 7 | } 8 | 9 | -------------------------------------------------------------------------------- /test/CodeGenCXX/debug-info-enum.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang -fverbose-asm -S -g %s -o - | grep DW_TAG_enumeration_type 2 | 3 | int v; 4 | enum index { MAX }; 5 | void foo(void) 6 | { 7 | v = MAX; 8 | } 9 | -------------------------------------------------------------------------------- /test/CodeGenCXX/empty-union.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -o - %s 2 | 3 | union sigval { }; 4 | union sigval Test1; 5 | 6 | union NonPODUnion { ~NonPODUnion(); }; 7 | union NonPODUnion Test2; 8 | -------------------------------------------------------------------------------- /test/Coverage/codegen-next.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -fobjc-exceptions -o %t %s 2 | // RUN: %clang_cc1 -g -emit-llvm -fobjc-exceptions -o %t %s 3 | 4 | #include "objc-language-features.inc" 5 | -------------------------------------------------------------------------------- /test/FixIt/fixit-suffix.c: -------------------------------------------------------------------------------- 1 | // RUN: cp %s %t.extrasuffix 2 | // RUN: %clang_cc1 -fixit=fixed -x c %t.extrasuffix 3 | // RUN: %clang_cc1 -Werror -pedantic -x c %t.fixed.extrasuffix 4 | 5 | _Complex cd; 6 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/valid-class-02.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa. 5 | 6 | -------------------------------------------------------------------------------- /test/Index/index-with-working-dir.c: -------------------------------------------------------------------------------- 1 | 2 | void foo(); 3 | 4 | // RUN: c-index-test -index-file -working-directory=%S %s | FileCheck %s 5 | // CHECK: [indexDeclaration]: kind: function | name: foo 6 | -------------------------------------------------------------------------------- /test/Index/preamble-reparse-with-BOM.m: -------------------------------------------------------------------------------- 1 | 2 | @interface I2 3 | @end 4 | 5 | // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_FAILONERROR=1 \ 6 | // RUN: c-index-test -test-load-source-reparse 1 local %s 7 | -------------------------------------------------------------------------------- /test/Lexer/cxx0x_raw_string_unterminated.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -std=c++11 -E %s 2>&1 | grep 'error: raw string missing terminating delimiter )foo"' 2 | 3 | const char *str = R"foo(abc 4 | def)bar"; 5 | -------------------------------------------------------------------------------- /test/Misc/predefines.c: -------------------------------------------------------------------------------- 1 | /* RUN: %clang_cc1 -fsyntax-only -verify -std=c89 -ffreestanding -pedantic-errors %s 2 | * expected-no-diagnostics 3 | * rdar://6814950 4 | */ 5 | #include 6 | 7 | -------------------------------------------------------------------------------- /test/Modules/Inputs/diamond_left.h: -------------------------------------------------------------------------------- 1 | @__experimental_modules_import diamond_top; 2 | 3 | float left(float *); 4 | 5 | int top_left(char *c); 6 | 7 | int left_and_right(int*); 8 | 9 | 10 | -------------------------------------------------------------------------------- /test/PCH/Inputs/chain-decls1.h: -------------------------------------------------------------------------------- 1 | void f(); 2 | 3 | struct one {}; 4 | void two(); 5 | 6 | void many(int i); 7 | struct many; 8 | void many(int j); 9 | struct many; 10 | 11 | void noret(); 12 | -------------------------------------------------------------------------------- /test/Preprocessor/_Pragma-dependency2.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E %s -verify 2 | 3 | #define DO_PRAGMA _Pragma 4 | DO_PRAGMA ("GCC dependency \"blahblabh\"") // expected-error {{file not found}} 5 | 6 | -------------------------------------------------------------------------------- /test/Preprocessor/include-directive3.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -include %S/file_to_include.h -E %s -fno-caret-diagnostics 2>&1 >/dev/null | grep 'file successfully included' | count 1 2 | // PR3464 3 | 4 | -------------------------------------------------------------------------------- /test/Preprocessor/macro_expandloc.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -E 2>&1 | grep '#include' 2 | #define FOO 1 3 | 4 | // The error message should be on the #include line, not the 1. 5 | #include FOO 6 | 7 | -------------------------------------------------------------------------------- /test/Preprocessor/macro_expandloc2.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -E 2>&1 | grep '#include' 2 | #define FOO BAR 3 | 4 | // The error message should be on the #include line, not the 1. 5 | #include FOO 6 | 7 | -------------------------------------------------------------------------------- /test/Preprocessor/pr2086.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E %s 2 | 3 | #define test 4 | #include "pr2086.h" 5 | #define test 6 | #include "pr2086.h" 7 | 8 | #ifdef test 9 | #error 10 | #endif 11 | 12 | -------------------------------------------------------------------------------- /test/Sema/2009-07-17-VoidParameter.c: -------------------------------------------------------------------------------- 1 | // RUN: not %clang_cc1 -emit-llvm %s -o - 2 | // PR4214 3 | typedef void vt; 4 | void (*func_ptr)(vt my_vt); // expected-error {argument may not have 'void' type} 5 | -------------------------------------------------------------------------------- /test/Sema/gnu89.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -std=gnu89 -pedantic -fsyntax-only -verify 2 | 3 | int f(int restrict); 4 | 5 | void main() {} // expected-warning {{return type of 'main' is not 'int'}} 6 | -------------------------------------------------------------------------------- /test/Sema/implicit-def.c: -------------------------------------------------------------------------------- 1 | /* RUN: %clang_cc1 -fsyntax-only %s -std=c89 2 | * RUN: not %clang_cc1 -fsyntax-only %s -std=c99 -pedantic-errors 3 | */ 4 | 5 | int A() { 6 | return X(); 7 | } 8 | 9 | -------------------------------------------------------------------------------- /test/SemaCUDA/config-type.cu: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | 3 | void cudaConfigureCall(unsigned gridSize, unsigned blockSize); // expected-error {{must have scalar return type}} 4 | -------------------------------------------------------------------------------- /test/SemaObjCXX/ivar-reference-type.mm: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | @interface A { 3 | int &r; // expected-error {{instance variables cannot be of reference type}} 4 | } 5 | @end 6 | -------------------------------------------------------------------------------- /test/CodeGen/2002-12-15-GlobalConstantTest.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | 4 | const char *W = "foo"; 5 | const int X = 7; 6 | int Y = 8; 7 | const char * const Z = "bar"; 8 | 9 | -------------------------------------------------------------------------------- /test/CodeGen/2003-06-23-GCC-fold-infinite-recursion.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 | 3 | double Test(double A, double B, double C, double D) { 4 | return -(A-B) - (C-D); 5 | } 6 | 7 | -------------------------------------------------------------------------------- /test/CodeGen/2005-05-10-GlobalUnionInit.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - 2 | 3 | union A { // { uint } 4 | union B { double *C; } D; 5 | } E = { { (double*)12312 } }; 6 | 7 | -------------------------------------------------------------------------------- /test/CodeGen/2007-07-29-RestrictPtrArg.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - | grep noalias 2 | 3 | void foo(int * __restrict myptr1, int * myptr2) { 4 | myptr1[0] = 0; 5 | myptr2[0] = 0; 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/OpaqueStruct.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o %t 2 | typedef struct a b; 3 | 4 | b* x; 5 | 6 | struct a { 7 | b* p; 8 | }; 9 | 10 | void f() { 11 | b* z = x->p; 12 | } 13 | -------------------------------------------------------------------------------- /test/CodeGen/darwin-thread-specifier.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -triple x86_64-apple-macosx10.7.0 -emit-llvm -o - %s | FileCheck %s 2 | // CHECK: @b = thread_local global i32 5, align 4 3 | __thread int b = 5; 4 | -------------------------------------------------------------------------------- /test/CodeGenCXX/namespace-aliases.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm-only %s 2 | namespace A { } 3 | namespace B = A; 4 | 5 | namespace b {} 6 | 7 | void foo() { 8 | namespace a = b; 9 | } 10 | -------------------------------------------------------------------------------- /test/FixIt/no-typo.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -fno-spell-checking -verify %s 2 | typedef struct { 3 | float x, y; 4 | } Point; 5 | 6 | point p1; // expected-error{{unknown type name 'point'}} 7 | -------------------------------------------------------------------------------- /test/Headers/int64-type.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -verify %s -ffreestanding 2 | // expected-no-diagnostics 3 | 4 | #include 5 | typedef unsigned long long uint64_t; 6 | -------------------------------------------------------------------------------- /test/Index/annotate-toplevel-in-objccontainer.m.h: -------------------------------------------------------------------------------- 1 | @interface FooPCH 2 | void funcPCH1(int); 3 | void funcPCH2(int); 4 | 5 | enum E { Cake }; 6 | 7 | -(void)meth1; 8 | -(void)meth2; 9 | @end 10 | -------------------------------------------------------------------------------- /test/Index/index-kernel-invocation.cpp: -------------------------------------------------------------------------------- 1 | // RUN: c-index-test -index-file -arch i386 -mkernel %s | FileCheck %s 2 | 3 | // CHECK: [indexDeclaration]: kind: function | name: foobar 4 | void foobar(void); 5 | -------------------------------------------------------------------------------- /test/Parser/bracket-crash.cpp: -------------------------------------------------------------------------------- 1 | // RUN: not %clang_cc1 -fsyntax-only -std=c++11 %s 2 | // PR7481 3 | decltype(; 4 | struct{ 5 | a 6 | } 7 | 8 | // PR14549. Must be at end of file. 9 | decltype( 10 | -------------------------------------------------------------------------------- /test/Preprocessor/Inputs/TestFramework.framework/Frameworks/AnotherTestFramework.framework/Headers/AnotherTestFramework.h: -------------------------------------------------------------------------------- 1 | static inline int another_test_framework_func(unsigned a) { 2 | return a; 3 | } 4 | -------------------------------------------------------------------------------- /test/Preprocessor/objc-pp.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -fsyntax-only -verify -pedantic -ffreestanding 2 | // expected-no-diagnostics 3 | 4 | #import // no warning on #import in objc mode. 5 | 6 | -------------------------------------------------------------------------------- /test/Sema/const-ptr-int-ptr-cast.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s 2 | // expected-no-diagnostics 3 | 4 | #include 5 | 6 | char *a = (void*)(uintptr_t)(void*)&a; 7 | -------------------------------------------------------------------------------- /test/Sema/implicit-cast.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only %s 2 | 3 | static char *test1(int cf) { 4 | return cf ? "abc" : 0; 5 | } 6 | static char *test2(int cf) { 7 | return cf ? 0 : "abc"; 8 | } 9 | -------------------------------------------------------------------------------- /test/Sema/unnamed-bitfield-init.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | typedef struct { 4 | int a; int : 24; char b; 5 | } S; 6 | 7 | S a = { 1, 2 }; 8 | -------------------------------------------------------------------------------- /test/Sema/warn-missing-braces.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -Wmissing-braces -verify %s 2 | 3 | int a[2][2] = { 0, 1, 2, 3 }; // expected-warning{{suggest braces}} expected-warning{{suggest braces}} 4 | -------------------------------------------------------------------------------- /test/SemaCXX/do-while-scope.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | 4 | void test() { 5 | int x; 6 | do 7 | int x; 8 | while (1); 9 | } 10 | -------------------------------------------------------------------------------- /include/clang/Parse/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | clang_tablegen(AttrLateParsed.inc -gen-clang-attr-late-parsed-list 2 | -I ${CMAKE_CURRENT_SOURCE_DIR}/../../ 3 | SOURCE ../Basic/Attr.td 4 | TARGET ClangAttrLateParsed) 5 | -------------------------------------------------------------------------------- /test/ASTMerge/Inputs/function2.c: -------------------------------------------------------------------------------- 1 | typedef int Int; 2 | void f0(Int); 3 | void f1(Int, double); 4 | void f2(int, int); 5 | void f3(int); 6 | static void f4(float, float); 7 | int f5(int) __attribute__((const)); 8 | -------------------------------------------------------------------------------- /test/CXX/dcl.decl/dcl.init/dcl.init.ref/p3.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | int& r1; // expected-error{{declaration of reference variable 'r1' requires an initializer}} 3 | extern int& r2; 4 | -------------------------------------------------------------------------------- /test/CodeGen/2005-07-28-IncorrectWeakGlobal.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | grep TheGlobal | not grep weak 2 | 3 | extern int TheGlobal; 4 | int foo() { return TheGlobal; } 5 | int TheGlobal = 1; 6 | -------------------------------------------------------------------------------- /test/CodeGen/2007-02-07-AddrLabel.c: -------------------------------------------------------------------------------- 1 | // PR947 2 | // RUN: %clang_cc1 %s -emit-llvm -o - 3 | 4 | void foo() { 5 | void *ptr; 6 | label: 7 | ptr = &&label; 8 | 9 | goto *ptr; 10 | } 11 | -------------------------------------------------------------------------------- /test/CodeGen/2007-04-11-InlineAsmUnion.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - 2 | 3 | union U { int x; float p; }; 4 | void foo() { 5 | union U bar; 6 | __asm__ volatile("foo %0\n" : "=r"(bar)); 7 | } 8 | -------------------------------------------------------------------------------- /test/CodeGen/2007-04-24-bit-not-expr.c: -------------------------------------------------------------------------------- 1 | // PR 1346 2 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 3 | extern bar(void *); 4 | 5 | void f(void *cd) { 6 | bar(((void *)((unsigned long)(cd) ^ -1))); 7 | } 8 | -------------------------------------------------------------------------------- /test/CodeGen/address-space-compound-literal.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm < %s | grep "internal addrspace(1) global i32 1" 2 | 3 | typedef int a __attribute__((address_space(1))); 4 | a* x = &(a){1}; 5 | 6 | -------------------------------------------------------------------------------- /test/Driver/clang_cpp.c: -------------------------------------------------------------------------------- 1 | // Verify that -include isn't included twice with -save-temps. 2 | // RUN: %clang -S -o - %s -include %t.h -save-temps -### 2> %t.log 3 | // RUN: grep '"-include' %t.log | count 1 4 | 5 | -------------------------------------------------------------------------------- /test/Frontend/Inputs/SystemHeaderPrefix/src/all.h: -------------------------------------------------------------------------------- 1 | #include "libs/boost/all.h" 2 | #include "libs/mylib/all.h" 3 | 4 | #include "libs/boost/warn.h" 5 | #include "libs/mylib/warn.h" 6 | #include "src/warn.h" 7 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/valid-class-03.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa. 5 | 6 | -------------------------------------------------------------------------------- /test/Index/Inputs/Headers/module.map: -------------------------------------------------------------------------------- 1 | module LibA { 2 | header "a.h" 3 | module Extensions { 4 | header "a_extensions.h" 5 | } 6 | } 7 | 8 | module Crash { 9 | header "crash.h" 10 | } 11 | -------------------------------------------------------------------------------- /test/Lexer/newline-eof-c++11.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wnewline-eof -verify %s 2 | // expected-no-diagnostics 3 | 4 | // The following line isn't terminated, don't fix it. 5 | void foo() {} -------------------------------------------------------------------------------- /test/Modules/Inputs/DependsOnModule.framework/module_private.map: -------------------------------------------------------------------------------- 1 | explicit module DependsOnModule.Private { 2 | explicit module DependsOnModule { 3 | header "DependsOnModulePrivate.h" 4 | } 5 | } 6 | 7 | -------------------------------------------------------------------------------- /test/Modules/Inputs/submodules/module.map: -------------------------------------------------------------------------------- 1 | module std { 2 | module vector { header "vector.h" } 3 | module type_traits { header "type_traits.h" } 4 | explicit module hash_map { header "hash_map.h" } 5 | } 6 | -------------------------------------------------------------------------------- /test/PCH/Inputs/typo.hpp: -------------------------------------------------------------------------------- 1 | namespace boost { 2 | template class function {}; 3 | 4 | namespace graph { 5 | template class adjacency_list { }; 6 | }; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /test/Parser/CompoundStmtScope.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | 3 | void foo() { 4 | { 5 | typedef float X; 6 | } 7 | X Y; // expected-error {{use of undeclared identifier}} 8 | } 9 | -------------------------------------------------------------------------------- /test/Parser/opencl-kernel.cl: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only 2 | // expected-no-diagnostics 3 | 4 | __kernel void test() 5 | { 6 | } 7 | 8 | kernel void test1() 9 | { 10 | } 11 | -------------------------------------------------------------------------------- /test/Preprocessor/dump-macros-undef.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E -dD %s | FileCheck %s 2 | // PR7818 3 | 4 | // CHECK: # 1 "{{.+}}.c" 5 | #define X 3 6 | // CHECK: #define X 3 7 | #undef X 8 | // CHECK: #undef X 9 | -------------------------------------------------------------------------------- /test/Preprocessor/include-macros.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E -Dtest=FOO -imacros %S/pr2086.h %s | grep 'HERE: test' 2 | 3 | // This should not be expanded into FOO because pr2086.h undefs 'test'. 4 | HERE: test 5 | -------------------------------------------------------------------------------- /test/Rewriter/rewrite-foreach-7.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o - 2 | 3 | @class NSArray; 4 | int main() { 5 | NSArray *foo; 6 | for (Class c in foo) { } 7 | } 8 | -------------------------------------------------------------------------------- /test/SemaObjC/compound-init.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | @interface A 3 | @end 4 | 5 | void f() { 6 | (A){ 0 }; // expected-error{{cannot initialize Objective-C class type 'A'}} 7 | } 8 | -------------------------------------------------------------------------------- /test/CodeGen/2005-03-11-Prefetch.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s 2 | 3 | void foo(int *P) { 4 | // CHECK: llvm.prefetch 5 | __builtin_prefetch(P); 6 | __builtin_prefetch(P, 1); 7 | } 8 | -------------------------------------------------------------------------------- /test/CodeGen/2010-06-11-SaveExpr.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - 2 | // Test case by Eric Postpischil! 3 | void foo(void) 4 | { 5 | char a[1]; 6 | int t = 1; 7 | ((char (*)[t]) a)[0][0] = 0; 8 | } 9 | -------------------------------------------------------------------------------- /test/CodeGen/PR2643-null-store-to-bitfield.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -o - %s 2 | // PR2643 3 | 4 | void foo() { 5 | struct { 6 | int a : 1; 7 | int b : 1; 8 | } entry = {0}; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /test/CodeGen/debug-info-static.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -g -emit-llvm -o - %s | FileCheck %s 2 | 3 | // CHECK: xyzzy} ; [ DW_TAG_variable ] 4 | void f(void) 5 | { 6 | static int xyzzy; 7 | xyzzy += 3; 8 | } 9 | -------------------------------------------------------------------------------- /test/CodeGen/exact-div-expr.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - -O1 | grep ashr 2 | // RUN: %clang_cc1 -emit-llvm %s -o - -O1 | not grep sdiv 3 | 4 | long long test(int *A, int *B) { 5 | return A-B; 6 | } 7 | -------------------------------------------------------------------------------- /test/CodeGen/redef-ext-inline.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - -std=gnu89 2 | // rdar://7208839 3 | 4 | extern inline int f1 (void) {return 1;} 5 | int f3 (void) {return f1();} 6 | int f1 (void) {return 0;} 7 | -------------------------------------------------------------------------------- /test/CodeGenCXX/2010-06-22-ZeroBitfield.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -g %s -o - 2 | struct s8_0 { unsigned : 0; }; 3 | struct s8_1 { double x; }; 4 | struct s8 { s8_0 a; s8_1 b; }; 5 | s8 f8() { return s8(); } 6 | -------------------------------------------------------------------------------- /test/CodeGenCXX/constructor-init-reference.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -o - %s | grep "store i32\* @x, i32\*\*" 2 | 3 | int x; 4 | struct A { 5 | int& y; 6 | A() : y(x) {} 7 | }; 8 | A z; 9 | 10 | -------------------------------------------------------------------------------- /test/CodeGenCXX/copy-assign-synthesis-2.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s 2 | struct A {}; 3 | A& (A::*x)(const A&) = &A::operator=; 4 | // CHECK: define linkonce_odr %struct.A* @_ZN1AaSERKS_ 5 | -------------------------------------------------------------------------------- /test/CodeGenCXX/nonconst-init.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s 2 | 3 | int a(); 4 | // CHECK: call i32 @_Z1av() 5 | struct x {int x, y : 10;} x = {1, a()}; 6 | -------------------------------------------------------------------------------- /test/CodeGenCXX/static-assert.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - -std=c++11 -verify 2 | // expected-no-diagnostics 3 | 4 | static_assert(true, ""); 5 | 6 | void f() { 7 | static_assert(true, ""); 8 | } 9 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/invalid-function-06.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa . 5 | 6 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/invalid-function-12.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa. 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/valid-class-04.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa. 5 | 6 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/valid-function-09.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa. 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/Parser/recovery.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify -pedantic -fblocks %s 2 | 3 | @interface Test0 4 | @property (assign) id x // expected-error {{expected ';' at end of declaration list}} 5 | @end 6 | -------------------------------------------------------------------------------- /test/Preprocessor/cxx_oper_keyword.cpp: -------------------------------------------------------------------------------- 1 | // RUN: not %clang_cc1 %s -E 2 | // RUN: %clang_cc1 %s -E -fno-operator-names 3 | 4 | // Not valid in C++ unless -fno-operator-names is passed. 5 | #define and foo 6 | 7 | 8 | -------------------------------------------------------------------------------- /test/Preprocessor/macro_fn_lparen_scan2.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E %s | grep 'FUNC (3 +1);' 2 | 3 | #define F(a) a 4 | #define FUNC(a) (a+1) 5 | 6 | F(FUNC) FUNC (3); /* final token sequence is FUNC(3+1) */ 7 | 8 | -------------------------------------------------------------------------------- /test/Preprocessor/macro_not_define.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -E %s | grep '^ # define X 3$' 2 | 3 | #define H # 4 | #define D define 5 | 6 | #define DEFINE(a, b) H D a b 7 | 8 | DEFINE(X, 3) 9 | 10 | -------------------------------------------------------------------------------- /test/Sema/return-silent.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -Wno-return-type -fsyntax-only -verify 2 | // expected-no-diagnostics 3 | 4 | int t14() { 5 | return; 6 | } 7 | 8 | void t15() { 9 | return 1; 10 | } 11 | -------------------------------------------------------------------------------- /test/SemaCXX/cast-explicit-ctor.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | struct B { explicit B(bool); }; 4 | void f() { 5 | (void)(B)true; 6 | (void)B(true); 7 | } 8 | -------------------------------------------------------------------------------- /test/Tooling/clang-check-args.cpp: -------------------------------------------------------------------------------- 1 | // RUN: clang-check "%s" -- -c 2>&1 | FileCheck %s 2 | 3 | // CHECK: C++ requires 4 | invalid; 5 | 6 | // FIXME: This is incompatible to -fms-compatibility. 7 | // XFAIL: win32 8 | -------------------------------------------------------------------------------- /unittests/Basic/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_clang_unittest(BasicTests 2 | FileManagerTest.cpp 3 | SourceManagerTest.cpp 4 | ) 5 | 6 | target_link_libraries(BasicTests 7 | clangBasic 8 | clangLex 9 | ) 10 | -------------------------------------------------------------------------------- /utils/OptionalTests/Extra/README.txt: -------------------------------------------------------------------------------- 1 | This directory is for extra unit style tests following the structure of 2 | clang/tests, but which are not portable or not suitable for inclusion in the 3 | regular test suite. 4 | -------------------------------------------------------------------------------- /INPUTS/iostream.cc: -------------------------------------------------------------------------------- 1 | // clang -I/usr/include/c++/4.0.0 -I/usr/include/c++/4.0.0/powerpc-apple-darwin8 -I/usr/include/c++/4.0.0/backward INPUTS/iostream.cc -Eonly 2 | 3 | #include 4 | 5 | #include 6 | -------------------------------------------------------------------------------- /test/CXX/basic/basic.stc/basic.stc.dynamic/p2-nodef.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | 4 | int *use_new(int N) { 5 | return new int [N]; 6 | } 7 | 8 | int std = 17; 9 | -------------------------------------------------------------------------------- /test/CodeGen/2005-09-24-AsmUserPrefix.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | opt -std-compile-opts | llc | \ 2 | // RUN: not grep _foo2 3 | 4 | void foo() __asm__("foo2"); 5 | 6 | void bar() { 7 | foo(); 8 | } 9 | -------------------------------------------------------------------------------- /test/CodeGen/2008-08-19-cast-of-typedef.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -o %t %s 2 | 3 | typedef short T[4]; 4 | struct s { 5 | T f0; 6 | }; 7 | 8 | void foo(struct s *x) { 9 | bar((long) x->f0); 10 | } 11 | -------------------------------------------------------------------------------- /test/CodeGen/2009-06-14-HighlyAligned.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o /dev/null 2 | // PR4332 3 | 4 | static int highly_aligned __attribute__((aligned(4096))); 5 | 6 | int f() { 7 | return highly_aligned; 8 | } 9 | -------------------------------------------------------------------------------- /test/CodeGen/builtin-rename.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | grep 'declare.*printf' | count 1 2 | // PR3612 3 | 4 | int printf(const char *, ...); 5 | 6 | int foo(void) { 7 | return printf(printf); 8 | } 9 | -------------------------------------------------------------------------------- /test/CodeGen/lineno-dbginfo.c: -------------------------------------------------------------------------------- 1 | // RUN: echo "#include " > %t.h 2 | // RUN: %clang -S -g -include %t.h %s -emit-llvm -o %t.ll 3 | // RUN: grep "i32 5" %t.ll 4 | // outer is at line number 5. 5 | int outer = 42; 6 | -------------------------------------------------------------------------------- /test/CodeGen/pascal-string.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -o - %s -fpascal-strings | grep "05Hello" 2 | 3 | unsigned char * Foo( void ) 4 | { 5 | static unsigned char s[256] = "\pHello"; 6 | return s; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /test/CodeGenCXX/2004-01-11-DynamicInitializedConstant.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s 2 | 3 | // CHECK-NOT: constant 4 | extern int X; 5 | const int Y = X; 6 | const int* foo() { return &Y; } 7 | -------------------------------------------------------------------------------- /test/CodeGenCXX/scoped-enums.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s 2 | 3 | // PR9923 4 | enum class Color { red, blue, green }; 5 | 6 | void f(Color); 7 | void g() { 8 | f(Color::red); 9 | } 10 | -------------------------------------------------------------------------------- /test/CodeGenObjC/attr-strong.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -emit-llvm -S -o %t %s 2 | 3 | struct s0 { 4 | void *a; 5 | }; 6 | struct s0 * __attribute__((objc_gc(strong))) g0; 7 | void f0(void) { 8 | g0->a = 0; 9 | } 10 | -------------------------------------------------------------------------------- /test/CodeGenObjC/bitfield-gnu.m: -------------------------------------------------------------------------------- 1 | // RUN: %clang -S -emit-llvm -fobjc-runtime=gcc -o %t %s 2 | typedef enum { A1, A2 } A; 3 | typedef struct { A a : 1; } B; 4 | @interface Obj { B *b; } @end 5 | @implementation Obj @end 6 | -------------------------------------------------------------------------------- /test/Driver/mg.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang -M -MG -include nonexistent-preinclude.h %s > %t 2 | // RUN: fgrep nonexistent-preinclude.h %t 3 | // RUN: fgrep nonexistent-ppinclude.h %t 4 | 5 | #include "nonexistent-ppinclude.h" 6 | -------------------------------------------------------------------------------- /test/Index/Inputs/CommentXML/valid-function-10.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aaa 4 | Aaa. 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/Index/unmatched-braces.c: -------------------------------------------------------------------------------- 1 | void foo() { 2 | int x; 3 | if (x) { 4 | } 5 | 6 | // RUN: c-index-test -cursor-at=%s:2:7 %s > %t 7 | // RUN: FileCheck %s -input-file %t 8 | 9 | // CHECK: VarDecl=x:2:7 10 | -------------------------------------------------------------------------------- /test/PCH/Inputs/chain-macro-override1.h: -------------------------------------------------------------------------------- 1 | void f() __attribute__((unavailable)); 2 | void g(); 3 | #define g() f() 4 | #define h() f() 5 | #define x x 6 | #define h2() f() 7 | 8 | #define h3() 9 | #undef h3 10 | -------------------------------------------------------------------------------- /test/Sema/block-return-1.c: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks 2 | 3 | int j; 4 | void foo() { 5 | ^ (void) { if (j) return 1; }(); // expected-error {{control may reach end of non-void block}} 6 | } 7 | -------------------------------------------------------------------------------- /test/SemaCXX/builtin-exception-spec.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | #include 4 | 5 | extern "C" { 6 | void *malloc(__SIZE_TYPE__); 7 | } 8 | -------------------------------------------------------------------------------- /test/SemaCXX/warn-self-comparisons.cpp: -------------------------------------------------------------------------------- 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s 2 | // expected-no-diagnostics 3 | 4 | void f(int (&array1)[2], int (&array2)[2]) { 5 | if (array1 == array2) { } // no warning 6 | } 7 | -------------------------------------------------------------------------------- /unittests/Lex/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_clang_unittest(LexTests 2 | LexerTest.cpp 3 | PreprocessingRecordTest.cpp 4 | PPCallbacksTest.cpp 5 | ) 6 | 7 | target_link_libraries(LexTests 8 | clangLex 9 | ) 10 | --------------------------------------------------------------------------------