Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/llvm/dist/clang Import Clang 4.0RC1 r294123.
details: https://anonhg.NetBSD.org/src/rev/866de5e15a63
branches: trunk
changeset: 351316:866de5e15a63
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Feb 09 17:36:38 2017 +0000
description:
Import Clang 4.0RC1 r294123.
diffstat:
external/bsd/llvm/dist/clang/CMakeLists.txt | 5 +-
external/bsd/llvm/dist/clang/bindings/python/clang/__init__.py | 8 +
external/bsd/llvm/dist/clang/bindings/python/clang/cindex.py | 129 +-
external/bsd/llvm/dist/clang/bindings/python/tests/cindex/test_translation_unit.py | 8 +-
external/bsd/llvm/dist/clang/docs/AttributeReference.rst | 3118 +++++++++-
external/bsd/llvm/dist/clang/docs/LanguageExtensions.rst | 40 +
external/bsd/llvm/dist/clang/docs/ReleaseNotes.rst | 34 +-
external/bsd/llvm/dist/clang/docs/UsersManual.rst | 587 +-
external/bsd/llvm/dist/clang/include/clang-c/Index.h | 6 +-
external/bsd/llvm/dist/clang/include/clang/AST/Decl.h | 4 +
external/bsd/llvm/dist/clang/include/clang/AST/DeclTemplate.h | 3 +-
external/bsd/llvm/dist/clang/include/clang/AST/RecursiveASTVisitor.h | 3 +
external/bsd/llvm/dist/clang/include/clang/AST/StmtOpenMP.h | 69 +
external/bsd/llvm/dist/clang/include/clang/AST/Type.h | 14 +-
external/bsd/llvm/dist/clang/include/clang/AST/TypeLoc.h | 28 +-
external/bsd/llvm/dist/clang/include/clang/Basic/AttrDocs.td | 1 +
external/bsd/llvm/dist/clang/include/clang/Basic/Builtins.def | 1 +
external/bsd/llvm/dist/clang/include/clang/Basic/DiagnosticSemaKinds.td | 11 +-
external/bsd/llvm/dist/clang/include/clang/Basic/LangOptions.def | 1 +
external/bsd/llvm/dist/clang/include/clang/Basic/OpenMPKinds.def | 35 +-
external/bsd/llvm/dist/clang/include/clang/Basic/StmtNodes.td | 1 +
external/bsd/llvm/dist/clang/include/clang/Driver/CLCompatOptions.td | 7 +-
external/bsd/llvm/dist/clang/include/clang/Driver/Options.td | 1 +
external/bsd/llvm/dist/clang/include/clang/Frontend/FrontendActions.h | 2 +
external/bsd/llvm/dist/clang/include/clang/Index/IndexSymbol.h | 8 +-
external/bsd/llvm/dist/clang/include/clang/Lex/HeaderSearch.h | 3 +-
external/bsd/llvm/dist/clang/include/clang/Lex/ModuleMap.h | 8 +
external/bsd/llvm/dist/clang/include/clang/Parse/Parser.h | 7 +-
external/bsd/llvm/dist/clang/include/clang/Sema/Overload.h | 32 +-
external/bsd/llvm/dist/clang/include/clang/Sema/Sema.h | 81 +-
external/bsd/llvm/dist/clang/include/clang/Serialization/ASTBitCodes.h | 1 +
external/bsd/llvm/dist/clang/lib/AST/ASTContext.cpp | 3 +-
external/bsd/llvm/dist/clang/lib/AST/ASTImporter.cpp | 3 +-
external/bsd/llvm/dist/clang/lib/AST/Decl.cpp | 12 +
external/bsd/llvm/dist/clang/lib/AST/DeclTemplate.cpp | 4 +-
external/bsd/llvm/dist/clang/lib/AST/Expr.cpp | 8 +-
external/bsd/llvm/dist/clang/lib/AST/ExprConstant.cpp | 24 +-
external/bsd/llvm/dist/clang/lib/AST/MicrosoftMangle.cpp | 18 +-
external/bsd/llvm/dist/clang/lib/AST/StmtOpenMP.cpp | 56 +
external/bsd/llvm/dist/clang/lib/AST/StmtPrinter.cpp | 6 +
external/bsd/llvm/dist/clang/lib/AST/StmtProfile.cpp | 5 +
external/bsd/llvm/dist/clang/lib/Analysis/BodyFarm.cpp | 2 +
external/bsd/llvm/dist/clang/lib/Analysis/CFG.cpp | 87 +-
external/bsd/llvm/dist/clang/lib/Analysis/ReachableCode.cpp | 20 +-
external/bsd/llvm/dist/clang/lib/Basic/OpenMPKinds.cpp | 28 +-
external/bsd/llvm/dist/clang/lib/Basic/Targets.cpp | 40 +-
external/bsd/llvm/dist/clang/lib/Basic/Version.cpp | 2 +-
external/bsd/llvm/dist/clang/lib/CodeGen/CGBuiltin.cpp | 14 +-
external/bsd/llvm/dist/clang/lib/CodeGen/CGDecl.cpp | 4 +-
external/bsd/llvm/dist/clang/lib/CodeGen/CGDeclCXX.cpp | 3 -
external/bsd/llvm/dist/clang/lib/CodeGen/CGOpenMPRuntime.cpp | 16 +-
external/bsd/llvm/dist/clang/lib/CodeGen/CGOpenMPRuntime.h | 42 +-
external/bsd/llvm/dist/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp | 223 +-
external/bsd/llvm/dist/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h | 40 +
external/bsd/llvm/dist/clang/lib/CodeGen/CGStmt.cpp | 4 +
external/bsd/llvm/dist/clang/lib/CodeGen/CGStmtOpenMP.cpp | 10 +
external/bsd/llvm/dist/clang/lib/CodeGen/CodeGenFunction.cpp | 3 +-
external/bsd/llvm/dist/clang/lib/CodeGen/CodeGenFunction.h | 2 +
external/bsd/llvm/dist/clang/lib/CodeGen/CodeGenModule.cpp | 8 +-
external/bsd/llvm/dist/clang/lib/CodeGen/CodeGenTypes.cpp | 2 +-
external/bsd/llvm/dist/clang/lib/CodeGen/ItaniumCXXABI.cpp | 42 +-
external/bsd/llvm/dist/clang/lib/Driver/ToolChains.cpp | 2 +-
external/bsd/llvm/dist/clang/lib/Driver/Tools.cpp | 10 +-
external/bsd/llvm/dist/clang/lib/Format/ContinuationIndenter.cpp | 5 +-
external/bsd/llvm/dist/clang/lib/Frontend/DependencyFile.cpp | 4 +-
external/bsd/llvm/dist/clang/lib/Frontend/FrontendActions.cpp | 6 +
external/bsd/llvm/dist/clang/lib/Frontend/InitPreprocessor.cpp | 10 +-
external/bsd/llvm/dist/clang/lib/Headers/altivec.h | 6 +-
external/bsd/llvm/dist/clang/lib/Index/IndexDecl.cpp | 36 +-
external/bsd/llvm/dist/clang/lib/Index/IndexSymbol.cpp | 18 +-
external/bsd/llvm/dist/clang/lib/Index/IndexTypeSourceInfo.cpp | 20 +-
external/bsd/llvm/dist/clang/lib/Index/IndexingContext.cpp | 15 +-
external/bsd/llvm/dist/clang/lib/Index/IndexingContext.h | 6 +-
external/bsd/llvm/dist/clang/lib/Lex/HeaderSearch.cpp | 47 +-
external/bsd/llvm/dist/clang/lib/Lex/ModuleMap.cpp | 20 +-
external/bsd/llvm/dist/clang/lib/Lex/PPDirectives.cpp | 18 +
external/bsd/llvm/dist/clang/lib/Lex/PPMacroExpansion.cpp | 1 +
external/bsd/llvm/dist/clang/lib/Parse/ParseDecl.cpp | 13 +-
external/bsd/llvm/dist/clang/lib/Parse/ParseDeclCXX.cpp | 11 +-
external/bsd/llvm/dist/clang/lib/Parse/ParseExpr.cpp | 9 +-
external/bsd/llvm/dist/clang/lib/Parse/ParseExprCXX.cpp | 5 +-
external/bsd/llvm/dist/clang/lib/Parse/ParseOpenMP.cpp | 8 +-
external/bsd/llvm/dist/clang/lib/Parse/Parser.cpp | 42 +-
external/bsd/llvm/dist/clang/lib/Sema/AnalysisBasedWarnings.cpp | 10 +
external/bsd/llvm/dist/clang/lib/Sema/SemaChecking.cpp | 34 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaCoroutine.cpp | 13 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaDecl.cpp | 96 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaDeclCXX.cpp | 28 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaDeclObjC.cpp | 6 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaExpr.cpp | 30 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaExprCXX.cpp | 27 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaInit.cpp | 2 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaLookup.cpp | 3 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaOpenMP.cpp | 97 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaOverload.cpp | 413 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaStmt.cpp | 9 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaTemplate.cpp | 100 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaTemplateInstantiate.cpp | 3 -
external/bsd/llvm/dist/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 21 +-
external/bsd/llvm/dist/clang/lib/Sema/SemaType.cpp | 2 +-
external/bsd/llvm/dist/clang/lib/Sema/TreeTransform.h | 38 +-
external/bsd/llvm/dist/clang/lib/Serialization/ASTReader.cpp | 2 +
external/bsd/llvm/dist/clang/lib/Serialization/ASTReaderDecl.cpp | 1 +
external/bsd/llvm/dist/clang/lib/Serialization/ASTReaderStmt.cpp | 13 +
external/bsd/llvm/dist/clang/lib/Serialization/ASTWriter.cpp | 12 +-
external/bsd/llvm/dist/clang/lib/Serialization/ASTWriterDecl.cpp | 2 +
external/bsd/llvm/dist/clang/lib/Serialization/ASTWriterStmt.cpp | 6 +
external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp | 9 +-
external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | 6 +-
external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Core/MemRegion.cpp | 6 +-
external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Core/RegionStore.cpp | 2 +
external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp | 12 +
external/bsd/llvm/dist/clang/test/Analysis/dispatch-once.m | 7 +
external/bsd/llvm/dist/clang/test/Analysis/initializer.cpp | 7 +
external/bsd/llvm/dist/clang/test/Analysis/null-deref-static.m | 35 +
external/bsd/llvm/dist/clang/test/Analysis/pointer-to-member.cpp | 18 +-
external/bsd/llvm/dist/clang/test/Analysis/properties.m | 26 +
external/bsd/llvm/dist/clang/test/CXX/basic/basic.start/basic.start.init/p2.cpp | 21 +
external/bsd/llvm/dist/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p15.cpp | 28 +-
external/bsd/llvm/dist/clang/test/CXX/dcl.decl/dcl.init/dcl.init.aggr/p1.cpp | 8 +-
external/bsd/llvm/dist/clang/test/CXX/drs/dr0xx.cpp | 2 +-
external/bsd/llvm/dist/clang/test/CXX/drs/dr12xx.cpp | 4 +-
external/bsd/llvm/dist/clang/test/CXX/drs/dr13xx.cpp | 4 +-
external/bsd/llvm/dist/clang/test/CXX/drs/dr14xx.cpp | 2 +-
external/bsd/llvm/dist/clang/test/CXX/drs/dr15xx.cpp | 4 +-
external/bsd/llvm/dist/clang/test/CXX/drs/dr16xx.cpp | 6 +-
external/bsd/llvm/dist/clang/test/CXX/drs/dr18xx.cpp | 2 +-
external/bsd/llvm/dist/clang/test/CXX/drs/dr19xx.cpp | 17 +-
external/bsd/llvm/dist/clang/test/CXX/drs/dr2xx.cpp | 2 +-
external/bsd/llvm/dist/clang/test/CXX/drs/dr5xx.cpp | 2 +-
external/bsd/llvm/dist/clang/test/CXX/drs/dr6xx.cpp | 2 +-
external/bsd/llvm/dist/clang/test/CXX/special/class.inhctor/p1.cpp | 4 +-
external/bsd/llvm/dist/clang/test/CXX/special/class.inhctor/p3.cpp | 8 +-
external/bsd/llvm/dist/clang/test/CXX/special/class.inhctor/p7.cpp | 8 +-
external/bsd/llvm/dist/clang/test/CodeCompletion/member-access.cpp | 14 +-
external/bsd/llvm/dist/clang/test/CodeGen/always_inline.c | 2 +-
external/bsd/llvm/dist/clang/test/CodeGen/arm_acle.c | 14 +-
external/bsd/llvm/dist/clang/test/CodeGen/builtins-arm.c | 2 +-
external/bsd/llvm/dist/clang/test/CodeGen/builtins-arm64.c | 4 +-
external/bsd/llvm/dist/clang/test/CodeGen/builtins-ppc-p9vector.c | 12 +-
external/bsd/llvm/dist/clang/test/CodeGen/integer-overflow.c | 30 +-
external/bsd/llvm/dist/clang/test/CodeGenCXX/arm.cpp | 9 +-
external/bsd/llvm/dist/clang/test/CodeGenCXX/builtins.cpp | 4 +
external/bsd/llvm/dist/clang/test/CodeGenCXX/cxx11-thread-local.cpp | 167 +-
external/bsd/llvm/dist/clang/test/CodeGenCXX/debug-info-class.cpp | 15 +-
external/bsd/llvm/dist/clang/test/CodeGenCXX/dllexport-ctor-closure.cpp | 82 +
external/bsd/llvm/dist/clang/test/CodeGenCXX/dllexport.cpp | 71 +-
external/bsd/llvm/dist/clang/test/CodeGenCXX/eh-aggregate-copy-destroy.cpp | 6 +-
external/bsd/llvm/dist/clang/test/CodeGenCXX/exceptions.cpp | 104 +-
external/bsd/llvm/dist/clang/test/CodeGenCXX/funcsig.cpp | 32 +-
external/bsd/llvm/dist/clang/test/CodeGenCXX/global-array-destruction.cpp | 6 +-
external/bsd/llvm/dist/clang/test/CodeGenCXX/goto.cpp | 7 +-
external/bsd/llvm/dist/clang/test/CodeGenCXX/microsoft-abi-default-cc.cpp | 9 +
external/bsd/llvm/dist/clang/test/CodeGenCXX/pr31054.cpp | 12 +
external/bsd/llvm/dist/clang/test/CodeGenObjC/block-ptr-type-crash.m | 28 +
external/bsd/llvm/dist/clang/test/CodeGenObjC/encode-test.m | 11 +
external/bsd/llvm/dist/clang/test/Driver/cl-options.c | 2 +-
external/bsd/llvm/dist/clang/test/Driver/disable-llvm.c | 22 +
external/bsd/llvm/dist/clang/test/Driver/linux-ld.c | 20 +
external/bsd/llvm/dist/clang/test/Driver/netbsd.c | 6 +
external/bsd/llvm/dist/clang/test/Driver/x86-march.c | 28 +
external/bsd/llvm/dist/clang/test/Frontend/x86-target-cpu.c | 6 +
external/bsd/llvm/dist/clang/test/Index/Core/designated-inits.c | 4 +-
external/bsd/llvm/dist/clang/test/Index/Core/index-source.cpp | 8 +-
external/bsd/llvm/dist/clang/test/Index/Core/index-source.m | 109 +-
external/bsd/llvm/dist/clang/test/Index/Core/index-subkinds.m | 20 +-
external/bsd/llvm/dist/clang/test/Index/Core/index-with-module.m | 2 +-
external/bsd/llvm/dist/clang/test/Index/index-decls.m | 4 +-
external/bsd/llvm/dist/clang/test/Index/index-module.m | 2 +-
external/bsd/llvm/dist/clang/test/Index/index-templates.cpp | 6 +-
external/bsd/llvm/dist/clang/test/Lexer/has_feature_cxx0x.cpp | 11 +
external/bsd/llvm/dist/clang/test/Misc/ast-dump-decl.cpp | 1 -
external/bsd/llvm/dist/clang/test/Modules/Inputs/FooFramework.framework/Modules/module.modulemap | 12 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/FooFramework.framework/PrivateHeaders/Bar.h | 2 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/FooFramework.framework/PrivateHeaders/Baz_Private.h | 3 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/FooFramework.framework/PrivateHeaders/Foo.h | 10 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/FooFramework.framework/PrivateHeaders/FooUmbrella.h | 3 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/PR31469/empty.h | 1 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/PR31469/module.modulemap | 5 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/PR31469/textual.h | 17 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/PR31469/textual_file_shadow.h | 2 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/import-textual/M/A/A.h | 4 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/import-textual/M/B/B.h | 4 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/import-textual/M/module.modulemap | 17 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/import-textual/M/someheader.h | 6 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/import-textual/M2/A/A.h | 4 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/import-textual/M2/B/B.h | 4 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/import-textual/M2/module.modulemap | 17 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/import-textual/M2/someheader.h | 1 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/c++/v1/cstddef | 9 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/c++/v1/math.h | 2 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/c++/v1/module.modulemap | 2 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/c++/v1/stddef.h | 1 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/c++/v1/type_traits | 6 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/module.modulemap | 8 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/stddef.h | 7 +-
external/bsd/llvm/dist/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/sys/_types/_ptrdiff_t.h | 4 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/sys/_types/_types.h | 6 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/module-impl-with-link/foo.h | 1 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/module-impl-with-link/module.modulemap | 4 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/pch-with-module-name/A.h | 1 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/pch-with-module-name/C.h | 1 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/pch-with-module-name/C.m | 1 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/pch-with-module-name/D.h | 1 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/pch-with-module-name/module.modulemap | 9 +
external/bsd/llvm/dist/clang/test/Modules/Inputs/pch-with-module-name/test.h | 1 +
external/bsd/llvm/dist/clang/test/Modules/builtin-import.mm | 12 +
external/bsd/llvm/dist/clang/test/Modules/cxx-templates.cpp | 10 +-
external/bsd/llvm/dist/clang/test/Modules/import-textual-noguard.mm | 8 +
external/bsd/llvm/dist/clang/test/Modules/import-textual.mm | 10 +
external/bsd/llvm/dist/clang/test/Modules/module-impl-with-link.c | 7 +
external/bsd/llvm/dist/clang/test/Modules/pch-with-module-name.m | 5 +
external/bsd/llvm/dist/clang/test/Modules/pr31469.cpp | 15 +
external/bsd/llvm/dist/clang/test/Modules/textual-hdr-in-umbrella-hdr.m | 10 +
external/bsd/llvm/dist/clang/test/OpenMP/atomic_codegen.cpp | 11 +-
external/bsd/llvm/dist/clang/test/OpenMP/nesting_of_regions.cpp | 909 ++-
external/bsd/llvm/dist/clang/test/OpenMP/nvptx_parallel_codegen.cpp | 317 +
external/bsd/llvm/dist/clang/test/OpenMP/openmp_seh.c | 18 +
external/bsd/llvm/dist/clang/test/OpenMP/target_parallel_for_is_device_ptr_ast_print.cpp | 315 +
external/bsd/llvm/dist/clang/test/OpenMP/target_parallel_for_is_device_ptr_messages.cpp | 311 +
external/bsd/llvm/dist/clang/test/OpenMP/target_parallel_for_simd_is_device_ptr_ast_print.cpp | 318 +
external/bsd/llvm/dist/clang/test/OpenMP/target_parallel_for_simd_is_device_ptr_messages.cpp | 337 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_collapse_messages.cpp | 29 +-
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_aligned_messages.cpp | 231 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_ast_print.cpp | 198 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_collapse_messages.cpp | 149 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_defaultmap_messages.cpp | 58 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_depend_messages.cpp | 90 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_device_messages.cpp | 40 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_dist_schedule_messages.cpp | 84 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_firstprivate_messages.cpp | 134 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_if_messages.cpp | 101 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_is_device_ptr_ast_print.cpp | 318 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_is_device_ptr_messages.cpp | 337 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_lastprivate_messages.cpp | 233 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_linear_messages.cpp | 248 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_loop_messages.cpp | 627 ++
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_map_messages.cpp | 281 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_messages.cpp | 93 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_misc_messages.c | 312 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_nowait_messages.cpp | 18 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_num_teams_messages.cpp | 85 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_private_messages.cpp | 127 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_reduction_messages.cpp | 241 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_safelen_messages.cpp | 133 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_shared_messages.cpp | 106 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_simdlen_messages.cpp | 133 +
external/bsd/llvm/dist/clang/test/OpenMP/target_teams_distribute_simd_thread_limit_messages.cpp | 85 +
external/bsd/llvm/dist/clang/test/OpenMP/threadprivate_codegen.cpp | 16 +-
external/bsd/llvm/dist/clang/test/PCH/uses-seh.cpp | 29 +
external/bsd/llvm/dist/clang/test/Preprocessor/dependencies-and-pp.c | 7 +
external/bsd/llvm/dist/clang/test/Preprocessor/predefined-arch-macros.c | 82 +
external/bsd/llvm/dist/clang/test/Profile/gcc-flag-compatibility.c | 4 +-
external/bsd/llvm/dist/clang/test/Sema/Inputs/diagnose-if-warn-system-header.h | 11 +
external/bsd/llvm/dist/clang/test/Sema/PR28181.c | 13 +
external/bsd/llvm/dist/clang/test/Sema/atomic-ops.c | 4 -
external/bsd/llvm/dist/clang/test/Sema/diagnose_if.c | 9 +-
external/bsd/llvm/dist/clang/test/Sema/warn-unreachable.c | 55 +
external/bsd/llvm/dist/clang/test/SemaCXX/constant-expression.cpp | 11 +
external/bsd/llvm/dist/clang/test/SemaCXX/constexpr-string.cpp | 21 +
external/bsd/llvm/dist/clang/test/SemaCXX/coroutines.cpp | 3 +-
external/bsd/llvm/dist/clang/test/SemaCXX/cxx0x-class.cpp | 8 +
external/bsd/llvm/dist/clang/test/SemaCXX/cxx11-default-member-initializers.cpp | 14 +
external/bsd/llvm/dist/clang/test/SemaCXX/cxx11-inheriting-ctors.cpp | 41 +-
external/bsd/llvm/dist/clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp | 5 +
external/bsd/llvm/dist/clang/test/SemaCXX/destructor.cpp | 20 +
external/bsd/llvm/dist/clang/test/SemaCXX/diagnose_if-ext.cpp | 8 +
external/bsd/llvm/dist/clang/test/SemaCXX/diagnose_if.cpp | 313 +-
external/bsd/llvm/dist/clang/test/SemaCXX/new-delete-cxx0x.cpp | 4 +-
external/bsd/llvm/dist/clang/test/SemaCXX/uninitialized.cpp | 12 +-
external/bsd/llvm/dist/clang/test/SemaCXX/warn-shadow-in-lambdas.cpp | 8 +
external/bsd/llvm/dist/clang/test/SemaCXX/warn-shadow.cpp | 10 +
external/bsd/llvm/dist/clang/test/SemaObjCXX/typo-correction.mm | 15 +
external/bsd/llvm/dist/clang/test/SemaTemplate/class-template-spec.cpp | 12 +-
external/bsd/llvm/dist/clang/test/SemaTemplate/cxx1z-using-declaration.cpp | 6 +-
external/bsd/llvm/dist/clang/test/SemaTemplate/deduction.cpp | 17 +
external/bsd/llvm/dist/clang/test/SemaTemplate/partial-order.cpp | 14 +
external/bsd/llvm/dist/clang/test/SemaTemplate/temp_arg_nontype.cpp | 16 +-
external/bsd/llvm/dist/clang/test/SemaTemplate/temp_arg_template.cpp | 6 +
external/bsd/llvm/dist/clang/test/SemaTemplate/temp_arg_template_cxx1z.cpp | 33 +-
external/bsd/llvm/dist/clang/tools/clang-fuzzer/ClangFuzzer.cpp | 2 +-
external/bsd/llvm/dist/clang/tools/driver/CMakeLists.txt | 20 +-
external/bsd/llvm/dist/clang/tools/libclang/CIndex.cpp | 9 +
external/bsd/llvm/dist/clang/tools/libclang/CXCursor.cpp | 3 +
external/bsd/llvm/dist/clang/tools/libclang/CXIndexDataConsumer.cpp | 7 +-
external/bsd/llvm/dist/clang/tools/libclang/CXIndexDataConsumer.h | 2 +-
external/bsd/llvm/dist/clang/unittests/AST/SourceLocationTest.cpp | 67 +
external/bsd/llvm/dist/clang/unittests/Format/FormatTest.cpp | 8 +
external/bsd/llvm/dist/clang/www/cxx_dr_status.html | 28 +-
external/bsd/llvm/dist/clang/www/cxx_status.html | 30 +-
external/bsd/llvm/dist/clang/www/index.html | 8 +-
external/bsd/llvm/dist/clang/www/make_cxx_dr_status | 9 +-
292 files changed, 14246 insertions(+), 1465 deletions(-)
diffs (truncated from 21785 to 300 lines):
diff -r 98a500c899fe -r 866de5e15a63 external/bsd/llvm/dist/clang/CMakeLists.txt
--- a/external/bsd/llvm/dist/clang/CMakeLists.txt Thu Feb 09 17:32:11 2017 +0000
+++ b/external/bsd/llvm/dist/clang/CMakeLists.txt Thu Feb 09 17:36:38 2017 +0000
@@ -16,7 +16,8 @@
"--libdir"
"--includedir"
"--prefix"
- "--src-root")
+ "--src-root"
+ "--cmakedir")
execute_process(
COMMAND ${CONFIG_COMMAND}
RESULT_VARIABLE HAD_ERROR
@@ -41,6 +42,7 @@
list(GET CONFIG_OUTPUT 3 INCLUDE_DIR)
list(GET CONFIG_OUTPUT 4 LLVM_OBJ_ROOT)
list(GET CONFIG_OUTPUT 5 MAIN_SRC_DIR)
+ list(GET CONFIG_OUTPUT 6 LLVM_CMAKE_PATH)
if(NOT MSVC_IDE)
set(LLVM_ENABLE_ASSERTIONS ${ENABLE_ASSERTIONS}
@@ -58,7 +60,6 @@
find_program(LLVM_TABLEGEN_EXE "llvm-tblgen" ${LLVM_TOOLS_BINARY_DIR}
NO_DEFAULT_PATH)
- set(LLVM_CMAKE_PATH "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm")
set(LLVMCONFIG_FILE "${LLVM_CMAKE_PATH}/LLVMConfig.cmake")
if(EXISTS ${LLVMCONFIG_FILE})
list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_PATH}")
diff -r 98a500c899fe -r 866de5e15a63 external/bsd/llvm/dist/clang/bindings/python/clang/__init__.py
--- a/external/bsd/llvm/dist/clang/bindings/python/clang/__init__.py Thu Feb 09 17:32:11 2017 +0000
+++ b/external/bsd/llvm/dist/clang/bindings/python/clang/__init__.py Thu Feb 09 17:36:38 2017 +0000
@@ -20,5 +20,13 @@
Bindings for the Clang indexing library.
"""
+
+# Python 3 uses unicode for strings. The bindings, in particular the interaction
+# with ctypes, need modifying to handle conversions between unicode and
+# c-strings.
+import sys
+if sys.version_info[0] != 2:
+ raise Exception("Only Python 2 is supported.")
+
__all__ = ['cindex']
diff -r 98a500c899fe -r 866de5e15a63 external/bsd/llvm/dist/clang/bindings/python/clang/cindex.py
--- a/external/bsd/llvm/dist/clang/bindings/python/clang/cindex.py Thu Feb 09 17:32:11 2017 +0000
+++ b/external/bsd/llvm/dist/clang/bindings/python/clang/cindex.py Thu Feb 09 17:36:38 2017 +0000
@@ -64,7 +64,6 @@
from ctypes import *
import collections
-import sys
import clang.enumerations
@@ -74,33 +73,6 @@
# this by marshalling object arguments as void**.
c_object_p = POINTER(c_void_p)
-if sys.version_info[0] > 2:
-# Python 3 strings are unicode, translate them to/from utf8 for C-interop
-# Python 3 replaces xrange with range, we want xrange behaviour
- xrange = range
-
- class c_string_p(c_char_p):
- def __init__(self, p=None):
- if type(p) == str:
- p = p.encode("utf8")
- super(c_char_p, self).__init__(p)
-
- def __str__(self):
- return str(self.value)
-
- @property
- def value(self):
- if super(c_char_p, self).value is None:
- return None
- return super(c_char_p, self).value.decode("utf8")
-
- @classmethod
- def from_param(cls, param):
- return cls(param)
-else:
- c_string_p = c_char_p
-
-
callbacks = {}
### Exception Classes ###
@@ -175,7 +147,7 @@
class _CXString(Structure):
"""Helper for transforming CXString results."""
- _fields_ = [("spelling", c_string_p), ("free", c_int)]
+ _fields_ = [("spelling", c_char_p), ("free", c_int)]
def __del__(self):
conf.lib.clang_disposeString(self)
@@ -357,7 +329,7 @@
@property
def spelling(self):
- return str(conf.lib.clang_getDiagnosticSpelling(self))
+ return conf.lib.clang_getDiagnosticSpelling(self)
@property
def ranges(self):
@@ -386,8 +358,8 @@
def __getitem__(self, key):
range = SourceRange()
- value = str(conf.lib.clang_getDiagnosticFixIt(self.diag, key,
- byref(range)))
+ value = conf.lib.clang_getDiagnosticFixIt(self.diag, key,
+ byref(range))
if len(value) == 0:
raise IndexError
@@ -420,12 +392,12 @@
@property
def category_name(self):
"""The string name of the category for this diagnostic."""
- return str(conf.lib.clang_getDiagnosticCategoryText(self))
+ return conf.lib.clang_getDiagnosticCategoryText(self)
@property
def option(self):
"""The command-line option that enables this diagnostic."""
- return str(conf.lib.clang_getDiagnosticOption(self, None))
+ return conf.lib.clang_getDiagnosticOption(self, None)
@property
def disable_option(self):
@@ -433,7 +405,7 @@
disable = _CXString()
conf.lib.clang_getDiagnosticOption(self, byref(disable))
- return str(conf.lib.clang_getCString(disable))
+ return conf.lib.clang_getCString(disable)
def format(self, options=None):
"""
@@ -600,7 +572,7 @@
for key, value in self.__class__.__dict__.items():
if isinstance(value, self.__class__):
self._name_map[value] = key
- return str(self._name_map[self])
+ return self._name_map[self]
@classmethod
def from_id(cls, id):
@@ -624,7 +596,7 @@
@staticmethod
def get_all_kinds():
"""Return all CursorKind enumeration instances."""
- return [x for x in CursorKind._kinds if x]
+ return filter(None, CursorKind._kinds)
def is_declaration(self):
"""Test if this is a declaration kind."""
@@ -1457,9 +1429,9 @@
def spelling(self):
"""Return the spelling of the entity pointed at by the cursor."""
if not hasattr(self, '_spelling'):
- self._spelling = str(conf.lib.clang_getCursorSpelling(self))
-
- return str(self._spelling)
+ self._spelling = conf.lib.clang_getCursorSpelling(self)
+
+ return self._spelling
@property
def displayname(self):
@@ -1471,7 +1443,7 @@
arguments of a class template specialization.
"""
if not hasattr(self, '_displayname'):
- self._displayname = str(conf.lib.clang_getCursorDisplayName(self))
+ self._displayname = conf.lib.clang_getCursorDisplayName(self)
return self._displayname
@@ -1479,7 +1451,7 @@
def mangled_name(self):
"""Return the mangled name for the entity referenced by this cursor."""
if not hasattr(self, '_mangled_name'):
- self._mangled_name = str(conf.lib.clang_Cursor_getMangling(self))
+ self._mangled_name = conf.lib.clang_Cursor_getMangling(self)
return self._mangled_name
@@ -1618,7 +1590,7 @@
self._objc_type_encoding = \
conf.lib.clang_getDeclObjCTypeEncoding(self)
- return str(self._objc_type_encoding)
+ return self._objc_type_encoding
@property
def hash(self):
@@ -1665,23 +1637,17 @@
@property
def brief_comment(self):
"""Returns the brief comment text associated with that Cursor"""
- r = conf.lib.clang_Cursor_getBriefCommentText(self)
- if not r:
- return None
- return str(r)
+ return conf.lib.clang_Cursor_getBriefCommentText(self)
@property
def raw_comment(self):
"""Returns the raw comment text associated with that Cursor"""
- r = conf.lib.clang_Cursor_getRawCommentText(self)
- if not r:
- return None
- return str(r)
+ return conf.lib.clang_Cursor_getRawCommentText(self)
def get_arguments(self):
"""Return an iterator for accessing the arguments of this cursor."""
num_args = conf.lib.clang_Cursor_getNumArguments(self)
- for i in xrange(0, num_args):
+ for i in range(0, num_args):
yield conf.lib.clang_Cursor_getArgument(self, i)
def get_num_template_arguments(self):
@@ -1885,7 +1851,7 @@
@property
def spelling(self):
"""Retrieve the spelling of this TypeKind."""
- return str(conf.lib.clang_getTypeKindSpelling(self.value))
+ return conf.lib.clang_getTypeKindSpelling(self.value)
def __repr__(self):
return 'TypeKind.%s' % (self.name,)
@@ -2161,7 +2127,7 @@
"""
Retrieve the offset of a field in the record.
"""
- return conf.lib.clang_Type_getOffsetOf(self, fieldname)
+ return conf.lib.clang_Type_getOffsetOf(self, c_char_p(fieldname))
def get_ref_qualifier(self):
"""
@@ -2188,7 +2154,7 @@
@property
def spelling(self):
"""Retrieve the spelling of this Type."""
- return str(conf.lib.clang_getTypeSpelling(self))
+ return conf.lib.clang_getTypeSpelling(self)
def __eq__(self, other):
if type(other) != type(self):
@@ -2220,7 +2186,7 @@
class _CXUnsavedFile(Structure):
"""Helper for passing unsaved file arguments."""
- _fields_ = [("name", c_string_p), ("contents", c_string_p), ('length', c_ulong)]
+ _fields_ = [("name", c_char_p), ("contents", c_char_p), ('length', c_ulong)]
# Functions calls through the python interface are rather slow. Fortunately,
# for most symboles, we do not need to perform a function call. Their spelling
@@ -2266,7 +2232,7 @@
self.__kindNumberCache = -1
def __repr__(self):
- return "{'" + str(self.spelling) + "', " + str(self.kind) + "}"
+ return "{'" + self.spelling + "', " + str(self.kind) + "}"
@CachedProperty
def spelling(self):
@@ -2575,9 +2541,7 @@
args_array = None
if len(args) > 0:
- args_array = (c_string_p * len(args))()
- for i,a in enumerate(args):
- args_array[i] = c_string_p(a)
+ args_array = (c_char_p * len(args))(* args)
unsaved_array = None
if len(unsaved_files) > 0:
@@ -2586,8 +2550,8 @@
if hasattr(contents, "read"):
contents = contents.read()
- unsaved_array[i].name = c_string_p(name)
- unsaved_array[i].contents = c_string_p(contents)
+ unsaved_array[i].name = name
+ unsaved_array[i].contents = contents
unsaved_array[i].length = len(contents)
ptr = conf.lib.clang_parseTranslationUnit(index, filename, args_array,
@@ -2642,7 +2606,7 @@
@property
def spelling(self):
"""Get the original translation unit source file name."""
Home |
Main Index |
Thread Index |
Old Index